OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
10 #ifndef DIRECTION_TYPE_H
11 #define DIRECTION_TYPE_H
@ DIRDIFF_REVERSE
One direction is the opposite of the other one.
Direction
Defines the 8 directions on the map.
@ DIR_BEGIN
Used to iterate.
@ DIRDIFF_45LEFT
Angle of 45 degrees left.
@ DIRDIFF_SAME
Both directions faces to the same direction.
DiagDirDiff
Enumeration for the difference between to DiagDirection.
@ DIAGDIR_END
Used for iterations.
@ DIAGDIRDIFF_90LEFT
90 degrees left
@ DIAGDIRDIFF_SAME
Same directions.
#define DECLARE_POSTFIX_INCREMENT(enum_type)
Some enums need to have allowed incrementing (i.e.
Informative template class exposing basic enumeration properties used by several other templates belo...
@ DIRDIFF_90LEFT
Angle of 90 degrees left.
@ DIAGDIRDIFF_90RIGHT
90 degrees right
@ INVALID_DIAGDIR
Flag for an invalid DiagDirection.
DirDiff
Enumeration for the difference between two directions.
DiagDirection
Enumeration for diagonal directions.
@ DIAGDIRDIFF_REVERSE
Reverse directions.
@ DIRDIFF_45RIGHT
Angle of 45 degrees right.
@ DIR_END
Used to iterate.
@ DIAGDIR_BEGIN
Used for iterations.
@ DIRDIFF_90RIGHT
Angle of 90 degrees right.
Helper template class that makes basic properties of given enumeration type visible from outsize.
Axis
Allow incrementing of DiagDirDiff variables.
@ AXIS_END
Used for iterations.
@ INVALID_AXIS
Flag for an invalid Axis.
@ INVALID_DIR
Flag for an invalid direction.
@ DIAGDIR_NE
Northeast, upper right on your monitor.