Functions | |
| void | startFileLogger () |
| void | kickDestination (unsigned int destinationId, const std::string &message) |
| void | kickPlayer (unsigned int playerId) |
| void | killAll () |
| void | startNewGame () |
| bool & | getExitEmpty () |
| void | serverLog (const std::string &text) |
| bool & ServerCommon::getExitEmpty | ( | ) |
Definition at line 160 of file ServerCommon.cpp.
Referenced by ServerTooFewPlayersStimulus::checkExit(), and ServerWebHandler::ServerHandler::processRequest().
| void ServerCommon::kickDestination | ( | unsigned int | destinationId, | |
| const std::string & | message | |||
| ) |
Definition at line 63 of file ServerCommon.cpp.
References S3D::formatStringBuffer(), Tank::getDestinationId(), ScorchedContext::getNetInterface(), Target::getPlayerId(), TankContainer::getPlayingTanks(), ScorchedContext::getTankContainer(), ScorchedServer::instance(), kickPlayer(), Logger::log(), NetInterface::processMessages(), and ComsMessageSender::sendToSingleClient().
Referenced by ServerReadyState::acceptStateChange(), ServerPlayingState::acceptStateChange(), ServerKeepAliveHandler::checkKeepAlives(), ServerConnectHandler::checkStandardParams(), ServerMessageHandler::clientError(), ServerHaveModFilesHandler::processMessage(), ServerConnectHandler::processMessage(), ServerConnectAuthHandler::processMessage(), and ServerAdminHandler::processMessage().
| void ServerCommon::kickPlayer | ( | unsigned int | playerId | ) |
Definition at line 100 of file ServerCommon.cpp.
References S3D::formatStringBuffer(), Target::getCStrName(), Tank::getDestinationId(), ScorchedContext::getNetInterface(), Target::getPlayerId(), Target::getTargetName(), ServerMessageHandler::instance(), ServerChannelManager::instance(), ScorchedServer::instance(), Logger::log(), NetInterface::processMessages(), and ServerChannelManager::sendText().
Referenced by internalBanPlayer(), kickDestination(), and ServerAdminCommon::kickPlayer().
| void ServerCommon::killAll | ( | ) |
Definition at line 132 of file ServerCommon.cpp.
References TankContainer::getAllTanks(), TankState::getState(), Tank::getState(), ScorchedContext::getTankContainer(), ScorchedServer::instance(), Logger::log(), TankState::sDead, TankState::setLives(), TankState::setState(), and TankState::sNormal.
Referenced by QuitDialog::buttonDown(), TutorialConditionTankDead::checkCondition(), ServerAdminCommon::killAll(), ServerAdminCommon::newGame(), and startNewGame().
| void ServerCommon::serverLog | ( | const std::string & | text | ) |
Definition at line 166 of file ServerCommon.cpp.
References Logger::log().
Referenced by ServerChannelManager::actualSend(), ServerNewGameState::addTanksToGame(), ServerConnectHandler::checkStandardParams(), ServerShotFinishedState::enterState(), ServerNewGameState::enterState(), ServerAdminSessions::getAllCredentials(), ServerHaveModFilesHandler::processMessage(), ServerConnectAuthHandler::processMessage(), and ServerAdminHandler::processMessage().
| void ServerCommon::startFileLogger | ( | ) |
Definition at line 41 of file ServerCommon.cpp.
References Logger::addLogger(), ScorchedServer::instance(), Logger::log(), snprintf, and LangStringUtil::strcmp().
Referenced by consoleServer().
| void ServerCommon::startNewGame | ( | ) |
Definition at line 152 of file ServerCommon.cpp.
References ScorchedContext::getOptionsTransient(), ScorchedServer::instance(), killAll(), Logger::log(), and OptionsTransient::startNewGame().
1.5.3