home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / XenonSource.exe / demo4 / bullet.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-03  |  899 b   |  49 lines

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CBullet
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    06/05/00
  8. //
  9. // Base:    CActor
  10. //
  11. // Derived:    CMissile
  12. //            CHomingMissile
  13. //            CLaser
  14. //            CSpore
  15. //            CHomerProjectile
  16. //
  17. //-------------------------------------------------------------
  18.  
  19. #ifndef _INCLUDE_BULLET_H
  20. #define _INCLUDE_BULLET_H
  21.  
  22. #include "actor.h"
  23.  
  24. //-------------------------------------------------------------
  25.  
  26. class CBullet : public CActor
  27. {
  28.     protected:
  29.  
  30.         BulletGrade m_grade;
  31.  
  32.     public:
  33.         CBullet();
  34.         ~CBullet();
  35.  
  36.         bool draw();
  37.  
  38.         virtual void onLeavingScreen();
  39.  
  40.         virtual void onCollisionWithActor(CActor *actor);
  41.         virtual void onCollisionWithMap(gsCMap *map,int hits);
  42.  
  43.         void setGrade(BulletGrade grade = BULLET_STANDARD);
  44. };
  45.  
  46. //-------------------------------------------------------------
  47.  
  48. #endif
  49.