SimpleAI
 All Classes Namespaces Files Functions Variables Typedefs Macros Groups Pages
Public Member Functions | List of all members
ai::AIStateNode Class Reference

This is a representation of a behaviour tree node for the serialization. More...

#include <AIStubTypes.h>

Public Member Functions

 AIStateNode (int32_t id, const std::string &condition, int64_t lastRun, TreeNodeStatus status, bool currentlyRunning)
 
void addChildren (const AIStateNode &child)
 
void addChildren (AIStateNode &&child)
 
const std::vector< AIStateNode > & getChildren () const
 
std::vector< AIStateNode > & getChildren ()
 
int32_t getNodeId () const
 
const std::string & getCondition () const
 
int64_t getLastRun () const
 
TreeNodeStatus getStatus () const
 
bool isRunning () const
 Some nodes have a state that holds which children is currently running. More...
 

Detailed Description

This is a representation of a behaviour tree node for the serialization.

Member Function Documentation

int64_t ai::AIStateNode::getLastRun ( ) const
inline
Returns
The milliseconds since the last execution of this particular node. or -1 if it wasn't executed yet
TreeNodeStatus ai::AIStateNode::getStatus ( ) const
inline
Returns
The TreeNodeStatus of the last execution
bool ai::AIStateNode::isRunning ( ) const
inline

Some nodes have a state that holds which children is currently running.

Returns
Whether this particular node is currently running

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