ApplicationServer Class Reference

#include <application_server.h>

Inherits Application.

Inheritance diagram for ApplicationServer:

Inheritance graph
[legend]
Collaboration diagram for ApplicationServer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ApplicationServer ()
 ~ApplicationServer ()
void init ()
 Inicialization of application.
void run ()
void clean ()
GameServergetGame ()
virtual GamegetGameCommon ()
 Get pointer to Game.
CommandergetCommander ()
 Provide access to the commander.

Private Member Functions

 ApplicationServer (ApplicationServer &copy)
 Program killer - trap.

Private Attributes

GameServer mGameServer
CommanderServer mCommanderServer

Detailed Description

Definition at line 13 of file application_server.h.


Constructor & Destructor Documentation

ApplicationServer::ApplicationServer  ) 
 

Definition at line 7 of file application_server.cpp.

References TIN.

ApplicationServer::~ApplicationServer  ) 
 

Definition at line 12 of file application_server.cpp.

ApplicationServer::ApplicationServer ApplicationServer copy  )  [private]
 

Program killer - trap.

From security reasons we don't allow anyone to create copy of Application since it is probably a mistake. Anyway calling this constructor will kill program.

Parameters:
copy not used

Definition at line 17 of file application_server.cpp.

References DIE(), LOGE, and TIN.

Here is the call graph for this function:


Member Function Documentation

void ApplicationServer::clean  )  [virtual]
 

Implements Application.

Definition at line 57 of file application_server.cpp.

References Application::saveUserConfigFile(), and TIN.

Here is the call graph for this function:

Commander & ApplicationServer::getCommander  )  [virtual]
 

Provide access to the commander.

This may be used to push commands to commander anywhere from the code.

Implements Application.

Definition at line 77 of file application_server.cpp.

References mCommanderServer.

Referenced by init(), and ConsoleText::run().

GameServer & ApplicationServer::getGame  ) 
 

Definition at line 65 of file application_server.cpp.

References mGameServer.

Referenced by TaskSimulationServer::checkTerrainHeights(), CommanderServer::command_quit(), TaskSimulationServer::setCollModelTransformations(), TaskSimulationServer::tick(), TaskSimulationServer::update(), and TaskSimulationServer::updateHistory().

Game * ApplicationServer::getGameCommon  )  [virtual]
 

Get pointer to Game.

If you are in client or server code use getGame() which return server or client version of Game so you have acces to more features :-) Please never retype this GameClient or GameServer.

Returns:
pointer common game

Implements Application.

Definition at line 70 of file application_server.cpp.

References mGameServer.

void ApplicationServer::init  )  [virtual]
 

Inicialization of application.

Implements Application.

Definition at line 25 of file application_server.cpp.

References TaskManager::add(), g_log, g_settings, getCommander(), Settings::getInt(), Settings::getString(), Log::init(), Settings::isTrue(), Application::loadUserConfigFile(), LOGI, Application::mTaskManager, Log::set_loglevel(), and TIN.

Here is the call graph for this function:

void ApplicationServer::run  )  [virtual]
 

Implements Application.

Definition at line 42 of file application_server.cpp.

References GameServer::init(), LOGI, mGameServer, GameServer::run(), and TIN.

Here is the call graph for this function:


Member Data Documentation

CommanderServer ApplicationServer::mCommanderServer [private]
 

Definition at line 44 of file application_server.h.

Referenced by getCommander().

GameServer ApplicationServer::mGameServer [private]
 

Definition at line 43 of file application_server.h.

Referenced by getGame(), getGameCommon(), and run().


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