gwnavgeneration/navraster/navrastertypes.h Source File
Go to the documentation of this file.
9 #ifndef Navigation_NavRasterTypes_H
10 #define Navigation_NavRasterTypes_H
18 typedef KyUInt16 NavRasterConnectionType;
19 static const NavRasterConnectionType NavRasterConnectionType_NO_TAG = 0;
20 static const NavRasterConnectionType NavRasterConnectionType_HOLE = 1;
21 static const NavRasterConnectionType NavRasterConnectionType_WALL = 2;
22 static const NavRasterConnectionType NavRasterConnectionType_STEP = 3;
23 static const NavRasterConnectionType NavRasterConnectionType_CellBorder = 4;
27 static const PixelColor PixelColor_IrrelevantColor =
KyUInt32MAXVAL - 7;
30 static const NavRasterFloorIdx NavRasterFloorIdx_Invalid =
KyUInt32MAXVAL;
32 typedef KyUInt32 NavRasterCardinalDir;
33 static const NavRasterCardinalDir NavRasterCardinalDir_EAST =
CardinalDir_EAST ;
35 static const NavRasterCardinalDir NavRasterCardinalDir_WEST =
CardinalDir_WEST ;
37 static const NavRasterCardinalDir NavRasterCardinalDir_NORTH_EAST = 4;
38 static const NavRasterCardinalDir NavRasterCardinalDir_NORTH_WEST = 5;
39 static const NavRasterCardinalDir NavRasterCardinalDir_SOUTH_WEST = 6;
40 static const NavRasterCardinalDir NavRasterCardinalDir_SOUTH_EAST = 7;
41 KY_INLINE
bool IsNavRasterCardinalDirOnDiagonal(
const NavRasterCardinalDir dir) {
return dir >= 4; }
46 enum NavRasterFeatureMask
48 UNDEFINED_NAVRASTER_FEATURE = 0,
49 NAVRASTER_HOLE_PIXEL = 1,
50 NAVRASTER_WALL_PIXEL = 2
56 #endif //Navigation_NavRasterTypes_H
static const CardinalDir CardinalDir_NORTH
Identifies North, defined as the positive direction of the Y axis.
Definition: cardinaldir.h:26
static const CardinalDir CardinalDir_SOUTH
Identifies South, defined as the negative direction of the Y axis.
Definition: cardinaldir.h:28
static const CardinalDir CardinalDir_EAST
Identifies East, defined as the positive direction of the X axis.
Definition: cardinaldir.h:25
static const CardinalDir CardinalDir_WEST
Identifies West, defined as the negative direction of the X axis.
Definition: cardinaldir.h:27
Definition: gamekitcrowddispersion.h:20
unsigned short KyUInt16
Type used internally to represent an unsigned 16-bit integer.
Definition: types.h:40
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
#define KyUInt32MAXVAL
The maximum value that can be stored in the KyUInt32 variable type.
Definition: types.h:226