Bomb.h
资源名称:LwGame2.0.rar [点击查看]
上传用户:semy2100
上传日期:2013-01-22
资源大小:3633k
文件大小:3k
源码类别:
射击游戏
开发平台:
Visual C++
- /********************************************************************
- * 空运爆发 *
- * Version 2.0 *
- * 本游戏全部代码由: *
- * 冲天实验室 梁锋 编写 *
- * 邮箱:lenwine@126.com *
- * bbs: http://free2.e-168.cn/lenwind (正在开发中...) *
- **********************************************************************/
- #ifndef BOMB_H
- #define BOMB_H
- //////////////////////////////////////////////////////////////////////
- using namespace std;
- //定义子弹的基类
- class Bomb:public MemberStatus
- {
- protected:
- //定义操作的速度及角度
- void OperatorStatus(double sd,int ad);
- public:
- static enum BOMBSTYLE{OPERATOR_SHOOT,OPERATOR_NOSHOOT,OPERATOR_ROUND_SHOOT,ENERMY_BOMBO,ENERMY_BOMBS,ENERMY_BOMBT,ENERMY_BOMBF,ENERMY_BOMBG,ENERMY_BOMBH,ENERMY_BOMBI,ENERMY_BOMBJ,BOMBVALUE};
- void Update();
- static int GetShoot(BOMBSTYLE bombStyle);
- Bomb::Bomb(Manager *mgr,int xv,int yv,double memsx,double memsy);
- };
- class OperatorShoot:public Bomb//我机发弹
- {
- public:
- OperatorShoot(Manager *mgr,int xv,int yv,double memsx,double memsy);
- };
- class OperatorNoShoot : public Bomb//我机发弹
- {
- //定义角度
- int Ad,nAd;
- int xa,area;
- public:
- OperatorNoShoot(Manager *mgr,int xv,int yv,double memsx,double memsy,int ad);
- void Update();
- };
- class OperatorRoundShoot : public Bomb//我机发弹
- {
- public:
- OperatorRoundShoot(Manager *mgr,int xv,int yv,double memsx,double memsy,int ad);
- };
- class EnermyBombO : public Bomb//敌机发弹
- {
- public:
- EnermyBombO(Manager *mgr,int xv,int yv,double memsx,double memsy,int ad);
- };
- class EnermyBombS : public Bomb//敌机发弹
- {
- public:
- EnermyBombS(Manager *mgr,int xv,int yv,double memsx,double memsy,int ad);
- };
- class EnermyBombT : public Bomb//敌机发弹
- {
- public:
- EnermyBombT(Manager *mgr,int xv,int yv,double memsx,double memsy,int ad);
- };
- class EnermyBombF : public Bomb
- {
- public:
- EnermyBombF(Manager *mgr,int xv,int yv,double memsx,double memsy,int ad);
- };
- class EnermyBombG : public Bomb
- {
- public:
- EnermyBombG(Manager *mgr,int xv,int yv,double memsx,double memsy,int ad);
- };
- class EnermyBombH : public Bomb
- {
- public:
- EnermyBombH(Manager *mgr,int xv,int yv,double memsx,double memsy,int ad);
- };
- class EnermyBombI : public Bomb
- {
- public:
- EnermyBombI(Manager *mgr,int xv,int yv,double memsx,double memsy,int ad);
- };
- class EnermyBombJ : public Bomb
- {
- public:
- EnermyBombJ(Manager *mgr,int xv,int yv,double memsx,double memsy,int ad);
- };
- #endif // !defined(AFX_BOMB_H__1B289962_A505_46F2_8CCC_987A53206129__INCLUDED_)