1
0
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:
Ivan Savenko
2025-02-11 15:23:33 +00:00
parent ffd37a8fa8
commit 156de5b17e
98 changed files with 1288 additions and 1131 deletions

View File

@@ -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();
}