Shiptest 13 - Modules - TypesVar Details - Proc Details

Overmap ships

Basically, any overmap object that is capable of moving by itself.

Vars

acceleration_speedONLY USED FOR NON-SIMULATED SHIPS. The amount per burn that this ship accelerates
max_speedMax possible speed (1 tile per second)
min_speedMinimum speed. Any lower is rounded down. (0.5 tiles per minute)
movement_callback_idTimer ID of the looping movement timer
speedThe current speed in x/y direction in grid squares per minute

Procs

accelerateChange the speed in a specified dir.
adjust_speedChange the speed in any direction.
burn_enginesBurns the engines in one direction, accelerating in that direction. Unsimulated ships use the acceleration_speed var, simulated ships check eacch engine's thrust and fuel. If no dir variable is provided, it decelerates the vessel.
decelerateReduce the speed or stop in all directions.
get_etaReturns the estimated time in deciseconds to the next tile at current speed, or approx. time until reaching the destination when on autopilot
get_headingReturns the direction the ship is moving in terms of dirs
get_speedReturns the total speed in all directions.
is_stillReturns whether or not the ship is moving in any direction.
tick_moveCalled by /datum/overmap/ship/proc/adjust_speed, this continually moves the ship according to its speed
update_visualsUpdates the visuals of the ship based on heading and whether or not it's moving.

Var Details

acceleration_speed

ONLY USED FOR NON-SIMULATED SHIPS. The amount per burn that this ship accelerates

max_speed

Max possible speed (1 tile per second)

min_speed

Minimum speed. Any lower is rounded down. (0.5 tiles per minute)

movement_callback_id

Timer ID of the looping movement timer

speed

The current speed in x/y direction in grid squares per minute

Proc Details

accelerate

Change the speed in a specified dir.

adjust_speed

Change the speed in any direction.

burn_engines

Burns the engines in one direction, accelerating in that direction. Unsimulated ships use the acceleration_speed var, simulated ships check eacch engine's thrust and fuel. If no dir variable is provided, it decelerates the vessel.

decelerate

Reduce the speed or stop in all directions.

get_eta

Returns the estimated time in deciseconds to the next tile at current speed, or approx. time until reaching the destination when on autopilot

get_heading

Returns the direction the ship is moving in terms of dirs

get_speed

Returns the total speed in all directions.

The equation for acceleration is as follows: 60 SECONDS / (1 / ([ship's speed] / ([ship's mass] * 100)))

is_still

Returns whether or not the ship is moving in any direction.

tick_move

Called by /datum/overmap/ship/proc/adjust_speed, this continually moves the ship according to its speed

update_visuals

Updates the visuals of the ship based on heading and whether or not it's moving.