X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fstar.hpp;h=f719ae189f98ea9e92c70f7d08c01fd27447fd40;hb=78ac7aef674f518549f96160c6354b589553f952;hp=e3f4f04c883d6fda7ea45c2140084ff62b6c8f59;hpb=fea3446f05e1e7673607b835c269d3e8d1929ab3;p=supertux.git diff --git a/src/object/star.hpp b/src/object/star.hpp index e3f4f04c8..f719ae189 100644 --- a/src/object/star.hpp +++ b/src/object/star.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,25 +12,26 @@ // 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 __STAR_H__ -#define __STAR_H__ +#ifndef HEADER_SUPERTUX_OBJECT_STAR_HPP +#define HEADER_SUPERTUX_OBJECT_STAR_HPP #include "object/moving_sprite.hpp" -#include "physic.hpp" -#include "direction.hpp" -class Star : public MovingSprite, private UsesPhysic +class Star : public MovingSprite { public: Star(const Vector& pos, Direction direction = RIGHT); - virtual Star* clone() const { return new Star(*this); } virtual void update(float elapsed_time); virtual void collision_solid(const CollisionHit& hit); virtual HitResponse collision(GameObject& other, const CollisionHit& hit); + +private: + Physic physic; }; #endif + +/* EOF */