movement_packet ![code/controllers/subsystem/movement/move_handler.dm 52](git.png)
A packet of information that describes the current state of a moving object
Vars | |
existing_loops | Assoc list of subsystems -> loop datum. Only one datum is allowed per subsystem |
---|---|
parent | Our parent atom |
running_loop | The move loop that's currently running |
Procs | |
add_loop | Adds a loop to our parent. Returns the created loop if a success, null otherwise |
contest_running_loop | Attempts to contest the current running move loop. Returns TRUE if the loop is active, FALSE otherwise |
decide_on_running_loop | Tries to figure out the current favorite loop to run. More complex then just deciding between two different loops, assumes no running loop currently exists |
Var Details
existing_loops ![code/controllers/subsystem/movement/move_handler.dm 58](git.png)
Assoc list of subsystems -> loop datum. Only one datum is allowed per subsystem
parent ![code/controllers/subsystem/movement/move_handler.dm 54](git.png)
Our parent atom
running_loop ![code/controllers/subsystem/movement/move_handler.dm 56](git.png)
The move loop that's currently running
Proc Details
add_loop
Adds a loop to our parent. Returns the created loop if a success, null otherwise
contest_running_loop
Attempts to contest the current running move loop. Returns TRUE if the loop is active, FALSE otherwise
decide_on_running_loop
Tries to figure out the current favorite loop to run. More complex then just deciding between two different loops, assumes no running loop currently exists