This is a representation of a behaviour tree node for the serialization.
More...
#include <AIStubTypes.h>
|
|
| 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...
|
| |
This is a representation of a behaviour tree node for the serialization.
| 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:
- /home/travis/build/mgerhardy/simpleai/src/ai/server/AIStubTypes.h