ServerAdminCommon Namespace Reference


Functions

bool addPlayer (ServerAdminSessions::Credential &credential, const char *playerType)
bool kickPlayer (ServerAdminSessions::Credential &credential, unsigned int playerId)
bool poorPlayer (ServerAdminSessions::Credential &credential, unsigned int playerId)
bool banPlayer (ServerAdminSessions::Credential &credential, unsigned int playerId, const char *reason)
bool slapPlayer (ServerAdminSessions::Credential &credential, unsigned int playerId, float slap)
bool flagPlayer (ServerAdminSessions::Credential &credential, unsigned int playerId, const char *reason)
bool mutePlayer (ServerAdminSessions::Credential &credential, unsigned int playerId, bool mute)
bool permMutePlayer (ServerAdminSessions::Credential &credential, unsigned int playerId, const char *reason)
bool unpermMutePlayer (ServerAdminSessions::Credential &credential, unsigned int playerId)
bool newGame (ServerAdminSessions::Credential &credential)
bool killAll (ServerAdminSessions::Credential &credential)
bool adminSay (ServerAdminSessions::Credential &credential, const char *channel, const char *text)


Function Documentation

bool ServerAdminCommon::addPlayer ( ServerAdminSessions::Credential credential,
const char *  playerType 
)

Definition at line 89 of file ServerAdminCommon.cpp.

References TankAIAdder::addTankAI(), ServerAdminSessions::Credential::hasPermission(), ScorchedServer::instance(), and ServerAdminSessions::PERMISSION_ADDPLAYER.

Referenced by ServerAdminHandler::processMessage(), and ServerWebHandler::PlayerHandler::processRequest().

bool ServerAdminCommon::adminSay ( ServerAdminSessions::Credential credential,
const char *  channel,
const char *  text 
)

Definition at line 278 of file ServerAdminCommon.cpp.

References ServerChannelManager::instance(), LANG_STRING, ServerChannelManager::sendText(), ChannelText::setAdminPlayer(), and ServerAdminSessions::Credential::username.

Referenced by ServerAdminHandler::processMessage(), and ServerWebAppletHandler::AppletActionHandler::processRequest().

bool ServerAdminCommon::banPlayer ( ServerAdminSessions::Credential credential,
unsigned int  playerId,
const char *  reason 
)

Definition at line 131 of file ServerAdminCommon.cpp.

References adminLog(), ServerBanned::Banned, Target::getPlayerId(), Target::getTargetName(), ServerAdminSessions::Credential::hasPermission(), ScorchedServer::instance(), internalBanPlayer(), ServerAdminSessions::PERMISSION_BANPLAYER, and ServerAdminSessions::Credential::username.

Referenced by ServerAdminHandler::processMessage(), and ServerWebHandler::PlayerHandler::processRequest().

bool ServerAdminCommon::flagPlayer ( ServerAdminSessions::Credential credential,
unsigned int  playerId,
const char *  reason 
)

Definition at line 171 of file ServerAdminCommon.cpp.

References adminLog(), ServerBanned::Flagged, Target::getPlayerId(), Target::getTargetName(), ScorchedServer::instance(), internalBanPlayer(), and ServerAdminSessions::Credential::username.

Referenced by ServerAdminHandler::processMessage(), and ServerWebHandler::PlayerHandler::processRequest().

bool ServerAdminCommon::kickPlayer ( ServerAdminSessions::Credential credential,
unsigned int  playerId 
)

Definition at line 96 of file ServerAdminCommon.cpp.

References adminLog(), Target::getPlayerId(), Target::getTargetName(), ServerAdminSessions::Credential::hasPermission(), ScorchedServer::instance(), ServerCommon::kickPlayer(), ServerAdminSessions::PERMISSION_KICKPLAYER, and ServerAdminSessions::Credential::username.

Referenced by ServerAdminHandler::processMessage(), and ServerWebHandler::PlayerHandler::processRequest().

bool ServerAdminCommon::killAll ( ServerAdminSessions::Credential credential  ) 

Definition at line 264 of file ServerAdminCommon.cpp.

References adminLog(), ServerAdminSessions::Credential::hasPermission(), ServerCommon::killAll(), ServerAdminSessions::PERMISSION_ALTERGAME, and ServerAdminSessions::Credential::username.

Referenced by ServerAdminHandler::processMessage(), and ServerWebHandler::GameHandler::processRequest().

bool ServerAdminCommon::mutePlayer ( ServerAdminSessions::Credential credential,
unsigned int  playerId,
bool  mute 
)

Definition at line 191 of file ServerAdminCommon.cpp.

References adminLog(), Tank::getState(), Target::getTargetName(), ScorchedServer::instance(), TankState::setMuted(), and ServerAdminSessions::Credential::username.

Referenced by ServerAdminHandler::processMessage(), and ServerWebHandler::PlayerHandler::processRequest().

bool ServerAdminCommon::newGame ( ServerAdminSessions::Credential credential  ) 

Definition at line 249 of file ServerAdminCommon.cpp.

References adminLog(), ScorchedContext::getOptionsTransient(), ServerAdminSessions::Credential::hasPermission(), ScorchedServer::instance(), ServerCommon::killAll(), ServerAdminSessions::PERMISSION_ALTERGAME, OptionsTransient::startNewGame(), and ServerAdminSessions::Credential::username.

Referenced by ServerAdminHandler::processMessage(), and ServerWebHandler::GameHandler::processRequest().

bool ServerAdminCommon::permMutePlayer ( ServerAdminSessions::Credential credential,
unsigned int  playerId,
const char *  reason 
)

Definition at line 207 of file ServerAdminCommon.cpp.

References adminLog(), Target::getPlayerId(), Tank::getState(), Target::getTargetName(), ScorchedServer::instance(), internalBanPlayer(), ServerBanned::Muted, TankState::setMuted(), and ServerAdminSessions::Credential::username.

Referenced by ServerAdminHandler::processMessage(), and ServerWebHandler::PlayerHandler::processRequest().

bool ServerAdminCommon::poorPlayer ( ServerAdminSessions::Credential credential,
unsigned int  playerId 
)

Definition at line 115 of file ServerAdminCommon.cpp.

References adminLog(), Tank::getScore(), Target::getTargetName(), ScorchedServer::instance(), TankScore::setMoney(), and ServerAdminSessions::Credential::username.

Referenced by ServerAdminHandler::processMessage(), and ServerWebHandler::PlayerHandler::processRequest().

bool ServerAdminCommon::slapPlayer ( ServerAdminSessions::Credential credential,
unsigned int  playerId,
float  slap 
)

Definition at line 153 of file ServerAdminCommon.cpp.

References adminLog(), TargetLife::getLife(), Target::getLife(), Target::getTargetName(), ScorchedServer::instance(), TargetLife::setLife(), and ServerAdminSessions::Credential::username.

Referenced by ServerAdminHandler::processMessage(), and ServerWebHandler::PlayerHandler::processRequest().

bool ServerAdminCommon::unpermMutePlayer ( ServerAdminSessions::Credential credential,
unsigned int  playerId 
)

Definition at line 228 of file ServerAdminCommon.cpp.

References adminLog(), Target::getPlayerId(), Tank::getState(), Target::getTargetName(), ScorchedServer::instance(), internalBanPlayer(), ServerBanned::NotBanned, TankState::setMuted(), and ServerAdminSessions::Credential::username.

Referenced by ServerAdminHandler::processMessage(), and ServerWebHandler::PlayerHandler::processRequest().


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