White Sands - Modules - TypesVar Details - Proc Details

overmap vessel

Overmap ships

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

Vars

base_icon_statePrefix of all the icons used by the ship. ([base_icon_state]_moving and [base_icon_state]_damaged)
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.
decelerateReduce the speed or stop in all directions.
get_etaReturns the estimated time in deciseconds to the next tile at current speed
get_headingReturns the direction the ship is moving in terms of dirs
get_speedReturns the total speed in all directions.
handle_wraparoundCheck if the ship is flying into the border of the overmap.
is_stillReturns whether or not the ship is moving in any direction.
tick_moveCalled by /proc/adjust_speed(), this continually moves the ship according to it's speed

Var Details

base_icon_state

Prefix of all the icons used by the ship. ([base_icon_state]_moving and [base_icon_state]_damaged)

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.

decelerate

Reduce the speed or stop in all directions.

get_eta

Returns the estimated time in deciseconds to the next tile at current speed

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 speed is as follows: 60 SECONDS / (1 / ([ship's speed] / ([ship's mass] * 100)))

handle_wraparound

Check if the ship is flying into the border of the overmap.

is_still

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

tick_move

Called by /proc/adjust_speed(), this continually moves the ship according to it's speed