X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Frocketexplosion.hpp;h=e334dc830368913354e5fa8b08494061f40d29b2;hb=4a486d92343d1824b311c234e9321e08f280fe68;hp=d5b7a79b883a45afb8253d02cf22d4a2a7f1501b;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/badguy/rocketexplosion.hpp b/src/badguy/rocketexplosion.hpp index d5b7a79b8..e334dc830 100644 --- a/src/badguy/rocketexplosion.hpp +++ b/src/badguy/rocketexplosion.hpp @@ -1,7 +1,7 @@ // $Id$ -// +// // SuperTux -// Copyright (C) 2005 Matthias Braun +// Copyright (C) 2006 Matthias Braun // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License @@ -12,14 +12,13 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -// 02111-1307, USA. +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef __BOMB_H__ -#define __BOMB_H__ +#ifndef __ROCKETEXPLOSION_H__ +#define __ROCKETEXPLOSION_H__ #include "badguy.hpp" @@ -29,16 +28,16 @@ public: RocketExplosion(const Vector& pos, Direction dir); void write(lisp::Writer& writer); - HitResponse collision_solid(GameObject& other, const CollisionHit& hit); HitResponse collision_player(Player& player, const CollisionHit& hit); HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit); void active_update(float elapsed_time); void kill_fall(); void explode(); + virtual RocketExplosion* clone() const { return new RocketExplosion(*this); } + private: Timer timer; }; #endif -