diff options
author | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-04-22 13:32:09 (GMT) |
---|---|---|
committer | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-04-22 13:32:09 (GMT) |
commit | 2b53b94bdc1815fbc73f7ef0e5c2400f42a55508 (patch) | |
tree | d88af88abd415094b636a968d1640bf205bbb1c7 /MatchBloxEngine/MatchBloxEngine/C_Block.h | |
parent | 92f2ef5fa1b80c6491ce46eab0ab0908eb9be9cc (diff) | |
download | 2iv55-2b53b94bdc1815fbc73f7ef0e5c2400f42a55508.zip 2iv55-2b53b94bdc1815fbc73f7ef0e5c2400f42a55508.tar.gz 2iv55-2b53b94bdc1815fbc73f7ef0e5c2400f42a55508.tar.bz2 |
Initial check in MatchBloxEngine
Diffstat (limited to 'MatchBloxEngine/MatchBloxEngine/C_Block.h')
-rw-r--r-- | MatchBloxEngine/MatchBloxEngine/C_Block.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/MatchBloxEngine/MatchBloxEngine/C_Block.h b/MatchBloxEngine/MatchBloxEngine/C_Block.h new file mode 100644 index 0000000..e76a676 --- /dev/null +++ b/MatchBloxEngine/MatchBloxEngine/C_Block.h @@ -0,0 +1,31 @@ +#ifndef C_BLOCK_HEADER_FILE
+
+#define C_BLOCK_HEADER_FILE
+
+#include "C_3DObject.h"
+
+typedef enum BlockAnimState
+{
+ IDLE = 0,
+ FADE_IN = 1,
+ FADE_OUT = 2,
+ COLLIDE = 3
+};
+
+unsigned int g_BlockAnimDurations[4] = {0, 500, 500, 500};
+
+class C_Block : public C_3DObject
+{
+public:
+ C_Block(char* f_strFileName);
+ ~C_Block();
+
+ void Draw(unsigned int f_iElapsedTime);
+ inline void SetState(BlockAnimState f_State, unsigned int f_uiElapsedTime) { m_CurrState = f_State; m_uiAnimStart = f_uiElapsedTime; }
+
+private:
+ BlockAnimState m_CurrState;
+ unsigned int m_uiAnimStart;
+};
+
+#endif //C_BLOCK_HEADER_FILE
\ No newline at end of file |