00001 00007 #ifndef _BOMB_H_ 00008 #define _BOMB_H_ 00009 00010 #include "IsoBomb.h" 00011 #include "Entity.h" 00012 00017 class Bomb : public Entity { 00018 00019 public: 00020 00030 Bomb( const Rect& initPos, int initDir, float size, float delay ); 00031 00035 virtual ~Bomb(); 00036 00043 virtual bool update( float dt ); 00044 00050 virtual void draw( const Point& anchor ); 00051 00057 virtual float getHeight() const; 00058 00065 virtual void doCollision( Entity* otherEntity ); 00066 00067 protected: 00068 00072 void blowUp(); 00073 00074 protected: 00075 00079 float blastSize; 00080 00084 float explodeTime; 00085 00089 float height; 00090 00094 int pSoFar; 00095 00099 float timeLived; 00100 00101 protected: 00105 Bomb(); 00106 }; 00107 00108 #endif