X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Fspiky.hpp;h=e1cd6f53015ff80b8b853ccd5de573014d828701;hb=1f5ff04e5283398473b4ac033258b17af0ed08f0;hp=8eed442971d2075516a404d12e2b0aabdb3297d4;hpb=4c9b57d29e67f9db5605f378549b07f670baa837;p=supertux.git diff --git a/src/badguy/spiky.hpp b/src/badguy/spiky.hpp index 8eed44297..e1cd6f530 100644 --- a/src/badguy/spiky.hpp +++ b/src/badguy/spiky.hpp @@ -1,12 +1,10 @@ -// $Id$ -// // SuperTux // 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 -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -14,24 +12,23 @@ // 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. +// along with this program. If not, see . -#ifndef __SPIKY_H__ -#define __SPIKY_H__ +#ifndef HEADER_SUPERTUX_BADGUY_SPIKY_HPP +#define HEADER_SUPERTUX_BADGUY_SPIKY_HPP -#include "badguy.hpp" +#include "badguy/walking_badguy.hpp" -class Spiky : public BadGuy +class Spiky : public WalkingBadguy { public: - Spiky(const lisp::Lisp& reader); + Spiky(const Reader& reader); + + bool is_freezable() const; - void activate(); - void write(lisp::Writer& writer); - void active_update(float elapsed_time); - HitResponse collision_solid(GameObject& other, const CollisionHit& hit); - HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit); +private: }; #endif + +/* EOF */