X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fobject%2Fmagicblock.hpp;h=30001fa23a56afb045879c368e5964e9d7142e92;hb=4a3592f77f9c089c33b9eaf2db426999a01b2b78;hp=3509e73326eaed35ff1bcb282f90804d149900d1;hpb=a983f6648d43492632c41e2b7519b70458b53cf4;p=supertux.git diff --git a/src/object/magicblock.hpp b/src/object/magicblock.hpp index 3509e7332..30001fa23 100644 --- a/src/object/magicblock.hpp +++ b/src/object/magicblock.hpp @@ -1,5 +1,3 @@ -// $Id$ -// // SuperTux - MagicBlock // // Magic Blocks are tile-like game objects that are sensitive to @@ -10,10 +8,10 @@ // // 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 @@ -21,20 +19,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 SUPERTUX_TRAMPOLINE_H -#define SUPERTUX_TRAMPOLINE_H +#ifndef HEADER_SUPERTUX_OBJECT_MAGICBLOCK_HPP +#define HEADER_SUPERTUX_OBJECT_MAGICBLOCK_HPP -#include "moving_sprite.hpp" -#include "lisp/lisp.hpp" +#include "object/moving_sprite.hpp" class MagicBlock: public MovingSprite { public: - MagicBlock(const lisp::Lisp& reader); + MagicBlock(const Reader& reader); + bool collides(GameObject& other, const CollisionHit& hit); HitResponse collision(GameObject& other, const CollisionHit& hit); void update(float elapsed_time); void draw(DrawingContext& context); @@ -53,3 +50,5 @@ private: }; #endif + +/* EOF */