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

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CSporeGenerator
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    07/05/00
  8. //
  9. // Base:    CGenerator
  10. //
  11. // Derived:    None
  12. //
  13. //-------------------------------------------------------------
  14.  
  15. #ifndef _INCLUDE_SPOREGENERATOR_H
  16. #define _INCLUDE_SPOREGENERATOR_H
  17.  
  18. #include "Actor.h"
  19.  
  20. //-------------------------------------------------------------
  21.  
  22. class CSporeGenerator : public CActor
  23. {
  24.     private:
  25.         int m_spores_created;
  26.         int m_spores_alive;
  27.         int m_spores_killed;
  28.  
  29.     public:
  30.         CSporeGenerator();
  31.         virtual ~CSporeGenerator();
  32.         const ActorInfo& getActorInfo() { return ActorInfoList[INFO_SPORE_GENERATOR]; };
  33.  
  34.         bool activate();
  35.         bool update(Controls *controls);
  36.  
  37.         void onLeavingScreen();
  38.  
  39.         bool sporeKilled(bool by_player);
  40. };
  41.  
  42. //-------------------------------------------------------------
  43.  
  44. #endif
  45.