AI Node Class. More...
#include <deAINode.h>
Public Member Functions | |
Constructors and Destructors | |
| deAINode () | |
| Creates a new ai node. | |
| virtual | ~deAINode () |
| Cleans up the ai node. | |
Management | |
| deAINode * | GetParentNode () const |
| Retrieves the parent node or NULL. | |
| void | SetParentNode (deAINode *node) |
| Sets the parent node or NULL. | |
Visiting | |
| virtual void | Visit (deAINodeVisitor *visitor) |
| Visits the rule. | |
AI Node Class.
Base class for all AI Nodes. Keeps a weak reference to the parent node for modifying the tree. Nodes have to tell their parents if they have been processed or not. This is especially important for nodes with conditions. If they are skipped due to the condition they are considered to not have run. If they execute they are considered to have run.
| deAINode::deAINode | ( | ) |
Creates a new ai node.
| virtual deAINode::~deAINode | ( | ) | [virtual] |
Cleans up the ai node.
| deAINode* deAINode::GetParentNode | ( | ) | const [inline] |
Retrieves the parent node or NULL.
| void deAINode::SetParentNode | ( | deAINode * | node ) |
Sets the parent node or NULL.
| virtual void deAINode::Visit | ( | deAINodeVisitor * | visitor ) | [virtual] |
Visits the rule.
Reimplemented in deAINodeChain, deAINodeModifyAnimator, and deAINodeSendEvent.
1.7.2