 |
CUGL 1.3
Cornell University Game Library
|
38 #ifndef __CU_LEAF_NODE_H__
39 #define __CU_LEAF_NODE_H__
40 #include <cugl/ai/behavior/CUBehaviorNode.h>
41 #include <cugl/ai/behavior/CUBehaviorAction.h>
64 #pragma mark Constructors
87 #pragma mark Attributes
98 std::string
toString(
bool verbose =
false)
const override;
115 void setAction(
const std::shared_ptr<BehaviorAction>& action) {
119 #pragma mark Behavior Management
127 void reset()
override;
136 void pause()
override;
167 void query(
float dt)
override;
Definition: CULeafNode.h:56
const BehaviorAction * getAction() const
Definition: CULeafNode.h:108
Definition: CUBehaviorNode.h:280
BehaviorNode::State update(float dt) override
std::string toString(bool verbose=false) const override
void setAction(const std::shared_ptr< BehaviorAction > &action)
Definition: CULeafNode.h:115
~LeafNode()
Definition: CULeafNode.h:76
State
Definition: CUBehaviorNode.h:290
void query(float dt) override
Definition: CUBehaviorAction.h:126
std::shared_ptr< BehaviorAction > _action
Definition: CULeafNode.h:60