#include <ClientShotState.h>

Public Member Functions | |
| virtual bool | processMessage (NetMessage &message, const char *messageType, NetBufferReader &reader) |
| virtual void | enterState (const unsigned state) |
| virtual bool | acceptStateChange (const unsigned state, const unsigned nextState, float frameTime) |
Static Public Member Functions | |
| static ClientShotState * | instance () |
Protected Attributes | |
| PlayShots | playShots_ |
| ShotState | shotState_ |
Static Protected Attributes | |
| static ClientShotState * | instance_ = 0 |
Private Member Functions | |
| ClientShotState () | |
| virtual | ~ClientShotState () |
Definition at line 31 of file ClientShotState.h.
| ClientShotState::ClientShotState | ( | ) | [private] |
Definition at line 43 of file ClientShotState.cpp.
References ComsMessageHandler::addHandler(), ScorchedContext::getComsMessageHandler(), and ScorchedClient::instance().
| ClientShotState::~ClientShotState | ( | ) | [private, virtual] |
Definition at line 53 of file ClientShotState.cpp.
| ClientShotState * ClientShotState::instance | ( | ) | [static] |
Definition at line 34 of file ClientShotState.cpp.
References instance_.
Referenced by ClientState::setupGameState().
| bool ClientShotState::processMessage | ( | NetMessage & | message, | |
| const char * | messageType, | |||
| NetBufferReader & | reader | |||
| ) | [virtual] |
Implements ComsMessageHandlerI.
Definition at line 57 of file ClientShotState.cpp.
References GameState::checkStimulate(), ScorchedContext::getActionController(), ScorchedClient::getContext(), ScorchedContext::getGameState(), ComsPlayMovesMessage::getSeed(), ScorchedContext::getViewPoints(), ScorchedClient::instance(), Landscape::instance(), playShots_, PlayShots::readMessage(), ComsPlayMovesMessage::readMessage(), ViewPoints::reset(), Landscape::restoreLandscapeTexture(), ShotState::setup(), shotState_, ClientState::StimShot, GameState::stimulate(), and ClientState::StimWait.
| void ClientShotState::enterState | ( | const unsigned | state | ) | [virtual] |
| bool ClientShotState::acceptStateChange | ( | const unsigned | state, | |
| const unsigned | nextState, | |||
| float | frameTime | |||
| ) | [virtual] |
Implements GameStateStimulusI.
Definition at line 90 of file ClientShotState.cpp.
References ClientWaitState::instance(), ShotState::run(), ClientWaitState::sendClientReady(), and shotState_.
ClientShotState * ClientShotState::instance_ = 0 [static, protected] |
PlayShots ClientShotState::playShots_ [protected] |
ShotState ClientShotState::shotState_ [protected] |
Definition at line 52 of file ClientShotState.h.
Referenced by acceptStateChange(), and processMessage().
1.5.3