SS1984 - 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]"
ISDIAGONALDIRTrue if the dir is diagonal, false otherwise
ISCARDINALDIRTrue if direction is cardinal and false if not
NSCOMPONENTTrue if the dir is north or south, false therwise
EWCOMPONENTTrue if the dir is east/west, false otherwise
REVERSE_DIRInverse direction, taking into account UP|DOWN if necessary.
NSDIRFLIPFlips the dir for north/south directions
EWDIRFLIPFlips the dir for east/west directions
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

ISCARDINALDIR

True if direction is cardinal and false if not

ISDIAGONALDIR

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]"