00001 #ifndef sw_PlayerH
00002 #define sw_PlayerH
00003
00004 #include "sw_Object.h"
00005 #include "sw_Obstacle.h"
00006 #include "sw_Level.h"
00007 #include "sw_utilities.h"
00008 #include "sw_math.h"
00009
00020 class CPlayer : public CObject
00021 {
00022 private:
00023 TBoard Board;
00024 GLfloat Angle;
00025 public:
00026 CPlayer();
00027 ~CPlayer();
00028
00032 GLvoid Initialize();
00033
00038 GLvoid Render(RenderMode rm);
00039
00050 GLvoid Move(MoveType p_Move,GLdouble Timepassed,CLevel *Level=0);
00051
00061 GLvoid CalcCameraPositionAndLookVec(GLfloat Back,GLfloat Up,GLfloat Side,TPoint3 *Camera,CVector3 *LookVec,GLfloat *PositionZ,GLfloat *PositionX);
00062
00069 GLvoid SetPosition(GLfloat x,GLfloat y,GLfloat z);
00070
00071 GLvoid SetDirection(GLfloat x,GLfloat z);
00072
00073
00074 PassState PassedGuide(TPairOfGuides *POGuide);
00075 bool isCollision(TPoint3 *ObstaclePos,GLfloat ObstacleWidth);
00076 };
00077
00078 #endif