X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fparticles.hpp;h=8582665086d1e868083f6c6a502f41e3288a9b38;hb=c1277f5b7db9f55d1d28f658b4e804f32b76f0ce;hp=9c353ee2deeef1e12db06f449ea8d07f44333b86;hpb=a113d3bd1feddd510e3b2852b0d42522735eee40;p=supertux.git diff --git a/src/object/particles.hpp b/src/object/particles.hpp index 9c353ee2d..858266508 100644 --- a/src/object/particles.hpp +++ b/src/object/particles.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,15 +12,14 @@ // 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 SUPERTUX_PARTICLES_HPP -#define SUPERTUX_PARTICLES_HPP +#ifndef HEADER_SUPERTUX_OBJECT_PARTICLES_HPP +#define HEADER_SUPERTUX_OBJECT_PARTICLES_HPP #include "math/vector.hpp" -#include "game_object.hpp" -#include "timer.hpp" +#include "supertux/game_object.hpp" +#include "supertux/timer.hpp" #include "video/color.hpp" class Particles : public GameObject @@ -38,6 +35,17 @@ public: virtual void draw(DrawingContext& context); private: + struct Particle { + Vector pos, vel; + + Particle() : + pos(), + vel() + {} + // float angle; + }; + +private: Vector accel; Timer timer; bool live_forever; @@ -46,11 +54,9 @@ private: float size; int drawing_layer; - struct Particle { - Vector pos, vel; -// float angle; - }; std::vector particles; }; #endif + +/* EOF */