code/__DEFINES/directional.dm
TEXT_NORTH | North direction as a string "[1]" |
---|---|
TEXT_SOUTH | South direction as a string "[2]" |
TEXT_EAST | East direction as a string "[4]" |
TEXT_WEST | West direction as a string "[8]" |
ISDIAGONALDIR | Returns true if the dir is diagonal, false otherwise |
NSCOMPONENT | True if the dir is north or south, false therwise |
EWCOMPONENT | True if the dir is east/west, false otherwise |
NSDIRFLIP | Flips the dir for north/south directions |
EWDIRFLIP | Flips the dir for east/west directions |
REVERSE_DIR | Inverse direction, taking into account UP|DOWN if necessary. |
MAPPING_DIRECTIONAL_HELPERS | Create directional subtypes for a path to simplify mapping. |
Define Details
EWCOMPONENT
True if the dir is east/west, false otherwise
EWDIRFLIP
Flips the dir for east/west directions
ISDIAGONALDIR
Returns true if the dir is diagonal, false otherwise
MAPPING_DIRECTIONAL_HELPERS
Create directional subtypes for a path to simplify mapping.
NSCOMPONENT
True if the dir is north or south, false therwise
NSDIRFLIP
Flips the dir for north/south directions
REVERSE_DIR
Inverse direction, taking into account UP|DOWN if necessary.
TEXT_EAST
East direction as a string "[4]"
TEXT_NORTH
North direction as a string "[1]"
TEXT_SOUTH
South direction as a string "[2]"
TEXT_WEST
West direction as a string "[8]"