X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Foneup.hpp;h=93da9a1251719b0e614460c64a6c92e29cacd386;hb=78ac7aef674f518549f96160c6354b589553f952;hp=81ae3f1665d1b0388dc67128d34065027268980c;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/object/oneup.hpp b/src/object/oneup.hpp index 81ae3f166..93da9a125 100644 --- a/src/object/oneup.hpp +++ b/src/object/oneup.hpp @@ -1,42 +1,38 @@ -// $Id$ -// // SuperTux -// Copyright (C) 2005 Matthias Braun +// 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 // 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. -#ifndef __ONEUP_H__ -#define __ONEUP_H__ +// along with this program. If not, see . + +#ifndef HEADER_SUPERTUX_OBJECT_ONEUP_HPP +#define HEADER_SUPERTUX_OBJECT_ONEUP_HPP -#include "moving_object.hpp" -#include "sprite/sprite.hpp" -#include "physic.hpp" +#include "object/moving_sprite.hpp" +#include "supertux/direction.hpp" +#include "supertux/physic.hpp" -class OneUp : public MovingObject +class OneUp : public MovingSprite { public: - OneUp(const Vector& pos); - ~OneUp(); + OneUp(const Vector& pos, Direction direction = RIGHT); virtual void update(float elapsed_time); - virtual void draw(DrawingContext& context); virtual HitResponse collision(GameObject& other, const CollisionHit& hit); private: - Sprite* sprite; Physic physic; }; #endif + +/* EOF */