#include <initeffector.h>
Inheritance diagram for InitEffector:
Public Member Functions | |
InitEffector () | |
virtual | ~InitEffector () |
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 | |
Protected Member Functions | |
virtual void | OnLink () |
set up the reference GameStateAspect | |
virtual void | OnUnlink () |
reset the reference to the GameStateAspect | |
Protected Attributes | |
boost::shared_ptr< GameStateAspect > | mGameState |
reference to the GameStateAspect | |
boost::shared_ptr< oxygen::AgentAspect > | mAgentAspect |
reference to the AgentAspect |
Definition at line 29 of file initeffector.h.
|
Definition at line 37 of file initeffector.cpp. |
|
Definition at line 41 of file initeffector.cpp. |
|
constructs an Actionobject, describing a predicate
Implements oxygen::Effector. Definition at line 96 of file initeffector.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 42 of file initeffector.h. Referenced by GetActionObject(). |
|
set up the reference GameStateAspect
Reimplemented from zeitgeist::Leaf. Definition at line 114 of file initeffector.cpp. References oxygen::Effector::GetAgentAspect(), SoccerBase::GetControlAspect(), zeitgeist::Object::GetLog(), mAgentAspect, and mGameState. Here is the call graph for this function: ![]() |
|
reset the reference to the GameStateAspect
Reimplemented from zeitgeist::Leaf. Definition at line 126 of file initeffector.cpp. References mAgentAspect, and mGameState. |
|
realizes the action described by the ActionObject
Implements oxygen::Effector. Definition at line 46 of file initeffector.cpp. References SoccerBase::GetAgentBody(), zeitgeist::Object::GetLog(), mAgentAspect, and mGameState. Here is the call graph for this function: ![]() |
|
reference to the AgentAspect
Definition at line 60 of file initeffector.h. Referenced by OnLink(), OnUnlink(), and Realize(). |
|
reference to the GameStateAspect
Definition at line 57 of file initeffector.h. Referenced by OnLink(), OnUnlink(), and Realize(). |