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

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CDroneGenerator
  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_DRONEGENERATOR_H
  16. #define _INCLUDE_DRONEGENERATOR_H
  17.  
  18. #include "drone.h"
  19.  
  20. //-------------------------------------------------------------
  21.  
  22. const int   DRONE_TOTAL = 8;        // total segments in chain
  23. const float DRONE_DELAY = 0.3f;        // time delay between drone generation
  24. const float DRONE_SPACING = -32.f;    // vertical spacing
  25. const float DRONE_SPEED = 0.6f;
  26.  
  27. //-------------------------------------------------------------
  28.  
  29. class CDroneGenerator : public CActor
  30. {
  31.     private:
  32.         int m_drones_created;
  33.         int m_drones_active;
  34.         int m_drones_killed;
  35.  
  36.     public:
  37.         CDroneGenerator();
  38.         virtual ~CDroneGenerator();
  39.  
  40.         const ActorInfo& getActorInfo() { return ActorInfoList[INFO_DRONE_GENERATOR]; };
  41.  
  42.         bool activate();
  43.         bool update(Controls *controls);
  44.  
  45.         int droneKilled(bool by_player);
  46. };
  47.  
  48. //-------------------------------------------------------------
  49.  
  50. #endif
  51.