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 | True if the dir is diagonal, false otherwise |
| ISCARDINALDIR | True if direction is cardinal and false if not |
| NSCOMPONENT | True if the dir is north or south, false therwise |
| EWCOMPONENT | True if the dir is east/west, false otherwise |
| REVERSE_DIR | Inverse direction, taking into account UP|DOWN if necessary. |
| NSDIRFLIP | Flips the dir for north/south directions |
| EWDIRFLIP | Flips the dir for east/west directions |
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
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]"