X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fobject%2Fsprite_particle.hpp;h=85e7f9f5702de4085d049e48617749ae0cbf7708;hb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;hp=dba9caaffb08932a35239dfea70917d251531c68;hpb=f406067af6cbeb0a638078fe1d386d092583909c;p=supertux.git diff --git a/src/object/sprite_particle.hpp b/src/object/sprite_particle.hpp index dba9caaff..85e7f9f57 100644 --- a/src/object/sprite_particle.hpp +++ b/src/object/sprite_particle.hpp @@ -1,13 +1,11 @@ -// $Id$ -// // SuperTux // Copyright (C) 2006 Matthias Braun // Copyright (C) 2006 Christoph Sommer // -// 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 @@ -15,20 +13,16 @@ // 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 __SPRITE_PARTICLE_H__ -#define __SPRITE_PARTICLE_H__ +// along with this program. If not, see . +#ifndef HEADER_SUPERTUX_OBJECT_SPRITE_PARTICLE_HPP +#define HEADER_SUPERTUX_OBJECT_SPRITE_PARTICLE_HPP -#include "game_object.hpp" -#include "resources.hpp" -#include "player.hpp" #include "object/anchor_point.hpp" #include "sprite/sprite.hpp" #include "sprite/sprite_manager.hpp" -#include "video/drawing_context.hpp" + +class Player; class SpriteParticle : public GameObject { @@ -39,12 +33,19 @@ protected: virtual void hit(Player& player); virtual void update(float elapsed_time); virtual void draw(DrawingContext& context); + private: - Sprite* sprite; + std::auto_ptr sprite; Vector position; Vector velocity; Vector acceleration; int drawing_layer; + +private: + SpriteParticle(const SpriteParticle&); + SpriteParticle& operator=(const SpriteParticle&); }; #endif + +/* EOF */