18 #ifndef INCLUDED_ICMPTERRITORYMANAGER
19 #define INCLUDED_ICMPTERRITORYMANAGER
58 #endif // INCLUDED_ICMPTERRITORYMANAGER
A simple fixed-point number class.
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...
virtual bool NeedUpdate(size_t *dirtyID)=0
int32_t player_id_t
valid player IDs are non-negative (see ICmpOwnership)
#define DECLARE_INTERFACE_TYPE(iname)
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
static const int TERRITORY_PLAYER_MASK
static const int TERRITORY_PROCESSED_MASK
virtual player_id_t GetOwner(entity_pos_t x, entity_pos_t z)=0
Get owner of territory at given position.