/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/directional.dm

TEXT_NORTHNorth direction as a string "[1]"
TEXT_SOUTHSouth direction as a string "[2]"
TEXT_EASTEast direction as a string "[4]"
TEXT_WESTWest direction as a string "[8]"
ISDIAGONALDIRReturns true if the dir is diagonal, false otherwise
NSCOMPONENTTrue if the dir is north or south, false therwise
EWCOMPONENTTrue if the dir is east/west, false otherwise
NSDIRFLIPFlips the dir for north/south directions
EWDIRFLIPFlips the dir for east/west directions
REVERSE_DIRInverse direction, taking into account UP|DOWN if necessary.
MAPPING_DIRECTIONAL_HELPERSCreate 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]"