#include <ServerTooFewPlayersStimulus.h>

Public Member Functions | |
| virtual bool | acceptStateChange (const unsigned state, const unsigned nextState, float frameTime) |
Static Public Member Functions | |
| static ServerTooFewPlayersStimulus * | instance () |
Protected Member Functions | |
| void | checkExit () |
Static Protected Attributes | |
| static ServerTooFewPlayersStimulus * | instance_ = 0 |
Private Member Functions | |
| ServerTooFewPlayersStimulus () | |
| virtual | ~ServerTooFewPlayersStimulus () |
| ServerTooFewPlayersStimulus (const ServerTooFewPlayersStimulus &) | |
| const ServerTooFewPlayersStimulus & | operator= (const ServerTooFewPlayersStimulus &) |
Definition at line 27 of file ServerTooFewPlayersStimulus.h.
| ServerTooFewPlayersStimulus::ServerTooFewPlayersStimulus | ( | ) | [private] |
Definition at line 41 of file ServerTooFewPlayersStimulus.cpp.
| ServerTooFewPlayersStimulus::~ServerTooFewPlayersStimulus | ( | ) | [private, virtual] |
Definition at line 46 of file ServerTooFewPlayersStimulus.cpp.
| ServerTooFewPlayersStimulus::ServerTooFewPlayersStimulus | ( | const ServerTooFewPlayersStimulus & | ) | [private] |
| ServerTooFewPlayersStimulus * ServerTooFewPlayersStimulus::instance | ( | ) | [static] |
Definition at line 32 of file ServerTooFewPlayersStimulus.cpp.
References instance_.
Referenced by ServerStateTooFewPlayersState::acceptStateChange(), ServerShotFinishedState::acceptStateChange(), ServerShotFinishedState::scoreWinners(), and ServerState::setupStates().
| bool ServerTooFewPlayersStimulus::acceptStateChange | ( | const unsigned | state, | |
| const unsigned | nextState, | |||
| float | frameTime | |||
| ) | [virtual] |
Implements GameStateStimulusI.
Definition at line 51 of file ServerTooFewPlayersStimulus.cpp.
References ServerNewGameState::checkBots(), checkExit(), ServerNewGameState::checkTeams(), ScorchedContext::getOptionsGame(), TankContainer::getPlayingTanks(), TankState::getSpectator(), Tank::getState(), ScorchedContext::getTankContainer(), Tank::getTeam(), ScorchedServer::instance(), OptionsGame::TeamBallanceAuto, OptionsGame::TeamBallanceAutoByBots, and OptionsGame::TeamBallanceAutoByScore.
| void ServerTooFewPlayersStimulus::checkExit | ( | ) | [protected] |
Definition at line 117 of file ServerTooFewPlayersStimulus.cpp.
References ServerCommon::getExitEmpty(), and Logger::log().
Referenced by acceptStateChange().
| const ServerTooFewPlayersStimulus& ServerTooFewPlayersStimulus::operator= | ( | const ServerTooFewPlayersStimulus & | ) | [private] |
ServerTooFewPlayersStimulus * ServerTooFewPlayersStimulus::instance_ = 0 [static, protected] |
1.5.3