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

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CBossEye
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    06/05/00
  8. //
  9. // Base:    CBoss
  10. //
  11. // Derived:    None
  12. //
  13. //-------------------------------------------------------------
  14.  
  15. #ifndef _INCLUDE_BOSSEYE_H
  16. #define _INCLUDE_BOSSEYE_H
  17.  
  18. #include "boss.h"
  19.  
  20. //-------------------------------------------------------------
  21.  
  22. const int BOSSEYE_TOTAL = 6;
  23.  
  24. typedef enum {
  25.     BOSSEYE_OPEN,
  26.     BOSSEYE_CLOSING,
  27.     BOSSEYE_SHUT
  28. } BossEyeState;
  29.  
  30. //-------------------------------------------------------------
  31.  
  32. class CBossEye : public CBoss
  33. {
  34.     private:
  35.         int m_eye_number;
  36.         
  37.         static BossEyeState m_state;
  38.  
  39.     public:
  40.         CBossEye();
  41.         virtual ~CBossEye();
  42.  
  43.         const ActorInfo& getActorInfo() { return ActorInfoList[INFO_BOSSEYE]; };
  44.  
  45.         bool activate();
  46.         void kill();
  47.  
  48.         bool update(Controls *controls);
  49.  
  50.         void registerHit(int energy,CActor *hitter);
  51.  
  52.         void setEyeNumber(int eye_number);
  53.  
  54.         static void setState(BossEyeState state);
  55. };
  56.  
  57. //-------------------------------------------------------------
  58.  
  59. #endif
  60.