X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Fspiky.hpp;h=122d720986afd6ad69c4f6860051fb18039ceccc;hb=b48d93ad3b4d1a60724fc44a3db31f6cf4f6e0c8;hp=fc04ffbcb87565bc4f45a7d6d8d394e3db3dd08d;hpb=ff3f2e3e93b2af69c0f686f8f636ba0d66c67f73;p=supertux.git diff --git a/src/badguy/spiky.hpp b/src/badguy/spiky.hpp index fc04ffbcb..122d72098 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,26 +12,24 @@ // 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); + + void freeze(); + 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: - bool stay_on_platform; }; #endif + +/* EOF */