#include <beameffector.h>
Inheritance diagram for BeamEffector:
Public Member Functions | |
BeamEffector () | |
virtual | ~BeamEffector () |
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 () |
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 | |
boost::shared_ptr< GameStateAspect > | mGameState |
the reference to the GameState | |
boost::shared_ptr< AgentState > | mAgentState |
a reference to the agent state | |
float | mFieldLength |
the cached field length | |
float | mFieldWidth |
the cached field width | |
float | mAgentRadius |
thec cached agent radius |
Definition at line 29 of file beameffector.h.
|
Definition at line 33 of file beameffector.cpp. |
|
Definition at line 37 of file beameffector.cpp. |
|
constructs an Actionobject, describing a predicate
Implements oxygen::Effector. Definition at line 116 of file beameffector.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 39 of file beameffector.h. Referenced by GetActionObject(). |
|
setup the reference to the agents body node
Reimplemented from zeitgeist::Leaf. Definition at line 137 of file beameffector.cpp. References SoccerBase::GetAgentState(), SoccerBase::GetBody(), SoccerBase::GetGameState(), SoccerBase::GetSoccerVar(), mAgentRadius, mAgentState, mBody, mFieldLength, mFieldWidth, and mGameState. Here is the call graph for this function: ![]() |
|
remove the reference to the agents body node
Reimplemented from zeitgeist::Leaf. Definition at line 154 of file beameffector.cpp. References mAgentState, mBody, and mGameState. |
|
realizes the action described by the ActionObject
Implements oxygen::Effector. Definition at line 50 of file beameffector.cpp. References SoccerBase::FlipView(), zeitgeist::Object::GetLog(), mAgentRadius, mAgentState, mBody, mFieldLength, mFieldWidth, mGameState, and PM_BeforeKickOff. Here is the call graph for this function: ![]() |
|
thec cached agent radius
Definition at line 69 of file beameffector.h. |
|
a reference to the agent state
Definition at line 60 of file beameffector.h. Referenced by OnLink(), OnUnlink(), and Realize(). |
|
the reference to the parents body node
Definition at line 54 of file beameffector.h. Referenced by OnLink(), OnUnlink(), and Realize(). |
|
the cached field length
Definition at line 63 of file beameffector.h. |
|
the cached field width
Definition at line 66 of file beameffector.h. |
|
the reference to the GameState
Definition at line 57 of file beameffector.h. Referenced by OnLink(), OnUnlink(), and Realize(). |