diff options
author | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-05-24 09:59:48 (GMT) |
---|---|---|
committer | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-05-24 09:59:48 (GMT) |
commit | f11312d1d84e102bb29a44dedce4c60a5ae25e56 (patch) | |
tree | ae9928f07d7a3fdafcf341d91ca57c17236ad80b /MatchBloxEngine/MatchBloxEngine/C_MatchBloxEngine.h | |
parent | fbe326b9f9fc8f6d0e3034a81c2d8efcb2859ce2 (diff) | |
download | 2iv55-f11312d1d84e102bb29a44dedce4c60a5ae25e56.zip 2iv55-f11312d1d84e102bb29a44dedce4c60a5ae25e56.tar.gz 2iv55-f11312d1d84e102bb29a44dedce4c60a5ae25e56.tar.bz2 |
Diffstat (limited to 'MatchBloxEngine/MatchBloxEngine/C_MatchBloxEngine.h')
-rw-r--r-- | MatchBloxEngine/MatchBloxEngine/C_MatchBloxEngine.h | 11 |
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);
};
|