#include <TankKeyboardControl.h>

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 () |
Definition at line 27 of file TankKeyboardControl.h.
| TankKeyboardControl::TankKeyboardControl | ( | ) | [private] |
Definition at line 41 of file TankKeyboardControl.cpp.
| TankKeyboardControl::~TankKeyboardControl | ( | ) | [private, virtual] |
Definition at line 47 of file TankKeyboardControl.cpp.
| 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.
TankKeyboardControl * TankKeyboardControl::instance_ = 0 [static, protected] |
1.5.3