#include <forceeffector.h>
Inheritance diagram for ForceEffector:
Public Member Functions | |
ForceEffector () | |
virtual | ~ForceEffector () |
virtual bool | Realize (boost::shared_ptr< oxygen::ActionObject > action) |
realizes the action described by the ActionObject | |
virtual std::string | GetPredicate () |
returns the name of the predicate this effector implements. | |
virtual boost::shared_ptr< oxygen::ActionObject > | GetActionObject (const oxygen::Predicate &predicate) |
constructs an Actionobject, describing a predicate | |
virtual void | OnLink () |
setup the reference to the agents body node | |
virtual void | OnUnlink () |
remove the reference to the agents body node | |
Protected Attributes | |
boost::shared_ptr< oxygen::Body > | mBody |
the reference to the parents body node |
Definition at line 28 of file forceeffector.h.
|
Definition at line 32 of file forceeffector.cpp. |
|
Definition at line 36 of file forceeffector.cpp. |
|
constructs an Actionobject, describing a predicate
Implements oxygen::Effector. Definition at line 64 of file forceeffector.cpp. References oxygen::Predicate::begin(), zeitgeist::Object::GetLog(), GetPredicate(), oxygen::Predicate::GetValue(), and oxygen::Predicate::name. Here is the call graph for this function: ![]() |
|
returns the name of the predicate this effector implements.
Implements oxygen::Effector. Definition at line 41 of file forceeffector.h. Referenced by GetActionObject(). |
|
setup the reference to the agents body node
Reimplemented from zeitgeist::Leaf. Definition at line 84 of file forceeffector.cpp. References zeitgeist::Object::GetLog(), zeitgeist::Leaf::GetParent(), and mBody. Here is the call graph for this function: ![]() |
|
remove the reference to the agents body node
Reimplemented from zeitgeist::Leaf. Definition at line 109 of file forceeffector.cpp. References mBody. |
|
realizes the action described by the ActionObject
Implements oxygen::Effector. Definition at line 40 of file forceeffector.cpp. References zeitgeist::Object::GetLog(), and mBody. Here is the call graph for this function: ![]() |
|
the reference to the parents body node
Definition at line 55 of file forceeffector.h. Referenced by OnLink(), OnUnlink(), and Realize(). |