#include <sayeffector.h>
Inheritance diagram for SayEffector:
Public Member Functions | |
SayEffector () | |
virtual | ~SayEffector () |
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 ball body node | |
virtual void | OnUnlink () |
remove the reference to the ball body node | |
std::string | GetText () |
bool | IfText () const |
Protected Attributes | |
boost::shared_ptr< oxygen::AgentAspect > | mAgent |
reference to the agent aspect | |
boost::shared_ptr< AgentState > | mAgentState |
reference to the agentstate | |
boost::shared_ptr< SoccerRuleAspect > | mSoccerRule |
reference to the soccer rule aspect | |
Private Attributes | |
std::string | mMessage |
said message | |
bool | ifText |
Definition at line 35 of file sayeffector.h.
|
Definition at line 34 of file sayeffector.cpp. |
|
Definition at line 39 of file sayeffector.cpp. |
|
constructs an Actionobject, describing a predicate
Implements oxygen::Effector. Definition at line 92 of file sayeffector.cpp. References oxygen::Predicate::AdvanceValue(), oxygen::Predicate::begin(), zeitgeist::Object::GetLog(), GetPredicate(), 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 45 of file sayeffector.h. Referenced by GetActionObject(). |
|
Definition at line 79 of file sayeffector.cpp. |
|
Definition at line 86 of file sayeffector.cpp. References ifText. |
|
setup the reference to the ball body node
Reimplemented from zeitgeist::Leaf. Definition at line 121 of file sayeffector.cpp. References SoccerBase::GetAgentState(), zeitgeist::Object::GetLog(), zeitgeist::Leaf::GetParent(), SoccerBase::GetSoccerRuleAspect(), mAgent, mAgentState, and mSoccerRule. Here is the call graph for this function: ![]() |
|
remove the reference to the ball body node
Reimplemented from zeitgeist::Leaf. Definition at line 138 of file sayeffector.cpp. References mAgent, mAgentState, and mSoccerRule. |
|
realizes the action described by the ActionObject
Implements oxygen::Effector. |
|
Definition at line 75 of file sayeffector.h. |
|
reference to the agent aspect
Definition at line 63 of file sayeffector.h. Referenced by OnLink(), and OnUnlink(). |
|
reference to the agentstate
Definition at line 66 of file sayeffector.h. Referenced by OnLink(), and OnUnlink(). |
|
said message
Definition at line 73 of file sayeffector.h. Referenced by GetText(). |
|
reference to the soccer rule aspect
Definition at line 69 of file sayeffector.h. Referenced by OnLink(), and OnUnlink(). |