Atoms Crowd  4.1.0
Atoms::NavigationMeshes Class Reference

Container for all agent types. More...

#include <NavigationMeshes.h>

Public Member Functions

 NavigationMeshes ()
 Constructor.
 
 NavigationMeshes (const NavigationMeshes &)
 Copy constructor.
 
 ~NavigationMeshes ()
 Destructor.
 
NavigationMeshesoperator= (const NavigationMeshes &)
 Private assign operator.
 
AtomsPtr< AtomsUtils::NavMeshnavMesh (const std::string &name)
 Gets an nav mesh. More...
 
AtomsUtils::NavMeshnavMeshPtr (const std::string &name)
 Gets an nav mesh. More...
 
AtomsWPtr< AtomsUtils::NavMeshnavMeshWPtr (const std::string &name)
 Gets an nav mesh. More...
 
bool hasNavMesh (const std::string &name)
 Checks if an nav mesh with the given name exists.
 
void addNavMesh (const std::string &name, AtomsPtr< AtomsUtils::NavMesh > &navmesh, bool replace=false)
 Adds an nav mesh to the map. More...
 
void insertNavMesh (const std::string &name, AtomsPtr< AtomsUtils::NavMesh > &navmesh, bool replace=false)
 Adds an nav mesh to the map.
 
void removeNavMesh (const std::string &name)
 Removes an nav mesh from the map. More...
 
std::vector< std::string > navMeshNames ()
 Gets all nav mesh names. More...
 
bool navMeshExists (const std::string &name)
 Checks if a nav mesh exists. More...
 
unsigned int numNavMeshes ()
 Gets the number of nav mesh.
 
void clear ()
 Removes all nav meshes.
 

Static Public Member Functions

static NavigationMeshesinstance ()
 Singleton access.
 

Detailed Description

Container for all agent types.

Member Function Documentation

◆ addNavMesh()

void Atoms::NavigationMeshes::addNavMesh ( const std::string &  name,
AtomsPtr< AtomsUtils::NavMesh > &  navmesh,
bool  replace = false 
)

Adds an nav mesh to the map.

Parameters
namenav mesh name
navmeshnav mesh

◆ navMesh()

AtomsPtr<AtomsUtils::NavMesh> Atoms::NavigationMeshes::navMesh ( const std::string &  name)

Gets an nav mesh.

Parameters
namenav mesh name
Returns
Smart pointer to the nav mesh

◆ navMeshExists()

bool Atoms::NavigationMeshes::navMeshExists ( const std::string &  name)

Checks if a nav mesh exists.

Parameters
namenav mesh name
Returns
Return true if the nav mesh exists

◆ navMeshNames()

std::vector<std::string> Atoms::NavigationMeshes::navMeshNames ( )

Gets all nav mesh names.

Returns
List of all nav mesh

◆ navMeshPtr()

AtomsUtils::NavMesh* Atoms::NavigationMeshes::navMeshPtr ( const std::string &  name)

Gets an nav mesh.

Parameters
namenav mesh name
Returns
Pointer to the nav mesh

◆ navMeshWPtr()

AtomsWPtr<AtomsUtils::NavMesh> Atoms::NavigationMeshes::navMeshWPtr ( const std::string &  name)

Gets an nav mesh.

Parameters
namenav mesh name
Returns
Weak pointer to the nav mesh

◆ removeNavMesh()

void Atoms::NavigationMeshes::removeNavMesh ( const std::string &  name)

Removes an nav mesh from the map.

Parameters
namenav mesh name

The documentation for this class was generated from the following file: