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

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CMissile
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    06/05/00
  8. //
  9. // Base:    CBullet
  10. //
  11. // Derived:    None
  12. //
  13. //-------------------------------------------------------------
  14.  
  15. #include "game.h"
  16.  
  17. //-------------------------------------------------------------
  18.  
  19. CMissile::CMissile()
  20. {
  21. }
  22.  
  23. //-------------------------------------------------------------
  24.  
  25. CMissile::~CMissile()
  26. {
  27. //    CBullet::~CBullet();
  28. }
  29.  
  30. //-------------------------------------------------------------
  31.  
  32. bool CMissile::update(Controls *controls)
  33. {
  34.     m_position += m_velocity;
  35.  
  36.     m_sprite.setFrame(MISSILE_FRAMES * m_grade);
  37.  
  38.     return true;
  39. }
  40.  
  41. //-------------------------------------------------------------
  42.