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

SoccerInput Class Reference

#include <soccerinput.h>

Inheritance diagram for SoccerInput:

Inheritance graph
[legend]
Collaboration diagram for SoccerInput:

Collaboration graph
[legend]
List of all members.

Public Types

enum  ECmds { CmdUser = kerosin::InputControl::CmdUser, CmdKickOff = CmdUser + 1 }

Public Member Functions

 SoccerInput ()
virtual ~SoccerInput ()
virtual void ProcessInput (const kerosin::InputServer::Input &input)
 this method is called every time an input unknown to the parent InputControl node is received
virtual void OnLink ()
 registers the soccermonitor command constants and cache SparkMonitorClient reference
virtual void OnUnlink ()
 reset SparkMonitorClient reference

Protected Member Functions

void SendCommand (const std::string &cmd)

Protected Attributes

boost::shared_ptr< oxygen::NetClientmMonitorClient
 cached reference to the monitor client

Detailed Description

Definition at line 27 of file soccerinput.h.


Member Enumeration Documentation

enum SoccerInput::ECmds
 

Enumerator:
CmdUser 
CmdKickOff 

Definition at line 30 of file soccerinput.h.


Constructor & Destructor Documentation

SoccerInput::SoccerInput  ) 
 

Definition at line 29 of file soccerinput.cpp.

SoccerInput::~SoccerInput  )  [virtual]
 

Definition at line 33 of file soccerinput.cpp.


Member Function Documentation

void SoccerInput::OnLink  )  [virtual]
 

registers the soccermonitor command constants and cache SparkMonitorClient reference

Reimplemented from zeitgeist::Leaf.

Definition at line 37 of file soccerinput.cpp.

References CmdKickOff, zeitgeist::Object::GetCore(), zeitgeist::Object::GetLog(), and mMonitorClient.

Here is the call graph for this function:

void SoccerInput::OnUnlink  )  [virtual]
 

reset SparkMonitorClient reference

Reimplemented from zeitgeist::Leaf.

Definition at line 52 of file soccerinput.cpp.

References mMonitorClient.

void SoccerInput::ProcessInput const kerosin::InputServer::Input input  )  [virtual]
 

this method is called every time an input unknown to the parent InputControl node is received

Implements kerosin::InputItem.

Definition at line 67 of file soccerinput.cpp.

References CmdKickOff, kerosin::InputServer::Input::id, kerosin::InputServer::Input::KeyPress(), and SendCommand().

Here is the call graph for this function:

void SoccerInput::SendCommand const std::string &  cmd  )  [protected]
 

Definition at line 57 of file soccerinput.cpp.

References mMonitorClient.

Referenced by ProcessInput().


Member Data Documentation

boost::shared_ptr<oxygen::NetClient> SoccerInput::mMonitorClient [protected]
 

cached reference to the monitor client

Definition at line 58 of file soccerinput.h.

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


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