AmmoManager.h
上传用户:hkb425
上传日期:2007-06-16
资源大小:34191k
文件大小:1k
- // AmmoManager.h: interface for the CAmmoManager class.
- //作者:吴雪平 2002-6-17日修改
- //管理武器系统
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_AMMOMANAGER_H__36A19001_546B_11D6_812C_5254AB37CDC9__INCLUDED_)
- #define AFX_AMMOMANAGER_H__36A19001_546B_11D6_812C_5254AB37CDC9__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- //#include "bullet.h"
- //#include "Audio.h"
- #include "rocket.h"
- #include "rifle.h"
- #include "heightmap.h"
- #define MAXROCKET 10
- class CAmmoManager
- {
- public:
- CAmmoManager();
- virtual ~CAmmoManager();
- bool InitAmmoManager();
- void LaunchRocket(VERTEX startPos,float rotx,float roty );
- void LaunchRocket(VERTEX startPos,float rotx,float roty ,NORMAL normal);
- void UpdateAmmoManager();
- void DrawAmmoManager();
-
- CRocket m_rocketList[MAXROCKET];
- void RifleFire(VERTEX startPos,float rotx,float roty );
- CRifle m_rifle;
- CHeightmap m_cHmap;
- unsigned int texid;
- };
- #endif // !defined(AFX_AMMOMANAGER_H__36A19001_546B_11D6_812C_5254AB37CDC9__INCLUDED_)