1 /* $Id: homingmissile.hpp,v 1.5.4.1 2006/01/20 11:33:52 chfreund Exp $ */ 2 3 #ifndef _HOMINGMISSILE_HPP_ 4 #define _HOMINGMISSILE_HPP_ 5 6 /**********************************************************/ 7 8 #include <iostream> 9 #include "missile.hpp" 10 11 /**********************************************************/ 12 13 //! Homing Missile 14 class HomingMissile : public Missile 15 { 16 friend class WeaponHomingMissile; 17 18 public: 19 20 HomingMissile(); 21 22 //! overwritten from class Missile 23 bool initialize( const Vector& pos, 24 const Vector& vel, 25 const Uint8 owner, 26 const Sint32 nShrapnels, 27 const Sint32 damage, 28 const Vector& thrust ); 29 30 //! overwritten from class Object getID() const31 virtual Sint32 getID() const { return HOMING_MISSILE; } 32 33 virtual void update(); 34 virtual void explode( void ); 35 36 void updateSpriteSelection( const bool activeEngine ); 37 38 virtual void dump( std::ostream& out ) const; 39 40 protected: 41 }; 42 43 /**********************************************************/ 44 45 #endif // _HOMINGMISSILE_HPP_ 46