#include <ServerShotState.h>

Public Member Functions | |
| ServerShotState () | |
| virtual | ~ServerShotState () |
| virtual void | enterState (const unsigned state) |
| virtual bool | acceptStateChange (const unsigned state, const unsigned nextState, float frameTime) |
| std::set< unsigned int > & | getPlaying () |
Protected Attributes | |
| ShotState | shotState_ |
| std::set< unsigned int > | playing_ |
Definition at line 30 of file ServerShotState.h.
| ServerShotState::ServerShotState | ( | ) |
Definition at line 32 of file ServerShotState.cpp.
| ServerShotState::~ServerShotState | ( | ) | [virtual] |
Definition at line 38 of file ServerShotState.cpp.
| void ServerShotState::enterState | ( | const unsigned | state | ) | [virtual] |
Reimplemented from GameStateI.
Definition at line 42 of file ServerShotState.cpp.
References PlayShots::createMessage(), ScorchedContext::getActionController(), Tank::getDestinationId(), ScorchedContext::getOptionsTransient(), TankContainer::getPlayingTanks(), ActionController::getRandom(), ComsPlayMovesMessage::getSeed(), TankState::getState(), Tank::getState(), ScorchedContext::getTankContainer(), getValue(), ServerChannelManager::instance(), ServerShotHolder::instance(), ScorchedServer::instance(), playing_, RandomGenerator::seed(), ServerChannelManager::sendText(), ComsMessageSender::sendToAllPlayingClients(), TankContainer::setAllNotReady(), ShotState::setup(), shotState_, TankState::sInitializing, TankState::sLoading, TankState::sNormal, TankState::sPending, OptionsTransient::startNewRound(), and OptionsGame::TurnSimultaneous.
| bool ServerShotState::acceptStateChange | ( | const unsigned | state, | |
| const unsigned | nextState, | |||
| float | frameTime | |||
| ) | [virtual] |
Implements GameStateStimulusI.
Definition at line 118 of file ServerShotState.cpp.
References ShotState::run(), and shotState_.
| std::set<unsigned int>& ServerShotState::getPlaying | ( | ) | [inline] |
Definition at line 43 of file ServerShotState.h.
References playing_.
Referenced by ServerShotFinishedState::enterState().
ShotState ServerShotState::shotState_ [protected] |
Definition at line 46 of file ServerShotState.h.
Referenced by acceptStateChange(), and enterState().
std::set<unsigned int> ServerShotState::playing_ [protected] |
1.5.3