#include <commander_client.h>
Inherits Commander.
Inheritance diagram for CommanderClient:


Public Member Functions | |
| CommanderClient () | |
| virtual | ~CommanderClient () |
Protected Member Functions | |
| virtual void | processCommand (const std::string &command, int playerID) |
| Process one command. | |
| void | command_to_server (const std::string &command) |
| Send command to the server. | |
| void | command_quit (std::stringstream &args) |
| void | command_help (std::stringstream &args) |
| void | command_getvar (std::stringstream &args) |
| void | command_setvar (std::stringstream &args) |
| void | command_players (std::stringstream &args) |
Accepts users commands from console and send them to the network or process them directly.
Definition at line 17 of file commander_client.h.
|
|
Definition at line 20 of file commander_client.h. |
|
|
Definition at line 21 of file commander_client.h. |
|
|
Definition at line 67 of file commander_client.cpp. References _, Console::addConsoleMessage(), Settings::exist(), g_settings, getAppClient(), ApplicationClient::getConsole(), and Settings::getString(). Here is the call graph for this function: ![]() |
|
|
Definition at line 59 of file commander_client.cpp. References _, Console::addConsoleMessage(), getAppClient(), and ApplicationClient::getConsole(). Here is the call graph for this function: ![]() |
|
|
Definition at line 95 of file commander_client.cpp. References _, Console::addConsoleMessage(), getAppClient(), ApplicationClient::getConsole(), ApplicationClient::getGame(), Player::getID(), Game::getPlayer(), and Game::getValidPlayersID(). Here is the call graph for this function: ![]() |
|
|
Definition at line 54 of file commander_client.cpp. References Game::endFun(), getAppClient(), and ApplicationClient::getGame(). Here is the call graph for this function: ![]() |
|
|
Definition at line 81 of file commander_client.cpp. References _, Console::addConsoleMessage(), Settings::exist(), g_settings, getAppClient(), ApplicationClient::getConsole(), and Settings::set(). Here is the call graph for this function: ![]() |
|
|
Send command to the server. If first character is / the command go to server. Definition at line 49 of file commander_client.cpp. Referenced by processCommand(). |
|
||||||||||||
|
Process one command. This function will be called in main task.
Implements Commander. Definition at line 19 of file commander_client.cpp. References command_to_server(). Here is the call graph for this function: ![]() |
1.4.5