ServerAdminCommon.cpp File Reference

#include <server/ServerAdminCommon.h>
#include <server/ServerCommon.h>
#include <server/ScorchedServer.h>
#include <server/ScorchedServerUtil.h>
#include <server/ServerChannelManager.h>
#include <tank/TankContainer.h>
#include <tank/TankState.h>
#include <tank/TankScore.h>
#include <tankai/TankAIAdder.h>
#include <target/TargetLife.h>
#include <common/OptionsScorched.h>
#include <common/OptionsTransient.h>
#include <common/FileLogger.h>

Go to the source code of this file.

Functions

static void adminLog (const ChannelText &message)
static void internalBanPlayer (ServerAdminSessions::Credential &credential, unsigned int playerId, ServerBanned::BannedType type, const char *reason)
bool ServerAdminCommon::addPlayer (ServerAdminSessions::Credential &credential, const char *playerType)
bool ServerAdminCommon::kickPlayer (ServerAdminSessions::Credential &credential, unsigned int playerId)
bool ServerAdminCommon::poorPlayer (ServerAdminSessions::Credential &credential, unsigned int playerId)
bool ServerAdminCommon::banPlayer (ServerAdminSessions::Credential &credential, unsigned int playerId, const char *reason)
bool ServerAdminCommon::slapPlayer (ServerAdminSessions::Credential &credential, unsigned int playerId, float slap)
bool ServerAdminCommon::flagPlayer (ServerAdminSessions::Credential &credential, unsigned int playerId, const char *reason)
bool ServerAdminCommon::mutePlayer (ServerAdminSessions::Credential &credential, unsigned int playerId, bool mute)
bool ServerAdminCommon::permMutePlayer (ServerAdminSessions::Credential &credential, unsigned int playerId, const char *reason)
bool ServerAdminCommon::unpermMutePlayer (ServerAdminSessions::Credential &credential, unsigned int playerId)
bool ServerAdminCommon::newGame (ServerAdminSessions::Credential &credential)
bool ServerAdminCommon::killAll (ServerAdminSessions::Credential &credential)
bool ServerAdminCommon::adminSay (ServerAdminSessions::Credential &credential, const char *channel, const char *text)

Variables

static FileLoggerserverAdminFileLogger = 0


Function Documentation

static void adminLog ( const ChannelText message  )  [static]

Definition at line 37 of file ServerAdminCommon.cpp.

References LangStringUtil::convertFromLang(), ServerChannelManager::instance(), ScorchedServer::instance(), FileLogger::logMessage(), ServerChannelManager::sendText(), LoggerInfo::setTime(), and snprintf.

Referenced by ServerAdminCommon::banPlayer(), ServerAdminCommon::flagPlayer(), ServerAdminCommon::kickPlayer(), ServerAdminCommon::killAll(), ServerAdminCommon::mutePlayer(), ServerAdminCommon::newGame(), ServerAdminCommon::permMutePlayer(), ServerAdminCommon::poorPlayer(), ServerAdminCommon::slapPlayer(), and ServerAdminCommon::unpermMutePlayer().

static void internalBanPlayer ( ServerAdminSessions::Credential credential,
unsigned int  playerId,
ServerBanned::BannedType  type,
const char *  reason 
) [static]

Definition at line 55 of file ServerAdminCommon.cpp.

References ServerBanned::Banned, ScorchedServerUtil::bannedPlayers, ServerAuthHandler::banUser(), ScorchedServerUtil::getAuthHandler(), Tank::getDestinationId(), Tank::getIpAddress(), Tank::getSUI(), Target::getTargetName(), Tank::getUniqueId(), ScorchedServerUtil::instance(), ScorchedServer::instance(), ServerCommon::kickPlayer(), and ServerAdminSessions::Credential::username.

Referenced by ServerAdminCommon::banPlayer(), ServerAdminCommon::flagPlayer(), ServerAdminCommon::permMutePlayer(), and ServerAdminCommon::unpermMutePlayer().


Variable Documentation

FileLogger* serverAdminFileLogger = 0 [static]

Definition at line 35 of file ServerAdminCommon.cpp.


Generated on Mon Feb 16 15:14:59 2009 for Scorched3D by  doxygen 1.5.3