Sub-class of NavMeshLocalizer that can be run as an FSM task.
More...
#include <NavMeshLocalizerTask.h>
|
| NavMeshLocalizerTask (const std::string &navMeshName, bool usePlanner) |
| Constructor from a localizer. More...
|
|
virtual void | doWork (const FSM *fsm) throw ( TaskException ) |
| The work performed by the task. More...
|
|
virtual std::string | toString () const |
| String representation of the task. More...
|
|
virtual bool | isEquivalent (const Task *task) const |
| Reports if this task is "equivalent" to the given task. This makes it possible for a task to be redundantly added to the fsm without fear of duplication as the equivalent duplicates will be culled. More...
|
|
void | destroy () |
| This supplants the destructor. More...
|
|
virtual BFSM::Task * | getTask () |
| Return an optional task associated with this element. More...
|
|
virtual SceneGraph::GLNode * | getSGNode () |
| Returns an optional visualization element associated with the element. More...
|
|
|
virtual | ~Task () |
| Virtual destructor.
|
|
Sub-class of NavMeshLocalizer that can be run as an FSM task.
Menge::BFSM::NavMeshLocalizerTask::NavMeshLocalizerTask |
( |
const std::string & |
navMeshName, |
|
|
bool |
usePlanner |
|
) |
| |
Constructor from a localizer.
- Parameters
-
navMeshName | The name of the navigation mesh which the task depends on. |
usePlanner | Indicates if the localizer should use a planner (true) or not (false). |
void Menge::BFSM::NavMeshLocalizerTask::doWork |
( |
const FSM * |
fsm | ) |
|
throw | ( | TaskException |
| ) | | |
|
virtual |
The work performed by the task.
- Parameters
-
fsm | The finite state machine for the task to operate on. |
- Exceptions
-
A | TaskException if there was some non-fatal error in execution. It should be logged. |
A | TaskFatalException if there is a fatal error that should arrest execution of the simulation. |
Implements Menge::BFSM::Task.
bool Menge::BFSM::NavMeshLocalizerTask::isEquivalent |
( |
const Task * |
task | ) |
const |
|
virtual |
Reports if this task is "equivalent" to the given task. This makes it possible for a task to be redundantly added to the fsm without fear of duplication as the equivalent duplicates will be culled.
- Parameters
-
task | The task to test against this one. |
- Returns
- A boolean reporting if the two tasks are equivalent (true) or unique (false).
Implements Menge::BFSM::Task.
std::string Menge::BFSM::NavMeshLocalizerTask::toString |
( |
| ) |
const |
|
virtual |
String representation of the task.
- Returns
- A string containing task information.
Implements Menge::BFSM::Task.
The documentation for this class was generated from the following files: