|
ORTS
|
A pathfinding task to be executed. More...
#include <TerrainBase.H>
Public Types | |
| enum | Group { INDIVIDUAL, FORMATION } |
Units traveling at individual speeds or in formation? More... | |
Public Member Functions | |
| Task (Goal::Target t=Goal::LOCATION, Goal::Mode m=Goal::VICINITY, Group g=INDIVIDUAL) | |
| Task (const Task &other) | |
Public Attributes | |
| Goal | goal |
| The goal of the movement. | |
| enum TerrainBase::Task::Group | group |
| std::set< const Object * > | objs |
| The objects to be moved. | |
A pathfinding task to be executed.
Definition at line 145 of file TerrainBase.H.
Units traveling at individual speeds or in formation?
Definition at line 151 of file TerrainBase.H.
| TerrainBase::Task::Task | ( | Goal::Target | t = Goal::LOCATION, |
| Goal::Mode | m = Goal::VICINITY, |
||
| Group | g = INDIVIDUAL |
||
| ) | [inline] |
Definition at line 159 of file TerrainBase.H.
| TerrainBase::Task::Task | ( | const Task & | other | ) | [inline] |
Definition at line 161 of file TerrainBase.H.
The goal of the movement.
Definition at line 148 of file TerrainBase.H.
Referenced by PursueAttack::act(), BaseDefense::act(), TerrainBasicImp< TaskWrapper >::add_task(), ForceFieldPE::calculate_move(), BSimul::DEFINE_BTASK(), Simul::DEFINE_TASK(), SimplePFAdapter::find_path(), SimpleTerrain::SimpleGlobalPF::find_path(), GfxModule::GUI_broadcast(), BSimul::BuildTasksAI::handle_event(), SimpleTerrain::ST_ForceField::is_at_goal(), SimpleTerrain::ST_Terrain::is_at_goal(), ForceFieldPE::is_at_goal(), FFLocPath::is_at_goal(), TerrainBase::Obj2LocTask::Obj2LocTask(), TerrainBase::Obj2ObjTask::Obj2ObjTask(), and SimpleTerrain::ST_Task::ST_Task().
| std::set<const Object*> TerrainBase::Task::objs |
The objects to be moved.
It's the implementation's responsibility to track remove_object() calls and handle cases of a objects dying or vanishing in the FOW (and pointers becoming invalid).
Definition at line 157 of file TerrainBase.H.
Referenced by SuicideAttackAI::act(), PursueAttack::act(), BaseDefense::act(), TerrainBasicImp< TaskWrapper >::add_task(), ForceFieldPE::calculate_move(), BSimul::DEFINE_BTASK(), Simul::DEFINE_TASK(), SimpleTerrain::ST_Terrain::execute_task(), SimplePFAdapter::find_path(), SimpleTerrain::SimpleGlobalPF::find_path(), ForceFieldPE::get_attractor(), GfxModule::GUI_broadcast(), BSimul::BuildTasksAI::handle_event(), TerrainBase::Obj2LocTask::Obj2LocTask(), TerrainBase::Obj2ObjTask::Obj2ObjTask(), TRTerrain::TR_Terrain::remove_task(), SimpleTerrain::ST_ForceField::remove_task(), SimpleTerrain::ST_Terrain::remove_task(), FFLocPath::remove_task(), and SimpleTerrain::ST_Task::ST_Task().