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

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CRusherGenerator
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    06/05/00
  8. //
  9. // Base:    CActor
  10. //
  11. // Derived:    None
  12. //
  13. //-------------------------------------------------------------
  14.  
  15. #ifndef _INCLUDE_RUSHERGENERATOR_H
  16. #define _INCLUDE_RUSHERGENERATOR_H
  17.  
  18. #include "rusher.h"
  19.  
  20. //-------------------------------------------------------------
  21.  
  22. const int   RUSHER_TOTAL = 6;        // total segments in chain
  23. const float RUSHER_DELAY = 0.5f;    // time delay between generation
  24.  
  25. //-------------------------------------------------------------
  26.  
  27. class CRusherGenerator : public CActor
  28. {
  29.     private:
  30.         int m_rushers_created;
  31.  
  32.         gsCTimer m_delay_timer;
  33.  
  34.     public:
  35.         CRusherGenerator();
  36.         virtual ~CRusherGenerator();
  37.  
  38.         const ActorInfo& getActorInfo() { return ActorInfoList[INFO_RUSHER_GENERATOR]; };
  39.  
  40.         bool activate();
  41.         bool update(Controls *controls);
  42. };
  43.  
  44. //-------------------------------------------------------------
  45.  
  46. #endif
  47.