X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fobject%2Fstar.hpp;h=5e184040669cbec8361bef2d776fba7be7969682;hb=b91dbe6bc1d5047a127cdc688dda836c59e8c2d1;hp=fc01922b1189aa10f96578b356a7277d4f555c6f;hpb=2892ebda09d24c977547159e34abf0244884b89e;p=supertux.git diff --git a/src/object/star.hpp b/src/object/star.hpp index fc01922b1..5e1840406 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,27 +12,29 @@ // 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" class Star : public MovingSprite { public: - Star(const Vector& pos); - virtual Star* clone() const { return new Star(*this); } + Star(const Vector& pos, Direction direction = RIGHT); virtual void update(float elapsed_time); + virtual void draw(DrawingContext& context); virtual void collision_solid(const CollisionHit& hit); virtual HitResponse collision(GameObject& other, const CollisionHit& hit); private: Physic physic; + Color light; + SpritePtr lightsprite; }; #endif + +/* EOF */