47 #ifndef __ELEVATION_NAV_MESH_H__
48 #define __ELEVATION_NAV_MESH_H__
55 #include "mengeCommon.h"
89 virtual float getElevation(
const Vector2 & point )
const;
97 virtual float getElevation(
const BaseAgent * agent )
const;
172 virtual const char *
name()
const {
return "nav_mesh"; }
182 return "Provides elevation based on location on a navigation mesh.";
216 virtual bool setFromXML(
Elevation * e, TiXmlElement * node,
const std::string & specFldr )
const;
225 #endif // __ELEVATION_NAV_MESH_H__
Factory for the NavMeshElevation.
Definition: ElevationNavMesh.h:157
virtual const char * name() const
The name of the elevation.
Definition: ElevationNavMesh.h:172
size_t _fileNameID
The identifier for the "file_name" string attribute.
Definition: ElevationNavMesh.h:221
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
NavMeshLocalizerPtr _localizer
The localizer for identifying where the agents are in the navigation mesh.
Definition: ElevationNavMesh.h:149
Data structure responsible for knowing where on the navigation mesh each agent is located...
void setNavMesh(const NavMeshPtr &nm)
Sets the navigation mesh pointer.
Definition: ElevationNavMesh.h:121
NavMeshPtr _navMesh
The navigation mesh used to query elevation and gradient.
Definition: ElevationNavMesh.h:143
A class for parsing the xml description of an action and instantiating particular instances...
Definition: ElevationFactory.h:59
Elevation * instance() const
Create an instance of this class's elevation implementation.
Definition: ElevationNavMesh.h:196
The definition of the elevation element. This approximately allows for agents to be simulated on non-...
The namespace contains the Behavior Finite State Machine (BFSM) definition.
virtual const char * description() const
A description of the elevation.
Definition: ElevationNavMesh.h:181
The base class for determining an agent's elevation.
Definition: Elevation.h:107
void setNavMeshLocalizer(const NavMeshLocalizerPtr &nml)
Sets the navigation mesh localizer pointer.
Definition: ElevationNavMesh.h:128
Interface for basic FSM task.
Definition: Task.h:110
Defines the basic agent properties and functionality that all simulation agents share.
Definition: BaseAgent.h:123
Elevation definition based on a navigation mesh.
Definition: ElevationNavMesh.h:74
The factory for parsing xml data and instantiating elevation implementations.
Defines the classes which maintain the navigation mesh data.
The namespace that contains the basic simulation mechanisms.