TankKeyboardControl Class Reference

#include <TankKeyboardControl.h>

Inheritance diagram for TankKeyboardControl:

GameStateI

List of all members.

Public Member Functions

virtual void enterState (const unsigned state)
virtual void keyboardCheck (const unsigned state, float frameTime, char *buffer, unsigned int keyState, KeyboardHistory::HistoryElement *history, int hisCount, bool &skipRest)

Static Public Member Functions

static
TankKeyboardControl
instance ()

Static Protected Attributes

static
TankKeyboardControl
instance_ = 0

Private Member Functions

 TankKeyboardControl ()
virtual ~TankKeyboardControl ()


Detailed Description

Definition at line 27 of file TankKeyboardControl.h.


Constructor & Destructor Documentation

TankKeyboardControl::TankKeyboardControl (  )  [private]

Definition at line 41 of file TankKeyboardControl.cpp.

TankKeyboardControl::~TankKeyboardControl (  )  [private, virtual]

Definition at line 47 of file TankKeyboardControl.cpp.


Member Function Documentation

TankKeyboardControl * TankKeyboardControl::instance (  )  [static]

Definition at line 31 of file TankKeyboardControl.cpp.

References instance_.

Referenced by ClientState::setupGameState().

void TankKeyboardControl::enterState ( const unsigned  state  )  [virtual]

Reimplemented from GameStateI.

Definition at line 52 of file TankKeyboardControl.cpp.

References TankKeyboardControlUtil::endPlayMove(), TankContainer::getCurrentTank(), TankState::getState(), Tank::getState(), ScorchedContext::getTankContainer(), ScorchedClient::instance(), TankState::sNormal, and ClientState::StateShot.

void TankKeyboardControl::keyboardCheck ( const unsigned  state,
float  frameTime,
char *  buffer,
unsigned int  keyState,
KeyboardHistory::HistoryElement history,
int  hisCount,
bool &  skipRest 
) [virtual]

Reimplemented from GameStateI.

Definition at line 68 of file TankKeyboardControl.cpp.

References TankContainer::getCurrentTank(), TankState::getState(), Tank::getState(), ScorchedContext::getTankContainer(), ScorchedClient::instance(), TankKeyboardControlUtil::keyboardCheck(), and TankState::sNormal.


Member Data Documentation

TankKeyboardControl * TankKeyboardControl::instance_ = 0 [static, protected]

Definition at line 40 of file TankKeyboardControl.h.

Referenced by instance().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:07 2009 for Scorched3D by  doxygen 1.5.3