MemberStatus.h
上传用户:semy2100
上传日期:2013-01-22
资源大小:3633k
文件大小:1k
源码类别:

射击游戏

开发平台:

Visual C++

  1. /********************************************************************
  2. *                        空运爆发                                    *
  3. *                       Version 2.0                                  *
  4. * 本游戏全部代码由:                                                 *
  5. *                   冲天实验室   梁锋 编写                           *
  6. *                    邮箱:lenwine@126.com                           *
  7. *                bbs: http://free2.e-168.cn/lenwind (正在开发中...)  *
  8. **********************************************************************/
  9. #ifndef MEMBERSTATUS_H
  10. #define MEMBERSTATUS_H
  11. class MemberStatus  
  12. {
  13. protected:
  14. Manager *mManager;
  15. int blow_up_value,blow_up_current;//爆炸时的总帧数,及当前帧
  16.     double x,y;
  17. void ChangePlace();
  18. public:
  19. int bx,by,Bitlong,Bittall;
  20. int rx,ry,rlong,rtall;//碰撞检测
  21. int alive,shootpower,alive2;
  22. double spx,spy;// 速度
  23. bool Work;
  24. bool leaverect();//判断是否离开活动区域
  25. bool leaveline();//判断是否离开该视线
  26. int GetX(){return (int)x;}
  27. int GetY(){return (int)y;}
  28. void SetX(int xv){x=xv;}
  29. void SetY(int yv){y=yv;}
  30.     MemberStatus(Manager *mgr,int xv,int yv);
  31. virtual void Update();
  32. virtual void Update2();
  33. };
  34. #endif