X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Frock.cpp;h=121fc4c828bf50192b25babdfd28eb4e192bef30;hb=864c93e01ec366f730b3ebad08d5c52d6a9363b6;hp=2b45e609db82de7ad8322cbf3dbfc979ef304da1;hpb=7a87271678d68514ae2158c0c7adb383d6002872;p=supertux.git diff --git a/src/object/rock.cpp b/src/object/rock.cpp index 2b45e609d..121fc4c82 100644 --- a/src/object/rock.cpp +++ b/src/object/rock.cpp @@ -1,11 +1,32 @@ +// $Id$ +// +// SuperTux +// Copyright (C) 2005 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 distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// 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 #include "rock.h" -#include "special/sprite.h" -#include "special/sprite_manager.h" +#include "sprite/sprite.h" +#include "sprite/sprite_manager.h" #include "lisp/writer.h" #include "video/drawing_context.h" #include "resources.h" +#include "object_factory.h" Rock::Rock(const lisp::Lisp& reader) { @@ -73,3 +94,5 @@ Rock::grab(MovingObject& , const Vector& pos) grabbed = true; } +IMPLEMENT_FACTORY(Rock, "rock") +