00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef BOMB_H
00021 #define BOMB_H
00022
00023 #include "../Config.h"
00024
00025 #include "Constants.h"
00026 #include "GameDebug.h"
00027 #include "Moveable.h"
00028
00029 #include "../Graphics/ImageManager.h"
00030
00031 namespace Game {
00032
00033 class Bomb: public MoveableItem {
00034 public:
00035 Bomb(Sint16 x, Sint16 y, int bombRad, int moveSpeed=0, int numTicks=Constants::DEFAULT_BOMB_TICKS);
00039 virtual bool tick();
00040
00042 virtual int getBombRadius();
00043
00044 virtual ~Bomb();
00045 void draw(SDL_Surface* screen);
00046 protected:
00047 int bombRadius;
00048 Graphics::DrawableAt* img;
00049 int numTicksTilExplosion;
00050
00051 };
00052
00053 };
00054
00055 #endif // ifndef BOMB_H_