X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Fwalkingleaf.hpp;h=88d1d71201ddf83289eacabd8ddc7c7650429fae;hb=f3aae75da9077700abff39f42d7d2b7be2d818e2;hp=a221865e8feed80677221b86258c2ee2f3f8f8dc;hpb=2aa5d733681fdb1559ca9801c7b69e72a36dd335;p=supertux.git diff --git a/src/badguy/walkingleaf.hpp b/src/badguy/walkingleaf.hpp index a221865e8..88d1d7120 100644 --- a/src/badguy/walkingleaf.hpp +++ b/src/badguy/walkingleaf.hpp @@ -1,12 +1,10 @@ -// $Id$ -// // SuperTux - Walking Leaf // Copyright (C) 2006 Wolfgang Becker // -// 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,13 +12,12 @@ // 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 __WALKINGLEAF_H__ -#define __WALKINGLEAF_H__ +#ifndef HEADER_SUPERTUX_BADGUY_WALKINGLEAF_HPP +#define HEADER_SUPERTUX_BADGUY_WALKINGLEAF_HPP -#include "walking_badguy.hpp" +#include "badguy/walking_badguy.hpp" /* * Easy to kill badguy that does not jump down from it's ledge. @@ -28,14 +25,14 @@ class WalkingLeaf : public WalkingBadguy { public: - WalkingLeaf(const lisp::Lisp& reader); + WalkingLeaf(const Reader& reader); WalkingLeaf(const Vector& pos, Direction d); - virtual WalkingLeaf* clone() const { return new WalkingLeaf(*this); } - protected: - bool collision_squished(Player& player); + bool collision_squished(GameObject& object); }; #endif + +/* EOF */