home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / XenonSource.exe / xenon / source / boss.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-23  |  849 b   |  45 lines

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CBoss
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    06/05/00
  8. //
  9. // Base:    CActor
  10. //
  11. // Derived:    CBossEye
  12. //            CBossMouth
  13. //            CBossControl
  14. //
  15. //-------------------------------------------------------------
  16.  
  17. #include "game.h"
  18.  
  19. //-------------------------------------------------------------
  20.  
  21. int CBoss::m_active_eyes = 0;
  22.  
  23. CBossMouth *CBoss::m_mouth = 0;
  24.  
  25. //-------------------------------------------------------------
  26.  
  27. CBoss::CBoss()
  28. {
  29. }
  30.  
  31. //-------------------------------------------------------------
  32.  
  33. CBoss::~CBoss()
  34. {
  35. }
  36.  
  37. //-------------------------------------------------------------
  38.  
  39. int CBoss::getShield()
  40. {
  41.     return 100 * m_active_eyes / BOSS_EYES_TOTAL;
  42. }
  43.  
  44. //-------------------------------------------------------------
  45.