X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbadguy%2Fwalkingleaf.cpp;h=3df2c2aca9d0510fd00bcfeaf86659e5a33f4b7e;hb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;hp=e505ecdd0eaeb053bcb009139b0856e92c5b4639;hpb=f406067af6cbeb0a638078fe1d386d092583909c;p=supertux.git diff --git a/src/badguy/walkingleaf.cpp b/src/badguy/walkingleaf.cpp index e505ecdd0..3df2c2aca 100644 --- a/src/badguy/walkingleaf.cpp +++ b/src/badguy/walkingleaf.cpp @@ -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,26 +12,22 @@ // 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. - -#include +// along with this program. If not, see . -#include "walkingleaf.hpp" +#include "badguy/walkingleaf.hpp" -#include "random_generator.hpp" #include "object/sprite_particle.hpp" -#include "object_factory.hpp" +#include "supertux/object_factory.hpp" -WalkingLeaf::WalkingLeaf(const lisp::Lisp& reader) - : WalkingBadguy(reader, "images/creatures/walkingleaf/walkingleaf.sprite", "left", "right") +WalkingLeaf::WalkingLeaf(const Reader& reader) : + WalkingBadguy(reader, "images/creatures/walkingleaf/walkingleaf.sprite", "left", "right") { walk_speed = 60; max_drop_height = 16; } WalkingLeaf::WalkingLeaf(const Vector& pos, Direction d) - : WalkingBadguy(pos, d, "images/creatures/walkingleaf/walkingleaf.sprite", "left", "right") + : WalkingBadguy(pos, d, "images/creatures/walkingleaf/walkingleaf.sprite", "left", "right") { walk_speed = 60; max_drop_height = 16; @@ -47,4 +41,6 @@ WalkingLeaf::collision_squished(GameObject& object) return true; } -IMPLEMENT_FACTORY(WalkingLeaf, "walkingleaf") +IMPLEMENT_FACTORY(WalkingLeaf, "walkingleaf"); + +/* EOF */