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

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CSpore
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    06/05/00
  8. //
  9. // Base:    CBullet
  10. //
  11. // Derived:    None
  12. //
  13. //-------------------------------------------------------------
  14.  
  15. #ifndef _INCLUDE_SPORE_H
  16. #define _INCLUDE_SPORE_H
  17.  
  18. #include "bullet.h"
  19.  
  20. //-------------------------------------------------------------
  21.  
  22. const float SPORE_HOMING_DELAY = 0.5f;
  23.  
  24. //-------------------------------------------------------------
  25.  
  26. class CSpore : public CBullet
  27. {
  28.     private:
  29.         gsCTimer m_delay_timer;
  30.  
  31.         bool m_killed_by_player;
  32.  
  33.     public:
  34.         CSpore();
  35.         ~CSpore();
  36.         const ActorInfo& getActorInfo() { return ActorInfoList[INFO_SPORE]; };
  37.  
  38.         bool activate();
  39.         void kill();
  40.  
  41.         void onLeavingScreen();
  42.         void onKilled();
  43.         
  44.         bool update(Controls *controls);
  45. };
  46.  
  47. //-------------------------------------------------------------
  48.  
  49. #endif
  50.