CommanderServer Class Reference

Processor of server commands. More...

#include <commander_server.h>

Inherits Commander.

Inheritance diagram for CommanderServer:

Inheritance graph
[legend]
Collaboration diagram for CommanderServer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CommanderServer ()
virtual ~CommanderServer ()

Protected Member Functions

virtual void processCommand (const std::string &command, int playerID)
 Process one command.
void command_chat (std::stringstream &args, int playerID)
void command_quit (std::stringstream &args, int playerID)

Detailed Description

Processor of server commands.

Accepts users commands from console and from network.

Definition at line 18 of file commander_server.h.


Constructor & Destructor Documentation

CommanderServer::CommanderServer  )  [inline]
 

Definition at line 21 of file commander_server.h.

virtual CommanderServer::~CommanderServer  )  [inline, virtual]
 

Definition at line 22 of file commander_server.h.


Member Function Documentation

void CommanderServer::command_chat std::stringstream &  args,
int  playerID
[protected]
 

Definition at line 36 of file commander_server.cpp.

References LOGI.

void CommanderServer::command_quit std::stringstream &  args,
int  playerID
[protected]
 

Definition at line 44 of file commander_server.cpp.

References Game::endFun(), getAppServer(), ApplicationServer::getGame(), and LOGI.

Here is the call graph for this function:

virtual void CommanderServer::processCommand const std::string &  command,
int  playerID
[protected, virtual]
 

Process one command.

This function will be called in main task. The function test if the player has enough privileges!

Parameters:
command string with command
playerID ID of player who created the command

Implements Commander.


The documentation for this class was generated from the following files:
Generated on Wed Apr 12 14:13:14 2006 for bjs by  doxygen 1.4.5