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

HearPerceptor Class Reference

#include <hearperceptor.h>

Inheritance diagram for HearPerceptor:

Inheritance graph
[legend]
Collaboration diagram for HearPerceptor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HearPerceptor ()
virtual ~HearPerceptor ()
virtual bool Percept (boost::shared_ptr< oxygen::PredicateList > predList)

Protected Member Functions

virtual void OnLink ()
 sets up the reference to the AgentState
virtual void OnUnlink ()
 resets the reference to the AgentState

Protected Attributes

boost::shared_ptr< AgentStatemAgentState
 reference to the agentstate
boost::shared_ptr< GameStateAspectmGameState
 reference to the GameStateAspect

Detailed Description

Definition at line 34 of file hearperceptor.h.


Constructor & Destructor Documentation

HearPerceptor::HearPerceptor  ) 
 

Definition at line 31 of file hearperceptor.cpp.

HearPerceptor::~HearPerceptor  )  [virtual]
 

Definition at line 35 of file hearperceptor.cpp.


Member Function Documentation

void HearPerceptor::OnLink  )  [protected, virtual]
 

sets up the reference to the AgentState

Reimplemented from zeitgeist::Leaf.

Definition at line 93 of file hearperceptor.cpp.

References SoccerBase::GetAgentState(), SoccerBase::GetGameState(), mAgentState, and mGameState.

Here is the call graph for this function:

void HearPerceptor::OnUnlink  )  [protected, virtual]
 

resets the reference to the AgentState

Reimplemented from zeitgeist::Leaf.

Definition at line 100 of file hearperceptor.cpp.

References mAgentState, and mGameState.

bool HearPerceptor::Percept boost::shared_ptr< oxygen::PredicateList predList  )  [virtual]
 

Returns:
true, if valid data is available and false otherwise.

Implements oxygen::Perceptor.

Definition at line 40 of file hearperceptor.cpp.

References zeitgeist::ParameterList::AddValue(), zeitgeist::ParameterList::Clear(), mAgentState, mGameState, oxygen::Predicate::name, and oxygen::Predicate::parameter.

Here is the call graph for this function:


Member Data Documentation

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

reference to the agentstate

Definition at line 52 of file hearperceptor.h.

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

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

reference to the GameStateAspect

Definition at line 55 of file hearperceptor.h.

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


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