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

InitEffector Class Reference

#include <initeffector.h>

Inheritance diagram for InitEffector:

Inheritance graph
[legend]
Collaboration diagram for InitEffector:

Collaboration graph
[legend]
List of all members.

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< GameStateAspectmGameState
 reference to the GameStateAspect
boost::shared_ptr< oxygen::AgentAspectmAgentAspect
 reference to the AgentAspect

Detailed Description

Definition at line 29 of file initeffector.h.


Constructor & Destructor Documentation

InitEffector::InitEffector  ) 
 

Definition at line 37 of file initeffector.cpp.

InitEffector::~InitEffector  )  [virtual]
 

Definition at line 41 of file initeffector.cpp.


Member Function Documentation

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

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:

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

returns the name of the predicate this effector implements.

Implements oxygen::Effector.

Definition at line 42 of file initeffector.h.

Referenced by GetActionObject().

void InitEffector::OnLink  )  [protected, virtual]
 

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:

void InitEffector::OnUnlink  )  [protected, virtual]
 

reset the reference to the GameStateAspect

Reimplemented from zeitgeist::Leaf.

Definition at line 126 of file initeffector.cpp.

References mAgentAspect, and mGameState.

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

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:


Member Data Documentation

boost::shared_ptr<oxygen::AgentAspect> InitEffector::mAgentAspect [protected]
 

reference to the AgentAspect

Definition at line 60 of file initeffector.h.

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

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

reference to the GameStateAspect

Definition at line 57 of file initeffector.h.

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


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