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

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CCloneEngine
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    06/05/00
  8. //
  9. // Base:    CEngine
  10. //
  11. // Derived:    None
  12. //
  13. //-------------------------------------------------------------
  14.  
  15. #include "game.h"
  16.  
  17. //-------------------------------------------------------------
  18.  
  19. CCloneEngine::CCloneEngine()
  20. {
  21. }
  22.  
  23. //-------------------------------------------------------------
  24.  
  25. CCloneEngine::~CCloneEngine()
  26. {
  27. }
  28.  
  29. //-------------------------------------------------------------
  30.  
  31. bool CCloneEngine::draw()
  32. {
  33.     if (getOwner() &&
  34.         getOwner()->getOwner() &&
  35.         getOwner()->getOwner()->getActorInfo().m_type == ACTOR_TYPE_SHIP &&
  36.         ((CShip *) getOwner()->getOwner())->isCloaked())
  37.         return true;    
  38.  
  39.     if (m_thrust > 0) {
  40.         animate(ANIMATE_LOOP);
  41.         CActor::draw();
  42.         }
  43.  
  44.     return true;
  45. }
  46.  
  47. //-------------------------------------------------------------
  48.