18 #ifndef INCLUDED_ICMPTERRITORYMANAGER 19 #define INCLUDED_ICMPTERRITORYMANAGER 30 virtual bool NeedUpdate(
size_t* dirtyID)
const = 0;
94 #endif // INCLUDED_ICMPTERRITORYMANAGER Definition: IComponent.h:33
A simple fixed-point number class.
Definition: Fixed.h:115
virtual bool IsTerritoryBlinking(entity_pos_t x, entity_pos_t z)=0
Check if a piece of territory is blinking.
virtual void SetTerritoryBlinking(entity_pos_t x, entity_pos_t z, bool enable)=0
Set a piece of territory to blinking.
virtual u8 GetTerritoryPercentage(player_id_t player)=0
Returns the percentage of the world controlled by a given player as defined by the number of territor...
virtual const Grid< u8 > & GetTerritoryGrid()=0
For each tile, the TERRITORY_PLAYER_MASK bits are player ID; TERRITORY_CONNECTED_MASK is set if the t...
uint8_t u8
Definition: types.h:37
int32_t player_id_t
valid player IDs are non-negative (see ICmpOwnership)
Definition: Player.h:24
static const int TERRITORY_BLINKING_MASK
Definition: ICmpTerritoryManager.h:42
virtual void SetVisibility(bool visible)=0
Enables or disables rendering of an territory borders.
#define DECLARE_INTERFACE_TYPE(iname)
Definition: Interface.h:23
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 ...
static const int TERRITORY_CONNECTED_MASK
Definition: ICmpTerritoryManager.h:41
virtual std::vector< u32 > GetNeighbours(entity_pos_t x, entity_pos_t z, bool filterConnected)=0
get the number of neighbour tiles for per player for the selected position
static const int NAVCELLS_PER_TERRITORY_TILE
Number of pathfinder navcells per territory tile.
Definition: ICmpTerritoryManager.h:38
virtual bool NeedUpdate(size_t *dirtyID) const =0
static const int TERRITORY_PLAYER_MASK
Definition: ICmpTerritoryManager.h:40
static const int TERRITORY_PROCESSED_MASK
Definition: ICmpTerritoryManager.h:43
virtual player_id_t GetOwner(entity_pos_t x, entity_pos_t z)=0
Get owner of territory at given position.
Definition: ICmpTerritoryManager.h:27