mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Renamed CGuiHandler to GameEngine
- class CGuiHandler is now called GameEngine to better describe its functionality - renamed global GH to more clear ENGINE - GH/ENGINE is now unique_ptr to make construction / deconstruction order more clear and to allow interface / implementation split - CGuiHandler.cpp/h is now called GameEngine.cpp/h and located in root directory of client dir
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#include "CResDataBar.h"
|
||||
#include "AdventureState.h"
|
||||
|
||||
#include "../gui/CGuiHandler.h"
|
||||
#include "../GameEngine.h"
|
||||
#include "../gui/Shortcut.h"
|
||||
#include "../mapView/MapView.h"
|
||||
#include "../render/IImage.h"
|
||||
@@ -37,8 +37,8 @@ AdventureMapWidget::AdventureMapWidget( std::shared_ptr<AdventureMapShortcuts> s
|
||||
, mapLevel(0)
|
||||
{
|
||||
pos.x = pos.y = 0;
|
||||
pos.w = GH.screenDimensions().x;
|
||||
pos.h = GH.screenDimensions().y;
|
||||
pos.w = ENGINE->screenDimensions().x;
|
||||
pos.h = ENGINE->screenDimensions().y;
|
||||
|
||||
REGISTER_BUILDER("adventureInfobar", &AdventureMapWidget::buildInfobox );
|
||||
REGISTER_BUILDER("adventureMapImage", &AdventureMapWidget::buildMapImage );
|
||||
|
||||
Reference in New Issue
Block a user