#include <game_client.h>
Inherits Game.
Inheritance diagram for GameClient:


Public Member Functions | |
| GameClient (void) | |
| virtual | ~GameClient (void) |
| GameGUI & | getGUI () |
| virtual void | run () |
| Camera * | getCamera () |
| virtual void | init () |
| Init data structures for game. | |
| virtual void | clean () |
| Clean data structures for game. | |
| Player * | getClientPlayer () |
| Return player controled by this client. | |
Private Member Functions | |
| GameClient (GameClient ©) | |
| Program killer - trap. | |
Private Attributes | |
| GameGUI | mGUI |
| Camera * | mActualCamera |
| actual view, it can be one of tracers | |
| Tracer | mTankTracer |
Definition at line 12 of file game_client.h.
|
|
Definition at line 18 of file game_client.cpp. References TIN. |
|
|
Definition at line 24 of file game_client.cpp. References TIN. |
|
|
Program killer - trap. From security reasons we don't allow anyone to create copy of GameClient since it is probably a mistake. Anyway calling this constructor will kill program.
Definition at line 29 of file game_client.cpp. References DIE(), LOGE, and TIN. Here is the call graph for this function: ![]() |
|
|
Clean data structures for game. It mean for examlpe unloading textures and models... This function shouls clean players vector. So don't forget to call it in derived classes. Reimplemented from Game. Definition at line 108 of file game_client.cpp. References Game::clean(), GameGUI::clean(), and mGUI. Referenced by ApplicationClient::run(). Here is the call graph for this function: ![]() |
|
|
Definition at line 120 of file game_client.cpp. References getAppClient(), ApplicationClient::getGFX(), GFX::getHeight(), GFX::getWidth(), mActualCamera, and Camera::setPerspective(). Referenced by LayerGame::initRefs(). Here is the call graph for this function: ![]() |
|
|
Return player controled by this client.
Definition at line 115 of file game_client.cpp. |
|
|
Definition at line 46 of file game_client.cpp. References mGUI. Referenced by LayerGUI::render(). |
|
|
Init data structures for game. This is for example loading some textures, models, registering to input manager,... Implements Game. Definition at line 103 of file game_client.cpp. References GameGUI::init(), and mGUI. Referenced by ApplicationClient::run(). Here is the call graph for this function: ![]() |
|
|
Start the game. Implements Game. Definition at line 52 of file game_client.cpp. References TaskManager::add(), InputManager::checkSDLEvents(), TaskManager::cleanTasks(), getAppClient(), ApplicationClient::getCommander(), ApplicationClient::getInputManager(), World::getLandscape(), Game::getTaskManager(), Landscape::getTerrain(), Game::getWorld(), Terrain::initClient(), TaskManager::initTasks(), Game::mEndFun, Game::mTaskManager, Commander::processAllCommands(), InputManager::processKeys(), Game::recreateWorld(), TaskManager::remove(), Thread::reshedule(), TIN, TPOINTS, and TaskManager::update(). Referenced by ApplicationClient::run(). Here is the call graph for this function: ![]() |
|
|
actual view, it can be one of tracers
Definition at line 62 of file game_client.h. Referenced by getCamera(). |
|
|
Definition at line 60 of file game_client.h. |
|
|
Definition at line 66 of file game_client.h. |
1.4.5