X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fobject%2Finvisible_block.hpp;h=59b3085e8db9e9df8cf6160e62a2d35082cddd9b;hb=f2ffe3ee4a4955232ac311c661f98e11d2daa155;hp=7b32be38486b720bcfbb162f72222bd7b2c09fd7;hpb=a113d3bd1feddd510e3b2852b0d42522735eee40;p=supertux.git diff --git a/src/object/invisible_block.hpp b/src/object/invisible_block.hpp index 7b32be384..59b3085e8 100644 --- a/src/object/invisible_block.hpp +++ b/src/object/invisible_block.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,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 __INVISIBLE_BLOCK_H__ -#define __INVISIBLE_BLOCK_H__ +#ifndef HEADER_SUPERTUX_OBJECT_INVISIBLE_BLOCK_HPP +#define HEADER_SUPERTUX_OBJECT_INVISIBLE_BLOCK_HPP -#include "block.hpp" +#include "object/block.hpp" class InvisibleBlock : public Block { @@ -28,6 +25,7 @@ public: InvisibleBlock(const Vector& pos); virtual void draw(DrawingContext& context); + virtual bool collides(GameObject& other, const CollisionHit& hit); virtual HitResponse collision(GameObject& other, const CollisionHit& hit); protected: @@ -38,3 +36,5 @@ private: }; #endif + +/* EOF */