diff options
Diffstat (limited to 'MatchBloxEngine/MatchBloxEngine/C_Hand.h')
-rw-r--r-- | MatchBloxEngine/MatchBloxEngine/C_Hand.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/MatchBloxEngine/MatchBloxEngine/C_Hand.h b/MatchBloxEngine/MatchBloxEngine/C_Hand.h new file mode 100644 index 0000000..706cf5f --- /dev/null +++ b/MatchBloxEngine/MatchBloxEngine/C_Hand.h @@ -0,0 +1,31 @@ +#ifndef C_HAND_HEADER_FILE
+
+#define C_HAND_HEADER_FILE
+
+#include "C_3DObject.h"
+
+typedef enum HandAnimState
+{
+ IDLE = 0,
+ GRAB = 1,
+ RELEASE = 2,
+// COLLIDE = 3
+};
+
+unsigned int g_HandAnimDurations[3] = {0, 100, 100};
+
+class C_Hand : public C_3DObject
+{
+public:
+ C_Hand(char* f_strFileName);
+ ~C_Hand();
+
+ void Draw(unsigned int f_iElapsedTime);
+ inline void SetState(HandAnimState f_State, unsigned int f_uiElapsedTime) { m_CurrState = f_State; m_uiAnimStart = f_uiElapsedTime; }
+
+private:
+ HandAnimState m_CurrState;
+ unsigned int m_uiAnimStart;
+};
+
+#endif //C_HAND_HEADER_FILE
\ No newline at end of file |