Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

BeamEffector Class Reference

#include <beameffector.h>

Inheritance diagram for BeamEffector:

Inheritance graph
[legend]
Collaboration diagram for BeamEffector:

Collaboration graph
[legend]
List of all members.

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::BodymBody
 the reference to the parents body node
boost::shared_ptr< GameStateAspectmGameState
 the reference to the GameState
boost::shared_ptr< AgentStatemAgentState
 a reference to the agent state
float mFieldLength
 the cached field length
float mFieldWidth
 the cached field width
float mAgentRadius
 thec cached agent radius

Detailed Description

Definition at line 29 of file beameffector.h.


Constructor & Destructor Documentation

BeamEffector::BeamEffector  ) 
 

Definition at line 33 of file beameffector.cpp.

BeamEffector::~BeamEffector  )  [virtual]
 

Definition at line 37 of file beameffector.cpp.


Member Function Documentation

shared_ptr< ActionObject > BeamEffector::GetActionObject const oxygen::Predicate predicate  )  [virtual]
 

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:

virtual std::string BeamEffector::GetPredicate  )  [inline, virtual]
 

returns the name of the predicate this effector implements.

Implements oxygen::Effector.

Definition at line 39 of file beameffector.h.

Referenced by GetActionObject().

void BeamEffector::OnLink  )  [protected, virtual]
 

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:

void BeamEffector::OnUnlink  )  [protected, virtual]
 

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.

bool BeamEffector::Realize boost::shared_ptr< oxygen::ActionObject action  )  [virtual]
 

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:


Member Data Documentation

float BeamEffector::mAgentRadius [protected]
 

thec cached agent radius

Definition at line 69 of file beameffector.h.

Referenced by OnLink(), and Realize().

boost::shared_ptr<AgentState> BeamEffector::mAgentState [protected]
 

a reference to the agent state

Definition at line 60 of file beameffector.h.

Referenced by OnLink(), OnUnlink(), and Realize().

boost::shared_ptr<oxygen::Body> BeamEffector::mBody [protected]
 

the reference to the parents body node

Definition at line 54 of file beameffector.h.

Referenced by OnLink(), OnUnlink(), and Realize().

float BeamEffector::mFieldLength [protected]
 

the cached field length

Definition at line 63 of file beameffector.h.

Referenced by OnLink(), and Realize().

float BeamEffector::mFieldWidth [protected]
 

the cached field width

Definition at line 66 of file beameffector.h.

Referenced by OnLink(), and Realize().

boost::shared_ptr<GameStateAspect> BeamEffector::mGameState [protected]
 

the reference to the GameState

Definition at line 57 of file beameffector.h.

Referenced by OnLink(), OnUnlink(), and Realize().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:37:47 2006 for rcssserver3d by  doxygen 1.4.4