summaryrefslogtreecommitdiffstats
path: root/matchblox/engine/C_MatchBloxEngine.h
diff options
context:
space:
mode:
authorDennis Peeten <dpeeten@onsneteindhoven.nl>2008-05-24 09:59:48 (GMT)
committerDennis Peeten <dpeeten@onsneteindhoven.nl>2008-05-24 09:59:48 (GMT)
commitf11312d1d84e102bb29a44dedce4c60a5ae25e56 (patch)
treeae9928f07d7a3fdafcf341d91ca57c17236ad80b /matchblox/engine/C_MatchBloxEngine.h
parentfbe326b9f9fc8f6d0e3034a81c2d8efcb2859ce2 (diff)
download2iv55-f11312d1d84e102bb29a44dedce4c60a5ae25e56.zip
2iv55-f11312d1d84e102bb29a44dedce4c60a5ae25e56.tar.gz
2iv55-f11312d1d84e102bb29a44dedce4c60a5ae25e56.tar.bz2
Diffstat (limited to 'matchblox/engine/C_MatchBloxEngine.h')
-rw-r--r--matchblox/engine/C_MatchBloxEngine.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/matchblox/engine/C_MatchBloxEngine.h b/matchblox/engine/C_MatchBloxEngine.h
index 19e0630..9b5bc98 100644
--- a/matchblox/engine/C_MatchBloxEngine.h
+++ b/matchblox/engine/C_MatchBloxEngine.h
@@ -3,7 +3,12 @@
#define C_MATCHBLOXENGINE_HEADER_FILE
#include "message_queue.h"
+#include "message_input.h"
#include "typedefs.h"
+#include <list>
+//#include <pair>
+
+using namespace std;
class C_3DObject;
class C_Block;
@@ -164,6 +169,12 @@ private:
BoxSize m_CurrentBox;
BlockType m_CurrentBlock;
+ //typedef pair<input_payload_wiimote::dot, input_payload_wiimote::dot> dotpair;
+ //list<dotpair> m_DotHist;
+ int m_DotHistSize;
+
+ double m_dInitialWiimoteDist; //initial distance of wiimote in mm, this distance is
+ //mapped to the z=0.0 in world coordinates
BoundingBox_t m_WorldBox; //an invisible box that limits the movement of the
//player
@@ -178,8 +189,13 @@ private:
//event/input handlers
void CursorMove(Vect3D_t &f_NewCursorPos);
- bool CursorMove_PutBlock(Vect3D_t &f_CursPos, BoundingBox_t &f_CusrBBox);
- bool 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);
+
+ //wiimote functions
+ bool FindIRDots(input_payload_wiimote *f_pWiimote, ir_dot_t f_Dot[2]);
+ bool CalcWiimoteRelativeCursorPos(input_payload_wiimote *f_pWiimote, Vect3D_t *f_pRelPos);
+ bool ConvertWiimoteToWorld(input_payload_wiimote *f_pWiimote, Vect3D_t *f_WorldPos);
};