10 #include <AtomsCore/Globals.h>
11 #include <Atoms/Globals.h>
12 #include <AtomsUtils/NavigationMesh/NavMesh.h>
21 typedef std::map<std::string, AtomsPtr<AtomsUtils::NavMesh>> NavMeshMap;
45 AtomsPtr<AtomsUtils::NavMesh>
navMesh(
const std::string& name);
59 AtomsWPtr<AtomsUtils::NavMesh>
navMeshWPtr(
const std::string& name);
69 void addNavMesh(
const std::string& name, AtomsPtr<AtomsUtils::NavMesh>& navmesh,
bool replace =
false);
72 void insertNavMesh(
const std::string& name, AtomsPtr<AtomsUtils::NavMesh>& navmesh,
bool replace =
false);
99 NavMeshMap::iterator begin();
101 NavMeshMap::iterator end();
111 NavMeshMap m_navMeshMap;
Container for all agent types.
Definition: NavigationMeshes.h:20
std::vector< std::string > navMeshNames()
Gets all nav mesh names.
~NavigationMeshes()
Destructor.
bool navMeshExists(const std::string &name)
Checks if a nav mesh exists.
NavigationMeshes()
Constructor.
void removeNavMesh(const std::string &name)
Removes an nav mesh from the map.
AtomsPtr< AtomsUtils::NavMesh > navMesh(const std::string &name)
Gets an nav mesh.
NavigationMeshes(const NavigationMeshes &)
Copy constructor.
unsigned int numNavMeshes()
Gets the number of nav mesh.
void insertNavMesh(const std::string &name, AtomsPtr< AtomsUtils::NavMesh > &navmesh, bool replace=false)
Adds an nav mesh to the map.
NavigationMeshes & operator=(const NavigationMeshes &)
Private assign operator.
AtomsWPtr< AtomsUtils::NavMesh > navMeshWPtr(const std::string &name)
Gets an nav mesh.
void clear()
Removes all nav meshes.
void addNavMesh(const std::string &name, AtomsPtr< AtomsUtils::NavMesh > &navmesh, bool replace=false)
Adds an nav mesh to the map.
bool hasNavMesh(const std::string &name)
Checks if an nav mesh with the given name exists.
AtomsUtils::NavMesh * navMeshPtr(const std::string &name)
Gets an nav mesh.
static NavigationMeshes & instance()
Singleton access.
Atoms namespace.
Definition: Agent.h:29