Atoms Crowd  7.0.0
Atoms::BehaviourTreeContext Class Reference

Classes

class  AgentScopeLock
 
struct  BehaviourStackState
 
struct  ChildState
 

Public Member Functions

 BehaviourTreeContext (BehaviourTree *bt)
 
void setTree (BehaviourTree *bt)
 
bool start ()
 
bool start (const std::string &name)
 
bool start (unsigned short index)
 
void abort (unsigned short index)
 
bool isRunning () const
 
void stop ()
 
Behaviour::Status tick ()
 
void updateParent (Behaviour *behaviour, Behaviour::State &current)
 
void dirtyUpdateParent (Behaviour *behaviour, Behaviour::State &current)
 
template<class T >
T * allocateMemory ()
 
template<class T >
void releaseMemory (T *data)
 
std::string behaviourName (unsigned short index) const
 
template<class T >
T & getBlackboardValue (BlackboardValue< T > &value)
 
template<class T >
std::vector< T > & getBlackboardValue (BlackboardValue< std::vector< T >> &value)
 
template<class T >
bool setBlackboardValue (const BlackboardValue< T > &value)
 
template<class T >
bool setBlackboardValue (const BlackboardValue< std::vector< T >> &value)
 
AtomsPtr< AtomsCore::MetadatagetBlackboardValueFromName (const std::string &name) const
 
AtomsPtr< AtomsCore::MetadatagetBlackboardValueFromPosition (const BlackboardEntryPosition &position) const
 
void cacheMetadata (Atoms::BlackboardEntryPosition &position)
 
void unCacheMetadata (Atoms::BlackboardEntryPosition &position)
 
void lock ()
 
void unlock ()
 

Public Attributes

const unsigned short nullIndex = 0
 
BlackboardInstance blackboardInstance
 
BehaviourTreetree
 
AgentGroupagentGroup
 
Agentagent
 
std::mutex * mutex
 
std::deque< BehaviourStackStatem_activeBehaviours
 
std::vector< Behaviour::Statem_activeStack
 
std::vector< BehaviourStackStatem_aborted
 
std::vector< BehaviourStackStatem_started
 
std::vector< unsigned short > m_successBehaviours
 
std::vector< unsigned short > m_failureBehaviours
 
unsigned short tickCount
 
double tickTime
 
unsigned int seed
 
bool debug
 
bool isLocked
 

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