Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpObstructionManager.h
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Boolean flags affecting the obstruction behaviour of a shape. | * Boolean flags affecting the obstruction behaviour of a shape. | ||||
*/ | */ | ||||
enum EFlags | enum EFlags | ||||
{ | { | ||||
FLAG_BLOCK_MOVEMENT = (1 << 0), // prevents units moving through this shape | FLAG_BLOCK_MOVEMENT = (1 << 0), // prevents units moving through this shape | ||||
FLAG_BLOCK_FOUNDATION = (1 << 1), // prevents foundations being placed on this shape | FLAG_BLOCK_FOUNDATION = (1 << 1), // prevents foundations being placed on this shape | ||||
FLAG_BLOCK_CONSTRUCTION = (1 << 2), // prevents buildings being constructed on this shape | FLAG_BLOCK_PATHFINDING = (1 << 2), // prevents the tile pathfinder choosing paths through this shape | ||||
FLAG_BLOCK_PATHFINDING = (1 << 3), // prevents the tile pathfinder choosing paths through this shape | FLAG_MOVING = (1 << 3), // indicates this unit is currently moving | ||||
FLAG_MOVING = (1 << 4), // indicates this unit is currently moving | FLAG_DELETE_UPON_CONSTRUCTION = (1 << 4) // this entity is deleted when construction of a building placed on top of this entity starts | ||||
FLAG_DELETE_UPON_CONSTRUCTION = (1 << 5) // this entity is deleted when construction of a building placed on top of this entity starts | |||||
}; | }; | ||||
/** | /** | ||||
* Bitmask of EFlag values. | * Bitmask of EFlag values. | ||||
*/ | */ | ||||
typedef u8 flags_t; | typedef u8 flags_t; | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 448 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator