mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
5 lines
12 KiB
HTML
5 lines
12 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>code/__DEFINES/movement_defines.dm - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a> — <a href="code/__DEFINES/movement_defines.html#define">Define Details</a></header><main><h1>code/__DEFINES/movement_defines.dm <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm"></a></h1><table class="summary" cellspacing="0"><tr><th><a href="code/__DEFINES/movement_defines.html#define/MIN_GLIDE_SIZE">MIN_GLIDE_SIZE</a></th><td>The minimum for glide_size to be clamped to.</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MAX_GLIDE_SIZE">MAX_GLIDE_SIZE</a></th><td>The maximum for glide_size to be clamped to.
|
|
This shouldn't be higher than the icon size, and generally you shouldn't be changing this, but it's here just in case.</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVEMENT_DEFAULT_PRIORITY">MOVEMENT_DEFAULT_PRIORITY</a></th><td>Standard, go lower then this if you want to override, higher otherwise</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVEMENT_SPACE_PRIORITY">MOVEMENT_SPACE_PRIORITY</a></th><td>Very few things should override this</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVEMENT_ABOVE_SPACE_PRIORITY">MOVEMENT_ABOVE_SPACE_PRIORITY</a></th><td>Higher then the heavens</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVEMENT_LOOP_START_FAST">MOVEMENT_LOOP_START_FAST</a></th><td>Should the loop act immediately following its addition?</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVEMENT_LOOP_IGNORE_PRIORITY">MOVEMENT_LOOP_IGNORE_PRIORITY</a></th><td>Do we not use the priority system?</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVEMENT_LOOP_IGNORE_GLIDE">MOVEMENT_LOOP_IGNORE_GLIDE</a></th><td>Should we override the loop's glide?</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVEMENT_LOOP_NO_DIR_UPDATE">MOVEMENT_LOOP_NO_DIR_UPDATE</a></th><td>Should we not update our movables dir on move?</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVEMENT_LOOP_NO_MOMENTUM_CHANGE">MOVEMENT_LOOP_NO_MOMENTUM_CHANGE</a></th><td>Controls how the loop will set momentum_change in its Move call.</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVEMENT_LOOP_FORCE_MOVE">MOVEMENT_LOOP_FORCE_MOVE</a></th><td>Should we forceMove instead of Move?</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVELOOP_STATUS_PAUSED">MOVELOOP_STATUS_PAUSED</a></th><td>Has the loop been paused, soon to be resumed?</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVELOOP_STATUS_RUNNING">MOVELOOP_STATUS_RUNNING</a></th><td>Is the loop running? (Is true even when paused)</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVELOOP_STATUS_QUEUED">MOVELOOP_STATUS_QUEUED</a></th><td>Is the loop queued in a subsystem?</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/CHECK_MOVE_LOOP_FLAGS">CHECK_MOVE_LOOP_FLAGS</a></th><td>Returns a bitfield containing flags both present in <code>flags</code> arg and the <code>processing_move_loop_flags</code> move_packet variable.
|
|
Has no use outside of procs called within the movement proc chain.</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/MOVELOOP_FAILURE">MOVELOOP_FAILURE</a></th><td>Return values for moveloop Move()</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/SET_ACTIVE_MOVEMENT">SET_ACTIVE_MOVEMENT</a></th><td>The arguments of this macro correspond directly to the argument order of /atom/movable/proc/Moved</td></tr><tr><th><a href="code/__DEFINES/movement_defines.html#define/RESOLVE_ACTIVE_MOVEMENT">RESOLVE_ACTIVE_MOVEMENT</a></th><td>Finish any active movements</td></tr></table><h2 id="define">Define Details</h2><h3 id="define/CHECK_MOVE_LOOP_FLAGS"><aside class="declaration">#define </aside>CHECK_MOVE_LOOP_FLAGS<aside>(movable, flags)</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L42"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 42"></a></h3><p>Returns a bitfield containing flags both present in <code>flags</code> arg and the <code>processing_move_loop_flags</code> move_packet variable.
|
|
Has no use outside of procs called within the movement proc chain.</p><h3 id="define/MAX_GLIDE_SIZE"><aside class="declaration">#define </aside>MAX_GLIDE_SIZE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L5"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 5"></a></h3><p>The maximum for glide_size to be clamped to.
|
|
This shouldn't be higher than the icon size, and generally you shouldn't be changing this, but it's here just in case.</p><h3 id="define/MIN_GLIDE_SIZE"><aside class="declaration">#define </aside>MIN_GLIDE_SIZE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L2"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 2"></a></h3><p>The minimum for glide_size to be clamped to.</p><h3 id="define/MOVELOOP_FAILURE"><aside class="declaration">#define </aside>MOVELOOP_FAILURE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L49"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 49"></a></h3><p>Return values for moveloop Move()</p><h3 id="define/MOVELOOP_STATUS_PAUSED"><aside class="declaration">#define </aside>MOVELOOP_STATUS_PAUSED <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L32"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 32"></a></h3><p>Has the loop been paused, soon to be resumed?</p><h3 id="define/MOVELOOP_STATUS_QUEUED"><aside class="declaration">#define </aside>MOVELOOP_STATUS_QUEUED <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L36"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 36"></a></h3><p>Is the loop queued in a subsystem?</p><h3 id="define/MOVELOOP_STATUS_RUNNING"><aside class="declaration">#define </aside>MOVELOOP_STATUS_RUNNING <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L34"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 34"></a></h3><p>Is the loop running? (Is true even when paused)</p><h3 id="define/MOVEMENT_ABOVE_SPACE_PRIORITY"><aside class="declaration">#define </aside>MOVEMENT_ABOVE_SPACE_PRIORITY <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L14"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 14"></a></h3><p>Higher then the heavens</p><h3 id="define/MOVEMENT_DEFAULT_PRIORITY"><aside class="declaration">#define </aside>MOVEMENT_DEFAULT_PRIORITY <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L10"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 10"></a></h3><p>Standard, go lower then this if you want to override, higher otherwise</p><h3 id="define/MOVEMENT_LOOP_FORCE_MOVE"><aside class="declaration">#define </aside>MOVEMENT_LOOP_FORCE_MOVE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L28"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 28"></a></h3><p>Should we forceMove instead of Move?</p><h3 id="define/MOVEMENT_LOOP_IGNORE_GLIDE"><aside class="declaration">#define </aside>MOVEMENT_LOOP_IGNORE_GLIDE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L22"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 22"></a></h3><p>Should we override the loop's glide?</p><h3 id="define/MOVEMENT_LOOP_IGNORE_PRIORITY"><aside class="declaration">#define </aside>MOVEMENT_LOOP_IGNORE_PRIORITY <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L20"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 20"></a></h3><p>Do we not use the priority system?</p><h3 id="define/MOVEMENT_LOOP_NO_DIR_UPDATE"><aside class="declaration">#define </aside>MOVEMENT_LOOP_NO_DIR_UPDATE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L24"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 24"></a></h3><p>Should we not update our movables dir on move?</p><h3 id="define/MOVEMENT_LOOP_NO_MOMENTUM_CHANGE"><aside class="declaration">#define </aside>MOVEMENT_LOOP_NO_MOMENTUM_CHANGE <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L26"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 26"></a></h3><p>Controls how the loop will set momentum_change in its Move call.</p><h3 id="define/MOVEMENT_LOOP_START_FAST"><aside class="declaration">#define </aside>MOVEMENT_LOOP_START_FAST <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L18"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 18"></a></h3><p>Should the loop act immediately following its addition?</p><h3 id="define/MOVEMENT_SPACE_PRIORITY"><aside class="declaration">#define </aside>MOVEMENT_SPACE_PRIORITY <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L12"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 12"></a></h3><p>Very few things should override this</p><h3 id="define/RESOLVE_ACTIVE_MOVEMENT"><aside class="declaration">#define </aside>RESOLVE_ACTIVE_MOVEMENT <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L69"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 69"></a></h3><p>Finish any active movements</p><h3 id="define/SET_ACTIVE_MOVEMENT"><aside class="declaration">#define </aside>SET_ACTIVE_MOVEMENT<aside>(_old_loc, _direction, _forced, _oldlocs, _momentum_change)</aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/__DEFINES/movement_defines.dm#L59"><img src="git.png" width="16" height="16" title="code/__DEFINES/movement_defines.dm 59"></a></h3><p>The arguments of this macro correspond directly to the argument order of /atom/movable/proc/Moved</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/8a8a00a2a9bec485351e5f219982b7315d3504fa">8a8a00a</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html> |