summaryrefslogtreecommitdiffstats
path: root/MatchBloxEngine/MatchBloxEngine/C_MatchBloxEngine.h
diff options
context:
space:
mode:
Diffstat (limited to 'MatchBloxEngine/MatchBloxEngine/C_MatchBloxEngine.h')
-rw-r--r--MatchBloxEngine/MatchBloxEngine/C_MatchBloxEngine.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/MatchBloxEngine/MatchBloxEngine/C_MatchBloxEngine.h b/MatchBloxEngine/MatchBloxEngine/C_MatchBloxEngine.h
index 5ef6c5d..48a17b7 100644
--- a/MatchBloxEngine/MatchBloxEngine/C_MatchBloxEngine.h
+++ b/MatchBloxEngine/MatchBloxEngine/C_MatchBloxEngine.h
@@ -3,6 +3,7 @@
#define C_MATCHBLOXENGINE_HEADER_FILE
#include "MessageQueue.h"
+#include "typedefs.h"
class C_3DObject;
class C_Block;
@@ -126,13 +127,13 @@ struct GameSession
m_uiSessionStart += l_uiPauseTime;
m_uiTurnStart += l_uiPauseTime;
}
-}
+};
class C_MatchBloxEngine
{
public:
C_MatchBloxEngine(const char *f_strModelPath,
- const char *f_strLogFile
+ const char *f_strLogFile,
GameSettings f_GameSettings);
~C_MatchBloxEngine();
@@ -160,6 +161,8 @@ private:
EngineState m_State, m_SavedState;
GameSession *m_pCurrentSession;
GameSettings m_GameSettings;
+ BoxSize m_CurrentBox;
+ BlockType m_CurrentBlock;
BoundingBox_t m_WorldBox; //an invisible box that limits the movement of the
//player
@@ -175,8 +178,8 @@ private:
//event/input handlers
void CursorMove(Vect3D_t &f_NewCursorPos);
- GameResult_t CursorMove_PutBlock(Vect3D_t &f_CursPos, BoundingBox_t &f_CusrBBox);
- GameResult_t CursorMove_GrabBlock(Vect3D_t &f_CursPos, BoundingBox_t &f_CusrBBox);
+ bool CursorMove_PutBlock(Vect3D_t &f_CursPos, BoundingBox_t &f_CusrBBox);
+ bool CursorMove_GrabBlock(Vect3D_t &f_CursPos, BoundingBox_t &f_CusrBBox);
};