Hosting courtesy of Sourceforge

SourceForge Logo
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Bomb.h

Go to the documentation of this file.
00001 //
00002 //      Copyright (C) 2002 Robert Renaud
00003 //
00004 //      This program is free software; you can redistribute it and/or
00005 //      modify it under the terms of the GNU General Public License
00006 //      as published by the Free Software Foundation; either version 2
00007 //      of the License, or (at your option) any later version.
00008 //
00009 //      This program is distributed in the hope that it will be useful,
00010 //      but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 //      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
00012 //
00013 //      See the GNU General Public License for more details.
00014 //
00015 //      You should have received a copy of the GNU General Public License
00016 //      along with this program; if not, write to the Free Software
00017 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
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 }; // namespace Game
00054 
00055 #endif // ifndef BOMB_H_

Generated on Tue May 21 07:26:51 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001