www.pudn.com > rayman.zip > Player.h
// Player.h: interface for the Player class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_PLAYER_H__7648CB0F_074B_41CB_B18A_A7013D34E252__INCLUDED_) #define AFX_PLAYER_H__7648CB0F_074B_41CB_B18A_A7013D34E252__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #includeextern tVector3 pos; extern tVector3 rot; extern int Action; #define ACTION_IDLE 0 #define ACTION_IDLE1 1 #define ACTION_DEATH1 2 #define ACTION_DEATH2 3 #define ACTION_DEATH3 4 #define ACTION_DROP 5 #define ACTION_ATTACK 6 #define ACTION_GESTURE 7 #define ACTION_JUMP 8 #define ACTION_JUMP_BACK 9 #define ACTION_LAND 10 #define ACTION_LAND_BACK 11 #define ACTION_RAISE 12 #define ACTION_RUN 13 #define ACTION_STAND 14 #define ACTION_STAND2 15 #define ACTION_TURN 16 #define ACTION_WALK 17 extern bool bJump; #include class Player { public: Player(); virtual ~Player(); Init(); Render(); Draw(); ShowShadow(); int life; //255 full; int energe; //能量 int key; //发现钥匙的数量 int score; //得分 long time; //用的时间 int action; //动作 private: AirMD3 md3; float md3YOffset; float md3Scale; float md3HeadingOffset; float preMov_x, preMov_z; glShadowProjection(); //(float * l, float * e, float * n); }; #endif // !defined(AFX_PLAYER_H__7648CB0F_074B_41CB_B18A_A7013D34E252__INCLUDED_)