|
Pyrogenesis
13997
|
#include <ICmpTerritoryManager.h>
Public Member Functions | |
| virtual bool | NeedUpdate (size_t *dirtyID)=0 |
| virtual const Grid< u8 > & | GetTerritoryGrid ()=0 |
| For each tile, the TERRITORY_PLAYER_MASK bits are player ID; TERRITORY_CONNECTED_MASK is set if the tile is connected to a root object (civ center etc). More... | |
| virtual player_id_t | GetOwner (entity_pos_t x, entity_pos_t z)=0 |
| Get owner of territory at given position. More... | |
| virtual bool | IsConnected (entity_pos_t x, entity_pos_t z)=0 |
| Get whether territory at given position is connected to a root object (civ center etc) owned by that territory's player. More... | |
Public Member Functions inherited from IComponent | |
| virtual | ~IComponent () |
| virtual void | Init (const CParamNode ¶mNode)=0 |
| virtual void | Deinit ()=0 |
| virtual void | HandleMessage (const CMessage &msg, bool global) |
| CEntityHandle | GetEntityHandle () const |
| void | SetEntityHandle (CEntityHandle ent) |
| entity_id_t | GetEntityId () const |
| CEntityHandle | GetSystemEntity () const |
| const CSimContext & | GetSimContext () const |
| void | SetSimContext (const CSimContext &context) |
| virtual void | Serialize (ISerializer &serialize)=0 |
| virtual void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize)=0 |
| virtual JSClass * | GetJSClass () const |
| virtual jsval | GetJSInstance () const |
Static Public Attributes | |
| static const int | TERRITORY_PLAYER_MASK = 0x3F |
| static const int | TERRITORY_CONNECTED_MASK = 0x40 |
| static const int | TERRITORY_PROCESSED_MASK = 0x80 |
Additional Inherited Members | |
Static Public Member Functions inherited from IComponent | |
| static std::string | GetSchema () |
| static u8 | GetSerializationVersion () |
Definition at line 27 of file ICmpTerritoryManager.h.
|
pure virtual |
Get owner of territory at given position.
Implemented in CCmpTerritoryManager.
For each tile, the TERRITORY_PLAYER_MASK bits are player ID; TERRITORY_CONNECTED_MASK is set if the tile is connected to a root object (civ center etc).
Implemented in CCmpTerritoryManager.
|
pure virtual |
Get whether territory at given position is connected to a root object (civ center etc) owned by that territory's player.
Implemented in CCmpTerritoryManager.
|
pure virtual |
Implemented in CCmpTerritoryManager.
|
static |
Definition at line 33 of file ICmpTerritoryManager.h.
|
static |
Definition at line 32 of file ICmpTerritoryManager.h.
|
static |
Definition at line 34 of file ICmpTerritoryManager.h.
1.8.5