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

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CDrone
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    06/05/00
  8. //
  9. // Base:    CAlien
  10. //
  11. // Derived:    None
  12. //
  13. //-------------------------------------------------------------
  14.  
  15. #ifndef _INCLUDE_DRONE_H
  16. #define _INCLUDE_DRONE_H
  17.  
  18. #include "alien.h"
  19.  
  20. class CDroneGenerator;
  21.  
  22. //-------------------------------------------------------------
  23.  
  24. class CDrone : public CAlien
  25. {
  26.     private:
  27.         CDroneGenerator *m_generator;
  28.  
  29.         float m_phase;
  30.  
  31.     public:
  32.         CDrone(CDroneGenerator *generator);
  33.         virtual ~CDrone();
  34.  
  35.         const ActorInfo& getActorInfo() { return ActorInfoList[INFO_DRONE]; };
  36.  
  37.         bool activate();
  38.         bool update(Controls *controls);
  39.  
  40.         void onLeavingScreen();
  41.  
  42.         void setPhase(float p);
  43. };
  44.  
  45. //-------------------------------------------------------------
  46.  
  47. #endif
  48.