X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Foneup.hpp;h=93da9a1251719b0e614460c64a6c92e29cacd386;hb=78ac7aef674f518549f96160c6354b589553f952;hp=7380be08d50d249939b932bfe361a227cd2c4213;hpb=15c5a91ee89272dfda3666e2fed67e06d650d0bf;p=supertux.git diff --git a/src/object/oneup.hpp b/src/object/oneup.hpp index 7380be08d..93da9a125 100644 --- a/src/object/oneup.hpp +++ b/src/object/oneup.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,20 +12,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 __ONEUP_H__ -#define __ONEUP_H__ +#ifndef HEADER_SUPERTUX_OBJECT_ONEUP_HPP +#define HEADER_SUPERTUX_OBJECT_ONEUP_HPP #include "object/moving_sprite.hpp" -#include "physic.hpp" +#include "supertux/direction.hpp" +#include "supertux/physic.hpp" class OneUp : public MovingSprite { public: - OneUp(const Vector& pos); - virtual OneUp* clone() const { return new OneUp(*this); } + OneUp(const Vector& pos, Direction direction = RIGHT); virtual void update(float elapsed_time); virtual HitResponse collision(GameObject& other, const CollisionHit& hit); @@ -37,3 +34,5 @@ private: }; #endif + +/* EOF */