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

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CLoner
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    06/05/00
  8. //
  9. // Base:    CAlien
  10. //
  11. // Derived:    CStandardLoner
  12. //            CMediumLoner
  13. //            CArmouredLoner
  14. //
  15. //-------------------------------------------------------------
  16.  
  17. #ifndef _INCLUDE_LONER_H
  18. #define _INCLUDE_LONER_H
  19.  
  20. #include "alien.h"
  21.  
  22. //-------------------------------------------------------------
  23.  
  24. class CLoner : public CAlien
  25. {
  26.     private:
  27.         CSpinnerWeapon *m_weapon;
  28.  
  29.     public:
  30.         CLoner();
  31.         virtual ~CLoner();
  32.  
  33.         bool activate();
  34.         void kill();
  35.         bool update(Controls *controls);
  36. };
  37.  
  38. //-------------------------------------------------------------
  39.  
  40. class CStandardLoner : public CLoner
  41. {
  42.     public:
  43.         const ActorInfo& getActorInfo() { return ActorInfoList[INFO_STANDARD_LONER]; };
  44. };
  45.  
  46. //-------------------------------------------------------------
  47.  
  48. class CMediumLoner : public CLoner
  49. {
  50.     public:
  51.         const ActorInfo& getActorInfo() { return ActorInfoList[INFO_MEDIUM_LONER]; };
  52. };
  53.  
  54. //-------------------------------------------------------------
  55.  
  56. class CArmouredLoner : public CLoner
  57. {
  58.     public:
  59.         const ActorInfo& getActorInfo() { return ActorInfoList[INFO_ARMOURED_LONER]; };
  60. };
  61.  
  62. //-------------------------------------------------------------
  63.  
  64. #endif
  65.