mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Added GameInstance class
- available as global GAME - integrates LOCPLINT (CPlayerInterface) - integrates CGI->mh (CMapHandler) - integrates CSH (CServerHandler)
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "../render/IImage.h"
|
||||
#include "../render/IRenderHandler.h"
|
||||
#include "../GameEngine.h"
|
||||
#include "../GameInstance.h"
|
||||
#include "../gui/CursorHandler.h"
|
||||
#include "../adventureMap/CInGameConsole.h"
|
||||
#include "../client/render/CAnimation.h"
|
||||
@@ -148,7 +149,7 @@ BattleFieldController::BattleFieldController(BattleInterface & owner):
|
||||
|
||||
void BattleFieldController::activate()
|
||||
{
|
||||
LOCPLINT->cingconsole->pos = this->pos;
|
||||
GAME->interface()->cingconsole->pos = this->pos;
|
||||
CIntObject::activate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user