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