|
| | ~CCmpPathfinder () |
| |
| 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 |
| |
| pass_class_t | GetPassabilityClass (const std::string &name) const override |
| | Get the tag for a given passability class name. More...
|
| |
| void | GetPassabilityClasses (std::map< std::string, pass_class_t > &passClasses) const override |
| | Get the list of all known passability classes. More...
|
| |
| void | GetPassabilityClasses (std::map< std::string, pass_class_t > &nonPathfindingPassClasses, std::map< std::string, pass_class_t > &pathfindingPassClasses) const override |
| | Get the list of passability classes, separating pathfinding classes and others. More...
|
| |
| const PathfinderPassability * | GetPassabilityFromMask (pass_class_t passClass) const |
| |
| entity_pos_t | GetClearance (pass_class_t passClass) const override |
| |
| entity_pos_t | GetMaximumClearance () const override |
| | Get the larger clearance in all passability classes. More...
|
| |
| const Grid< NavcellData > & | GetPassabilityGrid () override |
| |
| const GridUpdateInformation & | GetAIPathfinderDirtinessInformation () const override |
| | Get the accumulated dirtiness information since the last time the AI accessed and flushed it. More...
|
| |
| void | FlushAIPathfinderDirtinessInformation () override |
| |
| Grid< u16 > | ComputeShoreGrid (bool expandOnWater=false) override |
| | Get a grid representing the distance to the shore of the terrain tile. More...
|
| |
| void | ComputePathImmediate (entity_pos_t x0, entity_pos_t z0, const PathGoal &goal, pass_class_t passClass, WaypointPath &ret) const override |
| |
| u32 | ComputePathAsync (entity_pos_t x0, entity_pos_t z0, const PathGoal &goal, pass_class_t passClass, entity_id_t notify) override |
| | Asynchronous version of ComputePath. More...
|
| |
| WaypointPath | ComputeShortPathImmediate (const ShortPathRequest &request) const override |
| |
| u32 | ComputeShortPathAsync (entity_pos_t x0, entity_pos_t z0, entity_pos_t clearance, entity_pos_t range, const PathGoal &goal, pass_class_t passClass, bool avoidMovingUnits, entity_id_t controller, entity_id_t notify) override |
| | Request a short path computation, asynchronously. More...
|
| |
| bool | IsGoalReachable (entity_pos_t x0, entity_pos_t z0, const PathGoal &goal, pass_class_t passClass) override |
| |
| void | SetDebugPath (entity_pos_t x0, entity_pos_t z0, const PathGoal &goal, pass_class_t passClass) override |
| | If the debug overlay is enabled, render the path that will computed by ComputePath. More...
|
| |
| void | SetDebugOverlay (bool enabled) override |
| | Toggle the storage and rendering of debug info. More...
|
| |
| void | SetHierDebugOverlay (bool enabled) override |
| | Toggle the storage and rendering of debug info for the hierarchical pathfinder. More...
|
| |
| void | GetDebugData (u32 &steps, double &time, Grid< u8 > &grid) const override |
| | Returns some stats about the last ComputePath. More...
|
| |
| void | SetAtlasOverlay (bool enable, pass_class_t passClass=0) override |
| | Sets up the pathfinder passability overlay in Atlas. More...
|
| |
| bool | CheckMovement (const IObstructionTestFilter &filter, entity_pos_t x0, entity_pos_t z0, entity_pos_t x1, entity_pos_t z1, entity_pos_t r, pass_class_t passClass) const override |
| | Check whether the given movement line is valid and doesn't hit any obstructions or impassable terrain. More...
|
| |
| ICmpObstruction::EFoundationCheck | CheckUnitPlacement (const IObstructionTestFilter &filter, entity_pos_t x, entity_pos_t z, entity_pos_t r, pass_class_t passClass, bool onlyCenterPoint) const override |
| | Check whether a unit placed here is valid and doesn't hit any obstructions or impassable terrain. More...
|
| |
| ICmpObstruction::EFoundationCheck | CheckBuildingPlacement (const IObstructionTestFilter &filter, entity_pos_t x, entity_pos_t z, entity_pos_t a, entity_pos_t w, entity_pos_t h, entity_id_t id, pass_class_t passClass) const override |
| | Check whether a building placed here is valid and doesn't hit any obstructions or impassable terrain. More...
|
| |
| ICmpObstruction::EFoundationCheck | CheckBuildingPlacement (const IObstructionTestFilter &filter, entity_pos_t x, entity_pos_t z, entity_pos_t a, entity_pos_t w, entity_pos_t h, entity_id_t id, pass_class_t passClass, bool onlyCenterPoint) const override |
| | Check whether a building placed here is valid and doesn't hit any obstructions or impassable terrain. More...
|
| |
| void | SendRequestedPaths () override |
| | Finish computing asynchronous path requests and send the CMessagePathResult messages. More...
|
| |
| void | StartProcessingMoves (bool useMax) override |
| | Tell asynchronous pathfinder threads that they can begin computing paths. More...
|
| |
| template<typename T > |
| std::vector< T > | GetMovesToProcess (std::vector< T > &requests, bool useMax=false, size_t maxMoves=0) |
| |
| template<typename T > |
| void | PushRequestsToWorkers (std::vector< T > &from) |
| |
| void | UpdateGrid () override |
| | Regenerates the grid based on the current obstruction list, if necessary. More...
|
| |
| void | MinimalTerrainUpdate (int itile0, int jtile0, int itile1, int jtile1) |
| | Updates the terrain-only grid without updating the dirtiness informations. More...
|
| |
| void | TerrainUpdateHelper (bool expandPassability=true, int itile0=-1, int jtile0=-1, int itile1=-1, int jtile1=-1) |
| | Regenerates the terrain-only grid. More...
|
| |
| void | RenderSubmit (SceneCollector &collector) |
| |
| virtual void | GetPassabilityClasses (std::map< std::string, pass_class_t > &passClasses) const =0 |
| | Get the list of all known passability classes. More...
|
| |
| virtual void | GetPassabilityClasses (std::map< std::string, pass_class_t > &nonPathfindingPassClasses, std::map< std::string, pass_class_t > &pathfindingPassClasses) const =0 |
| | Get the list of passability classes, separating pathfinding classes and others. More...
|
| |
| virtual pass_class_t | GetPassabilityClass (const std::string &name) const =0 |
| | Get the tag for a given passability class name. More...
|
| |
| virtual entity_pos_t | GetClearance (pass_class_t passClass) const =0 |
| |
| virtual entity_pos_t | GetMaximumClearance () const =0 |
| | Get the larger clearance in all passability classes. More...
|
| |
| virtual const Grid< NavcellData > & | GetPassabilityGrid ()=0 |
| |
| virtual const GridUpdateInformation & | GetAIPathfinderDirtinessInformation () const =0 |
| | Get the accumulated dirtiness information since the last time the AI accessed and flushed it. More...
|
| |
| virtual void | FlushAIPathfinderDirtinessInformation ()=0 |
| |
| virtual Grid< u16 > | ComputeShoreGrid (bool expandOnWater=false)=0 |
| | Get a grid representing the distance to the shore of the terrain tile. More...
|
| |
| virtual u32 | ComputePathAsync (entity_pos_t x0, entity_pos_t z0, const PathGoal &goal, pass_class_t passClass, entity_id_t notify)=0 |
| | Asynchronous version of ComputePath. More...
|
| |
| virtual void | ComputePathImmediate (entity_pos_t x0, entity_pos_t z0, const PathGoal &goal, pass_class_t passClass, WaypointPath &ret) const =0 |
| |
| virtual u32 | ComputeShortPathAsync (entity_pos_t x0, entity_pos_t z0, entity_pos_t clearance, entity_pos_t range, const PathGoal &goal, pass_class_t passClass, bool avoidMovingUnits, entity_id_t controller, entity_id_t notify)=0 |
| | Request a short path computation, asynchronously. More...
|
| |
| virtual WaypointPath | ComputeShortPathImmediate (const ShortPathRequest &request) const =0 |
| |
| virtual void | SetDebugPath (entity_pos_t x0, entity_pos_t z0, const PathGoal &goal, pass_class_t passClass)=0 |
| | If the debug overlay is enabled, render the path that will computed by ComputePath. More...
|
| |
| virtual bool | IsGoalReachable (entity_pos_t x0, entity_pos_t z0, const PathGoal &goal, pass_class_t passClass)=0 |
| |
| virtual bool | CheckMovement (const IObstructionTestFilter &filter, entity_pos_t x0, entity_pos_t z0, entity_pos_t x1, entity_pos_t z1, entity_pos_t r, pass_class_t passClass) const =0 |
| | Check whether the given movement line is valid and doesn't hit any obstructions or impassable terrain. More...
|
| |
| virtual ICmpObstruction::EFoundationCheck | CheckUnitPlacement (const IObstructionTestFilter &filter, entity_pos_t x, entity_pos_t z, entity_pos_t r, pass_class_t passClass, bool onlyCenterPoint=false) const =0 |
| | Check whether a unit placed here is valid and doesn't hit any obstructions or impassable terrain. More...
|
| |
| virtual ICmpObstruction::EFoundationCheck | CheckBuildingPlacement (const IObstructionTestFilter &filter, entity_pos_t x, entity_pos_t z, entity_pos_t a, entity_pos_t w, entity_pos_t h, entity_id_t id, pass_class_t passClass) const =0 |
| | Check whether a building placed here is valid and doesn't hit any obstructions or impassable terrain. More...
|
| |
| virtual ICmpObstruction::EFoundationCheck | CheckBuildingPlacement (const IObstructionTestFilter &filter, entity_pos_t x, entity_pos_t z, entity_pos_t a, entity_pos_t w, entity_pos_t h, entity_id_t id, pass_class_t passClass, bool onlyCenterPoint) const =0 |
| | Check whether a building placed here is valid and doesn't hit any obstructions or impassable terrain. More...
|
| |
| virtual void | SetDebugOverlay (bool enabled)=0 |
| | Toggle the storage and rendering of debug info. More...
|
| |
| virtual void | SetHierDebugOverlay (bool enabled)=0 |
| | Toggle the storage and rendering of debug info for the hierarchical pathfinder. More...
|
| |
| virtual void | SendRequestedPaths ()=0 |
| | Finish computing asynchronous path requests and send the CMessagePathResult messages. More...
|
| |
| virtual void | StartProcessingMoves (bool useMax)=0 |
| | Tell asynchronous pathfinder threads that they can begin computing paths. More...
|
| |
| virtual void | UpdateGrid ()=0 |
| | Regenerates the grid based on the current obstruction list, if necessary. More...
|
| |
| virtual void | GetDebugData (u32 &steps, double &time, Grid< u8 > &grid) const =0 |
| | Returns some stats about the last ComputePath. More...
|
| |
| virtual void | SetAtlasOverlay (bool enable, pass_class_t passClass=0)=0 |
| | Sets up the pathfinder passability overlay in Atlas. 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 |
| |