Atoms Crowd  7.0.0
Atoms::BehaviourTreeMaps Class Reference

Public Member Functions

BehaviourTreeMapPtr behaviourTreeMap (const std::string &name) const
 Return an behaviour trees. More...
 
BehaviourTreeMapPtr behaviourTreeMap (const std::string &name)
 Return an behaviour trees. More...
 
BehaviourTreeMapPtr addBehaviourTreeMap (const std::string &name, const AtomsCore::MapMetadata &behaviourTreeMap, bool replace=true)
 Add an behaviour tree to the map. More...
 
BehaviourTreeMapPtr addBehaviourTreeMap (const std::string &name, AtomsCore::MapMetadata &behaviourTreeMap, bool replace=true)
 Add an behaviour tree to the map. More...
 
void removeBehaviourTreeMap (const std::string &name)
 Remove an behaviour tree from the map. More...
 
std::vector< std::string > behaviourTreeMapNames ()
 Get all behaviour tree names. More...
 
bool behaviourTreeMapExists (const std::string &name)
 Check if an behaviour tree exists. More...
 
unsigned int numBehaviourTreeMaps ()
 Get number of behaviour trees.
 
void clear ()
 Remove all behaviour trees.
 
bool buildBehaviourTree (const std::string &name, Atoms::BehaviourTree &behaviourTree)
 builds a behaviour tree from the map name
 
bool buildBehaviourTreeFromMap (const BehaviourTreeMapPtr &map, Atoms::BehaviourTree &behaviourTree)
 builds a behaviour tree from a behaviour tree map
 
void getAllBlackboardExposeKeys (const std::string &name, AtomsCore::MapMetadata &exposeKeys)
 gets all the blackboard keys to expose in the host app
 

Static Public Member Functions

static BehaviourTreeMapsinstance ()
 Singleton access.
 

Member Function Documentation

◆ addBehaviourTreeMap() [1/2]

BehaviourTreeMapPtr Atoms::BehaviourTreeMaps::addBehaviourTreeMap ( const std::string &  name,
AtomsCore::MapMetadata behaviourTreeMap,
bool  replace = true 
)

Add an behaviour tree to the map.

Parameters
namebehaviour tree name \patam behaviourTree the behaviourTree object

◆ addBehaviourTreeMap() [2/2]

BehaviourTreeMapPtr Atoms::BehaviourTreeMaps::addBehaviourTreeMap ( const std::string &  name,
const AtomsCore::MapMetadata behaviourTreeMap,
bool  replace = true 
)

Add an behaviour tree to the map.

Parameters
namebehaviour tree name \patam behaviourTree the behaviourTree object

◆ behaviourTreeMap() [1/2]

BehaviourTreeMapPtr Atoms::BehaviourTreeMaps::behaviourTreeMap ( const std::string &  name)

Return an behaviour trees.

Parameters
BehaviourTreebehaviour tree name
Returns
Pointer to the behaviour tree stored inside this class

◆ behaviourTreeMap() [2/2]

BehaviourTreeMapPtr Atoms::BehaviourTreeMaps::behaviourTreeMap ( const std::string &  name) const

Return an behaviour trees.

Parameters
BehaviourTreebehaviour tree name
Returns
Pointer to the behaviour tree stored inside this class

◆ behaviourTreeMapExists()

bool Atoms::BehaviourTreeMaps::behaviourTreeMapExists ( const std::string &  name)

Check if an behaviour tree exists.

Parameters
namebehaviour tree name
Returns
Return true if the behaviour tree exists

◆ behaviourTreeMapNames()

std::vector<std::string> Atoms::BehaviourTreeMaps::behaviourTreeMapNames ( )

Get all behaviour tree names.

Returns
List of all behaviour tree names

◆ removeBehaviourTreeMap()

void Atoms::BehaviourTreeMaps::removeBehaviourTreeMap ( const std::string &  name)

Remove an behaviour tree from the map.

Parameters
namebehaviour tree name

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