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

SayEffector Class Reference

#include <sayeffector.h>

Inheritance diagram for SayEffector:

Inheritance graph
[legend]
Collaboration diagram for SayEffector:

Collaboration graph
[legend]
List of all members.

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::AgentAspectmAgent
 reference to the agent aspect
boost::shared_ptr< AgentStatemAgentState
 reference to the agentstate
boost::shared_ptr< SoccerRuleAspectmSoccerRule
 reference to the soccer rule aspect

Private Attributes

std::string mMessage
 said message
bool ifText

Detailed Description

Definition at line 35 of file sayeffector.h.


Constructor & Destructor Documentation

SayEffector::SayEffector  ) 
 

Definition at line 34 of file sayeffector.cpp.

SayEffector::~SayEffector  )  [virtual]
 

Definition at line 39 of file sayeffector.cpp.


Member Function Documentation

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

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:

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

returns the name of the predicate this effector implements.

Implements oxygen::Effector.

Definition at line 45 of file sayeffector.h.

Referenced by GetActionObject().

string SayEffector::GetText  ) 
 

Definition at line 79 of file sayeffector.cpp.

References ifText, and mMessage.

bool SayEffector::IfText  )  const
 

Definition at line 86 of file sayeffector.cpp.

References ifText.

void SayEffector::OnLink  )  [virtual]
 

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:

void SayEffector::OnUnlink  )  [virtual]
 

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.

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

realizes the action described by the ActionObject

Implements oxygen::Effector.


Member Data Documentation

bool SayEffector::ifText [private]
 

Definition at line 75 of file sayeffector.h.

Referenced by GetText(), and IfText().

boost::shared_ptr<oxygen::AgentAspect> SayEffector::mAgent [protected]
 

reference to the agent aspect

Definition at line 63 of file sayeffector.h.

Referenced by OnLink(), and OnUnlink().

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

reference to the agentstate

Definition at line 66 of file sayeffector.h.

Referenced by OnLink(), and OnUnlink().

std::string SayEffector::mMessage [private]
 

said message

Definition at line 73 of file sayeffector.h.

Referenced by GetText().

boost::shared_ptr<SoccerRuleAspect> SayEffector::mSoccerRule [protected]
 

reference to the soccer rule aspect

Definition at line 69 of file sayeffector.h.

Referenced by OnLink(), and OnUnlink().


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