Mercurial > mm7
diff Engine/Graphics/Viewport.cpp @ 2541:a902abdfc7f2
1. Renamed class Game to class Engine.
2. Separated game logic as state of FSM from game logic as engine.
3. Found out that many UI screen initializers were optimized away, intially
they all returned newly created window as separate object like it is done
in CharacterUI_Initialize.
author | a.parshin |
---|---|
date | Sun, 10 May 2015 01:29:11 +0200 |
parents | a77c34acdbc9 |
children | 30eb6dcac768 |
line wrap: on
line diff
--- a/Engine/Graphics/Viewport.cpp Sat May 09 12:55:58 2015 +0200 +++ b/Engine/Graphics/Viewport.cpp Sun May 10 01:29:11 2015 +0200 @@ -3,26 +3,25 @@ #include <crtdbg.h> #define _CRT_SECURE_NO_WARNINGS -#include "Viewport.h" +#include "Engine/Engine.h" -#include "../Party.h" -#include "../OurMath.h" -#include "../Objects/Actor.h" +#include "Viewport.h" +#include "Engine/Party.h" +#include "Engine/OurMath.h" +#include "Engine/Objects/Actor.h" #include "Outdoor.h" -#include "../Events.h" +#include "Engine/Events.h" #include "IO/Mouse.h" -#include "../Objects/SpriteObject.h" -#include "../Objects/ObjectList.h" +#include "Engine/Objects/SpriteObject.h" +#include "Engine/Objects/ObjectList.h" #include "DecorationList.h" -#include "../texts.h" -#include "../Game.h" +#include "Engine/texts.h" #include "Vis.h" -#include "../LOD.h" +#include "Engine/LOD.h" #include "GUI/GUIWindow.h" -#include "../TurnEngine/TurnEngine.h" -#include "../stru123.h" -#include "../MM7.h" +#include "Engine/TurnEngine/TurnEngine.h" +#include "Engine/stru123.h" #include "Level/Decoration.h" @@ -278,7 +277,7 @@ v1 = pMouse->GetCursorPos(&a2); //if ( pRenderer->pRenderD3D ) - v0 = pGame->pVisInstance->get_picked_object_zbuf_val(); + v0 = pEngine->pVisInstance->get_picked_object_zbuf_val(); //else // v0 = pRenderer->pActiveZBuffer[v1->x + pSRZBufferLineOffsets[v1->y]];