|
int | GetComponentTypeId () const override |
|
void | Init (const CParamNode ¶mNode) override |
|
void | Deinit () override |
|
template<typename S > |
void | SerializeCommon (S &serialize) |
|
void | Serialize (ISerializer &serialize) override |
|
void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize) override |
|
void | HandleMessage (const CMessage &msg, bool global) override |
|
void | SetBounds (entity_pos_t x0, entity_pos_t z0, entity_pos_t x1, entity_pos_t z1) override |
| Set the bounds of the world. More...
|
|
void | Verify () override |
| Perform some internal consistency checks for testing/debugging. More...
|
|
FastSpatialSubdivision * | GetSubdivision () override |
| Access the spatial subdivision kept by the range manager. More...
|
|
void | ResetDerivedData () |
|
void | ResetSubdivisions (entity_pos_t x1, entity_pos_t z1) |
|
tag_t | CreateActiveQuery (entity_id_t source, entity_pos_t minRange, entity_pos_t maxRange, const std::vector< int > &owners, int requiredInterface, u8 flags, bool accountForSize) override |
| Construct an active query. More...
|
|
tag_t | CreateActiveParabolicQuery (entity_id_t source, entity_pos_t minRange, entity_pos_t maxRange, entity_pos_t yOrigin, const std::vector< int > &owners, int requiredInterface, u8 flags) override |
| Construct an active query of a paraboloic form around the unit. More...
|
|
void | DestroyActiveQuery (tag_t tag) override |
| Destroy a query and clean up resources. More...
|
|
void | EnableActiveQuery (tag_t tag) override |
| Re-enable the processing of a query. More...
|
|
void | DisableActiveQuery (tag_t tag) override |
| Disable the processing of a query (no RangeUpdate messages will be sent). More...
|
|
bool | IsActiveQueryEnabled (tag_t tag) const override |
| Check if the processing of a query is enabled. More...
|
|
std::vector< entity_id_t > | ExecuteQueryAroundPos (const CFixedVector2D &pos, entity_pos_t minRange, entity_pos_t maxRange, const std::vector< int > &owners, int requiredInterface, bool accountForSize) override |
| Execute a passive query. More...
|
|
std::vector< entity_id_t > | ExecuteQuery (entity_id_t source, entity_pos_t minRange, entity_pos_t maxRange, const std::vector< int > &owners, int requiredInterface, bool accountForSize) override |
| Execute a passive query. More...
|
|
std::vector< entity_id_t > | ResetActiveQuery (tag_t tag) override |
| Immediately execute a query, and re-enable it if disabled. More...
|
|
std::vector< entity_id_t > | GetEntitiesByPlayer (player_id_t player) const override |
| Returns a list of all entities for a specific player. More...
|
|
std::vector< entity_id_t > | GetNonGaiaEntities () const override |
| Returns a list of all entities of all players except gaia. More...
|
|
std::vector< entity_id_t > | GetGaiaAndNonGaiaEntities () const override |
| Returns a list of all entities owned by a player or gaia. More...
|
|
std::vector< entity_id_t > | GetEntitiesByMask (u32 ownerMask) const |
|
void | SetDebugOverlay (bool enabled) override |
| Toggle the rendering of debug info. More...
|
|
void | ExecuteActiveQueries () |
| Update all currently-enabled active queries. More...
|
|
bool | TestEntityQuery (const Query &q, entity_id_t id, const EntityData &entity) const |
| Returns whether the given entity matches the given query (ignoring maxRange) More...
|
|
void | PerformQuery (const Query &q, std::vector< entity_id_t > &r, CFixedVector2D pos) |
| Returns a list of distinct entity IDs that match the given query, sorted by ID. More...
|
|
entity_pos_t | GetEffectiveParabolicRange (entity_id_t source, entity_id_t target, entity_pos_t range, entity_pos_t yOrigin) const override |
| Get the effective range in a parablic range query. More...
|
|
entity_pos_t | GetElevationAdaptedRange (const CFixedVector3D &pos1, const CFixedVector3D &rot, entity_pos_t range, entity_pos_t yOrigin, entity_pos_t angle) const override |
| Get the average elevation over 8 points on distance range around the entity. More...
|
|
virtual std::vector< entity_pos_t > | getParabolicRangeForm (CFixedVector3D pos, entity_pos_t maxRange, entity_pos_t cutoff, entity_pos_t minAngle, entity_pos_t maxAngle, int numberOfSteps) const |
|
Query | ConstructQuery (entity_id_t source, entity_pos_t minRange, entity_pos_t maxRange, const std::vector< int > &owners, int requiredInterface, u8 flagsMask, bool accountForSize) const |
|
Query | ConstructParabolicQuery (entity_id_t source, entity_pos_t minRange, entity_pos_t maxRange, entity_pos_t yOrigin, const std::vector< int > &owners, int requiredInterface, u8 flagsMask, bool accountForSize) const |
|
void | RenderSubmit (SceneCollector &collector) |
|
u8 | GetEntityFlagMask (const std::string &identifier) const override |
| Returns the mask for the specified identifier. More...
|
|
void | SetEntityFlag (entity_id_t ent, const std::string &identifier, bool value) override |
| Set the flag specified by the identifier to the supplied value for the entity. More...
|
|
CLosQuerier | GetLosQuerier (player_id_t player) const override |
| Returns a CLosQuerier for checking whether vertex positions are visible to the given player (or other players it shares LOS with). More...
|
|
void | ActivateScriptedVisibility (entity_id_t ent, bool status) override |
| Toggle the scripted Visibility component activation for entity ent. More...
|
|
LosVisibility | ComputeLosVisibility (CEntityHandle ent, player_id_t player) const |
|
LosVisibility | ComputeLosVisibility (entity_id_t ent, player_id_t player) const |
|
LosVisibility | GetLosVisibility (CEntityHandle ent, player_id_t player) const override |
| Returns the visibility status of the given entity, with respect to the given player. More...
|
|
LosVisibility | GetLosVisibility (entity_id_t ent, player_id_t player) const override |
|
LosVisibility | GetLosVisibilityPosition (entity_pos_t x, entity_pos_t z, player_id_t player) const override |
| Returns the visibility status of the given position, with respect to the given player. More...
|
|
size_t | GetVerticesPerSide () const override |
|
LosRegion | LosVertexToLosRegionsHelper (u16 x, u16 z) const |
|
LosRegion | PosToLosRegionsHelper (entity_pos_t x, entity_pos_t z) const |
|
void | AddToRegion (LosRegion region, entity_id_t ent) |
|
void | RemoveFromRegion (LosRegion region, entity_id_t ent) |
|
void | UpdateVisibilityData () |
|
void | RequestVisibilityUpdate (entity_id_t ent) override |
| Request the update of the visibility cache of ent at next turn. More...
|
|
void | UpdateVisibility (entity_id_t ent, player_id_t player) |
|
void | UpdateVisibility (entity_id_t ent) |
|
void | SetLosRevealAll (player_id_t player, bool enabled) override |
| Set whether the whole map should be made visible to the given player. More...
|
|
bool | GetLosRevealAll (player_id_t player) const override |
| Returns whether the whole map has been made visible to the given player. More...
|
|
void | SetLosCircular (bool enabled) override |
| Set the LOS to be restricted to a circular map. More...
|
|
bool | GetLosCircular () const override |
| Returns whether the LOS is restricted to a circular map. More...
|
|
void | SetSharedLos (player_id_t player, const std::vector< player_id_t > &players) override |
| Sets shared LOS data for player to the given list of players. More...
|
|
u32 | GetSharedLosMask (player_id_t player) const override |
| Returns shared LOS mask for player. More...
|
|
void | ExploreMap (player_id_t p) override |
| Explore the map (but leave it in the FoW) for player p. More...
|
|
void | ExploreTerritories () override |
| Explore the tiles inside each player's territory. More...
|
|
void | SeeExploredEntities (player_id_t p) const |
| Force any entity in explored territory to appear for player p. More...
|
|
void | RevealShore (player_id_t p, bool enable) override |
| Reveal the shore for specified player p. More...
|
|
bool | LosIsOffWorld (ssize_t i, ssize_t j) const |
| Returns whether the given vertex is outside the normal bounds of the world (i.e. More...
|
|
void | LosAddStripHelper (u8 owner, i32 i0, i32 i1, i32 j, Grid< u16 > &counts) |
| Update the LOS state of tiles within a given horizontal strip (i0,j) to (i1,j) (inclusive). More...
|
|
void | LosRemoveStripHelper (u8 owner, i32 i0, i32 i1, i32 j, Grid< u16 > &counts) |
| Update the LOS state of tiles within a given horizontal strip (i0,j) to (i1,j) (inclusive). More...
|
|
void | MarkVisibilityDirtyAroundTile (u8 owner, i32 i, i32 j) |
|
template<bool adding> |
void | LosUpdateHelper (u8 owner, entity_pos_t visionRange, CFixedVector2D pos) |
| Update the LOS state of tiles within a given circular range, either adding or removing visibility depending on the template parameter. More...
|
|
void | LosUpdateHelperIncremental (u8 owner, entity_pos_t visionRange, CFixedVector2D from, CFixedVector2D to) |
| Update the LOS state of tiles within a given circular range, by removing visibility around the 'from' position and then adding visibility around the 'to' position. More...
|
|
void | LosAdd (player_id_t owner, entity_pos_t visionRange, CFixedVector2D pos) |
|
void | SharingLosAdd (u16 visionSharing, entity_pos_t visionRange, CFixedVector2D pos) |
|
void | LosRemove (player_id_t owner, entity_pos_t visionRange, CFixedVector2D pos) |
|
void | SharingLosRemove (u16 visionSharing, entity_pos_t visionRange, CFixedVector2D pos) |
|
void | LosMove (player_id_t owner, entity_pos_t visionRange, CFixedVector2D from, CFixedVector2D to) |
|
void | SharingLosMove (u16 visionSharing, entity_pos_t visionRange, CFixedVector2D from, CFixedVector2D to) |
|
u8 | GetPercentMapExplored (player_id_t player) const override |
| Get percent map explored statistics for specified player. More...
|
|
u8 | GetUnionPercentMapExplored (const std::vector< player_id_t > &players) const override |
| Get percent map explored statistics for specified set of players. More...
|
|
virtual FastSpatialSubdivision * | GetSubdivision ()=0 |
| Access the spatial subdivision kept by the range manager. More...
|
|
virtual void | SetBounds (entity_pos_t x0, entity_pos_t z0, entity_pos_t x1, entity_pos_t z1)=0 |
| Set the bounds of the world. More...
|
|
virtual std::vector< entity_id_t > | ExecuteQuery (entity_id_t source, entity_pos_t minRange, entity_pos_t maxRange, const std::vector< int > &owners, int requiredInterface, bool accountForSize)=0 |
| Execute a passive query. More...
|
|
virtual std::vector< entity_id_t > | ExecuteQueryAroundPos (const CFixedVector2D &pos, entity_pos_t minRange, entity_pos_t maxRange, const std::vector< int > &owners, int requiredInterface, bool accountForSize)=0 |
| Execute a passive query. More...
|
|
virtual tag_t | CreateActiveQuery (entity_id_t source, entity_pos_t minRange, entity_pos_t maxRange, const std::vector< int > &owners, int requiredInterface, u8 flags, bool accountForSize)=0 |
| Construct an active query. More...
|
|
virtual tag_t | CreateActiveParabolicQuery (entity_id_t source, entity_pos_t minRange, entity_pos_t maxRange, entity_pos_t yOrigin, const std::vector< int > &owners, int requiredInterface, u8 flags)=0 |
| Construct an active query of a paraboloic form around the unit. More...
|
|
virtual entity_pos_t | GetEffectiveParabolicRange (entity_id_t source, entity_id_t target, entity_pos_t range, entity_pos_t yOrigin) const =0 |
| Get the effective range in a parablic range query. More...
|
|
virtual entity_pos_t | GetElevationAdaptedRange (const CFixedVector3D &pos, const CFixedVector3D &rot, entity_pos_t range, entity_pos_t yOrigin, entity_pos_t angle) const =0 |
| Get the average elevation over 8 points on distance range around the entity. More...
|
|
virtual void | DestroyActiveQuery (tag_t tag)=0 |
| Destroy a query and clean up resources. More...
|
|
virtual void | EnableActiveQuery (tag_t tag)=0 |
| Re-enable the processing of a query. More...
|
|
virtual void | DisableActiveQuery (tag_t tag)=0 |
| Disable the processing of a query (no RangeUpdate messages will be sent). More...
|
|
virtual bool | IsActiveQueryEnabled (tag_t tag) const =0 |
| Check if the processing of a query is enabled. More...
|
|
virtual std::vector< entity_id_t > | ResetActiveQuery (tag_t tag)=0 |
| Immediately execute a query, and re-enable it if disabled. More...
|
|
virtual std::vector< entity_id_t > | GetEntitiesByPlayer (player_id_t player) const =0 |
| Returns a list of all entities for a specific player. More...
|
|
virtual std::vector< entity_id_t > | GetNonGaiaEntities () const =0 |
| Returns a list of all entities of all players except gaia. More...
|
|
virtual std::vector< entity_id_t > | GetGaiaAndNonGaiaEntities () const =0 |
| Returns a list of all entities owned by a player or gaia. More...
|
|
virtual void | SetDebugOverlay (bool enabled)=0 |
| Toggle the rendering of debug info. More...
|
|
virtual u8 | GetEntityFlagMask (const std::string &identifier) const =0 |
| Returns the mask for the specified identifier. More...
|
|
virtual void | SetEntityFlag (entity_id_t ent, const std::string &identifier, bool value)=0 |
| Set the flag specified by the identifier to the supplied value for the entity. More...
|
|
virtual CLosQuerier | GetLosQuerier (player_id_t player) const =0 |
| Returns a CLosQuerier for checking whether vertex positions are visible to the given player (or other players it shares LOS with). More...
|
|
virtual void | ActivateScriptedVisibility (entity_id_t ent, bool status)=0 |
| Toggle the scripted Visibility component activation for entity ent. More...
|
|
virtual LosVisibility | GetLosVisibility (CEntityHandle ent, player_id_t player) const =0 |
| Returns the visibility status of the given entity, with respect to the given player. More...
|
|
virtual LosVisibility | GetLosVisibility (entity_id_t ent, player_id_t player) const =0 |
|
virtual LosVisibility | GetLosVisibilityPosition (entity_pos_t x, entity_pos_t z, player_id_t player) const =0 |
| Returns the visibility status of the given position, with respect to the given player. More...
|
|
virtual void | RequestVisibilityUpdate (entity_id_t ent)=0 |
| Request the update of the visibility cache of ent at next turn. More...
|
|
std::string | GetLosVisibility_wrapper (entity_id_t ent, player_id_t player) const |
| GetLosVisibility wrapped for script calls. More...
|
|
std::string | GetLosVisibilityPosition_wrapper (entity_pos_t x, entity_pos_t z, player_id_t player) const |
| GetLosVisibilityPosition wrapped for script calls. More...
|
|
virtual void | ExploreMap (player_id_t p)=0 |
| Explore the map (but leave it in the FoW) for player p. More...
|
|
virtual void | ExploreTerritories ()=0 |
| Explore the tiles inside each player's territory. More...
|
|
virtual void | RevealShore (player_id_t p, bool enable)=0 |
| Reveal the shore for specified player p. More...
|
|
virtual void | SetLosRevealAll (player_id_t player, bool enabled)=0 |
| Set whether the whole map should be made visible to the given player. More...
|
|
virtual bool | GetLosRevealAll (player_id_t player) const =0 |
| Returns whether the whole map has been made visible to the given player. More...
|
|
virtual void | SetLosCircular (bool enabled)=0 |
| Set the LOS to be restricted to a circular map. More...
|
|
virtual bool | GetLosCircular () const =0 |
| Returns whether the LOS is restricted to a circular map. More...
|
|
virtual void | SetSharedLos (player_id_t player, const std::vector< player_id_t > &players)=0 |
| Sets shared LOS data for player to the given list of players. More...
|
|
virtual u32 | GetSharedLosMask (player_id_t player) const =0 |
| Returns shared LOS mask for player. More...
|
|
virtual u8 | GetPercentMapExplored (player_id_t player) const =0 |
| Get percent map explored statistics for specified player. More...
|
|
virtual u8 | GetUnionPercentMapExplored (const std::vector< player_id_t > &players) const =0 |
| Get percent map explored statistics for specified set of players. More...
|
|
virtual size_t | GetVerticesPerSide () const =0 |
|
virtual void | Verify ()=0 |
| Perform some internal consistency checks for testing/debugging. More...
|
|
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 bool | NewJSObject (const ScriptInterface &scriptInterface, JS::MutableHandleObject out) const |
| Returns false by default, indicating that a scripted wrapper of this IComponent is not supported. More...
|
|
virtual JS::Value | GetJSInstance () const |
|
virtual int | GetComponentTypeId () const =0 |
|