3dE.h
上传用户:hkb425
上传日期:2007-06-16
资源大小:34191k
文件大小:2k
- // 3dE.h: interface for the C3dE class.
- //作者:吴雪平 2002-6-17日修改
- //处理输入与座标变换
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_3DE_H__5700AE62_401D_11D6_812C_5254AB37CDC9__INCLUDED_)
- #define AFX_3DE_H__5700AE62_401D_11D6_812C_5254AB37CDC9__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "MD2Loader.h"
- #include "ammomanager.h"
- #include "heightmap.h"
- class C3dE
- {
- public:
- C3dE();
- virtual ~C3dE();
- bool Init3dExplorer(VERTEX eyePos,float rotY=0, bool bControlled=false);
- void ProcessInput(INPUT *pInput);
- void TransformWorld(int step);
- void Update3dEAmmo();
- void UpdateHeightmap();
- //////////////////////////////
- //protected:
- bool m_bControlled;
- bool m_bAttacked;
- bool m_bAttacking;
- float m_Health;
- CMD2Loader m_Weapon;
- CAmmoManager m_cAmmoManager;
- CHeightmap m_Heightmap;
- float m_Height;
- float m_baseHeight;
- VERTEX m_eyePos;
- BOUNDARY_3D m_boundary;
- float m_RotX;
- float m_RotY;
- float m_RotZ;
- NORMAL m_RunVector;
- float m_JumpSpeed;
- float m_MaxRunSpeed;
- float m_Acceleration;
- float m_Decrease;
- float m_AirDecrease;
- float m_Gravity;
- bool m_bFlying;
- float m_stepHeight;
- float m_YBiasAngle;
- float m_YBias;
- float m_ZBiasAngle;
- bool m_bBiasLeft;
- float m_gunYBias;
- float m_gunZBias;
- int m_gunState;
- float m_VisualAngle; //half ,degree
- };
- #endif // !defined(AFX_3DE_H__5700AE62_401D_11D6_812C_5254AB37CDC9__INCLUDED_)