X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Fsspiky.hpp;h=49a48e24850f8a9ac3fcbd067d93f21b43658b26;hb=c404b2190f9394d0646018fd72f8ce156b5f9f72;hp=8e346cdfe4401c3163660230a3e85fae67733cda;hpb=fea3446f05e1e7673607b835c269d3e8d1929ab3;p=supertux.git diff --git a/src/badguy/sspiky.hpp b/src/badguy/sspiky.hpp index 8e346cdfe..49a48e248 100644 --- a/src/badguy/sspiky.hpp +++ b/src/badguy/sspiky.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,21 +12,19 @@ // 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 __SSPIKY_H__ -#define __SSPIKY_H__ +#ifndef HEADER_SUPERTUX_BADGUY_SSPIKY_HPP +#define HEADER_SUPERTUX_BADGUY_SSPIKY_HPP -#include "walking_badguy.hpp" +#include "badguy/walking_badguy.hpp" class SSpiky : public WalkingBadguy { public: - SSpiky(const lisp::Lisp& reader); + SSpiky(const Reader& reader); - void activate(); - void write(lisp::Writer& writer); + void initialize(); void collision_solid(const CollisionHit& hit); HitResponse collision_badguy(BadGuy& badguy, const CollisionHit& hit); void active_update(float elapsed_time); @@ -36,8 +32,6 @@ public: void freeze(); bool is_freezable() const; - virtual SSpiky* clone() const { return new SSpiky(*this); } - protected: enum SSpikyState { SSPIKY_SLEEPING, @@ -48,3 +42,5 @@ protected: }; #endif + +/* EOF */