00001 00007 #ifndef _THROWNBOMB_H_ 00008 #define _THROWNBOMB_H_ 00009 00010 #include "Bomb.h" 00011 #include "IsoBomb.h" 00012 #include "Character.h" 00013 00017 class ThrownBomb : public Bomb { 00018 00019 public: 00020 00024 ThrownBomb(); 00025 00036 ThrownBomb( const Rect& initPos, int initDir, float size, float delay, 00037 float power, Character* c ); 00038 00042 virtual ~ThrownBomb(); 00043 00050 virtual bool update( float dt ); 00051 00057 virtual void draw( const Point& anchor ); 00058 00059 00066 virtual void doCollision( Entity* otherEntity ); 00067 00068 private: 00069 00073 Vector vect; 00074 00078 Character* owner; 00079 00083 bool hasLanded; 00084 00085 }; 00086 00087 #endif