ApplicationClient Class Reference

#include <application_client.h>

Inherits Application.

Inheritance diagram for ApplicationClient:

Inheritance graph
[legend]
Collaboration diagram for ApplicationClient:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ApplicationClient ()
 ~ApplicationClient ()
void init ()
 Inicialization of application.
void run ()
void clean ()
GFXgetGFX ()
SFXgetSFX ()
GameClientgetGame ()
virtual GamegetGameCommon ()
 Get pointer to Game.
CommandergetCommander ()
 Provide access to the commander.
InputManagergetInputManager ()
 Provides access to InputManager.
ConsolegetConsole ()
 Provides access to Console.

Protected Attributes

InputManager mInputManager
GFX mGFX
SFX mSFX
GameClient mGameClient
Console mConsole
CommanderClient mCommanderClient

Private Member Functions

 ApplicationClient (ApplicationClient &copy)
 Program killer - trap.

Detailed Description

Definition at line 18 of file application_client.h.


Constructor & Destructor Documentation

ApplicationClient::ApplicationClient  ) 
 

Definition at line 20 of file application_client.cpp.

References TIN.

ApplicationClient::~ApplicationClient  ) 
 

Definition at line 26 of file application_client.cpp.

References TIN.

ApplicationClient::ApplicationClient ApplicationClient 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 31 of file application_client.cpp.

References DIE(), LOGE, and TIN.

Here is the call graph for this function:


Member Function Documentation

void ApplicationClient::clean  )  [virtual]
 

Implements Application.

Definition at line 99 of file application_client.cpp.

References GFX::clean(), SFX::clean(), Console::clean(), mConsole, mGFX, mSFX, Application::saveUserConfigFile(), and TIN.

Here is the call graph for this function:

Commander & ApplicationClient::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 155 of file application_client.cpp.

References mCommanderClient.

Referenced by Console::processCommand(), and GameClient::run().

Console & ApplicationClient::getConsole  ) 
 

Provides access to Console.

Returns:
mConsole

Definition at line 147 of file application_client.cpp.

References mConsole, and TIN.

Referenced by CommanderClient::command_getvar(), CommanderClient::command_help(), CommanderClient::command_players(), CommanderClient::command_setvar(), and LayerGUI::render().

GameClient & ApplicationClient::getGame  ) 
 

Definition at line 130 of file application_client.cpp.

References mGameClient.

Referenced by InputManager::checkSDLEvents(), CommanderClient::command_players(), CommanderClient::command_quit(), TaskRender::init(), LayerGame::initRefs(), and LayerGUI::render().

Game * ApplicationClient::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 135 of file application_client.cpp.

References mGameClient.

GFX & ApplicationClient::getGFX  ) 
 

Definition at line 120 of file application_client.cpp.

References mGFX.

Referenced by Console::addConsoleMessage(), GameClient::getCamera(), TerrainGeoMipMap::TerrainBlock::getViewHRes(), TaskRender::init(), Messages::render(), Console::render(), Layer::setView(), TextureManager::TextureManager(), TaskRender::updateBegin(), and TaskRender::updateEnd().

InputManager & ApplicationClient::getInputManager  ) 
 

Provides access to InputManager.

Returns:
mInputManager

Definition at line 140 of file application_client.cpp.

References mInputManager, and TIN.

Referenced by Messages::clean(), Console::clean(), Messages::init(), Console::init(), Messages::keyDown(), Console::keyDown(), and GameClient::run().

SFX & ApplicationClient::getSFX  ) 
 

Definition at line 125 of file application_client.cpp.

References mSFX.

void ApplicationClient::init  )  [virtual]
 

Inicialization of application.

Implements Application.

Definition at line 39 of file application_client.cpp.

References TaskManager::add(), DIE(), g_log, g_settings, g_translator, Settings::getInt(), Singleton< T >::getRef(), Settings::getString(), Console::init(), SFX::init(), GFX::init(), Log::init(), Settings::isTrue(), Translator::loadFile(), Application::loadUserConfigFile(), locateFile(), LOGE, LOGI, mConsole, mGFX, mSFX, Application::mTaskManager, Log::set_loglevel(), and TIN.

Here is the call graph for this function:

void ApplicationClient::run  )  [virtual]
 

Implements Application.

Definition at line 84 of file application_client.cpp.

References GameClient::clean(), GameClient::init(), Game::loadMap(), mGameClient, GameClient::run(), and TIN.

Here is the call graph for this function:


Member Data Documentation

CommanderClient ApplicationClient::mCommanderClient [protected]
 

Definition at line 78 of file application_client.h.

Referenced by getCommander().

Console ApplicationClient::mConsole [protected]
 

Definition at line 76 of file application_client.h.

Referenced by clean(), getConsole(), and init().

GameClient ApplicationClient::mGameClient [protected]
 

Definition at line 74 of file application_client.h.

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

GFX ApplicationClient::mGFX [protected]
 

Definition at line 71 of file application_client.h.

Referenced by clean(), getGFX(), and init().

InputManager ApplicationClient::mInputManager [protected]
 

Definition at line 69 of file application_client.h.

Referenced by getInputManager().

SFX ApplicationClient::mSFX [protected]
 

Definition at line 72 of file application_client.h.

Referenced by clean(), getSFX(), and init().


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