[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3720 - trunk/pingus/src/particles
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3720 - trunk/pingus/src/particles |
Date: |
Mon, 7 Jul 2008 17:18:11 +0200 |
Author: grumbel
Date: 2008-07-07 17:18:10 +0200 (Mon, 07 Jul 2008)
New Revision: 3720
Removed:
trunk/pingus/src/particles/ground_particle.cpp
trunk/pingus/src/particles/ground_particle.hpp
Log:
Obsolete stuff removed
Deleted: trunk/pingus/src/particles/ground_particle.cpp
===================================================================
--- trunk/pingus/src/particles/ground_particle.cpp 2008-07-07 15:11:24 UTC
(rev 3719)
+++ trunk/pingus/src/particles/ground_particle.cpp 2008-07-07 15:18:10 UTC
(rev 3720)
@@ -1,61 +0,0 @@
-// Pingus - A free Lemmings clone
-// Copyright (C) 1999 Ingo Ruhnke <address@hidden>
-//
-// 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, see <http://www.gnu.org/licenses/>.
-#if 0
-#include "../globals.hpp"
-#include "../resource.hpp"
-#include "ground_particle.hpp"
-
-GroundParticle::GroundParticle (int x, int y, float x_a, float y_a)
- : Particle (x,y, x_a, y_a)
-{
- surface = Sprite("particles/ground");
- livetime = 25 + (rand() % 10);
- time = livetime;
-}
-
-void
-GroundParticle::update (float /*delta*/)
-{
- pos.x += velocity.x;
- pos.y += velocity.y;
- // y_add += 0.1;
-
- if (livetime > 0)
- --livetime;
-}
-
-void
-GroundParticle::draw_offset (int ofx, int ofy, float s)
-{
- if (fast_mode)
- return;
-
- if (s == 1.0) {
- // FIXME: This segfaults from time to time, don't know why
- surface.put_screen(static_cast<int>(pos.x + ofx - 16),
- static_cast<int>(pos.y + ofy - 16),
- 3 - (livetime * 4 / time));
- } else {
- int width = static_cast<int>(surface.get_width () * s);
- int height = static_cast<int>(surface.get_height() * s);
- surface.put_screen(static_cast<int>((pos.x + ofx) * s) - width / 2,
- static_cast<int>((pos.y + ofy) * s) - height / 2,
- width, height, 3 - (livetime * 4 / time));
- }
-}
-
-/* EOF */
-#endif
Deleted: trunk/pingus/src/particles/ground_particle.hpp
===================================================================
--- trunk/pingus/src/particles/ground_particle.hpp 2008-07-07 15:11:24 UTC
(rev 3719)
+++ trunk/pingus/src/particles/ground_particle.hpp 2008-07-07 15:18:10 UTC
(rev 3720)
@@ -1,41 +0,0 @@
-// Pingus - A free Lemmings clone
-// Copyright (C) 1999 Ingo Ruhnke <address@hidden>
-//
-// 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, see <http://www.gnu.org/licenses/>.
-#if 0
-#ifndef HEADER_PINGUS_PARTICLES_GROUND_PARTICLE_HPP
-#define HEADER_PINGUS_PARTICLES_GROUND_PARTICLE_HPP
-
-#include "particle.hpp"
-
-///
-class GroundParticle : public Particle
-{
-private:
- int time;
-public:
- GroundParticle(int x, int y, float x_a, float y_a);
-
- void update(float delta);
- void draw_offset(int ofx, int ofy, float s);
-
-private:
- GroundParticle (const GroundParticle&);
- GroundParticle& operator= (const GroundParticle&);
-};
-
-#endif
-
-/* EOF */
-#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3720 - trunk/pingus/src/particles,
grumbel at BerliOS <=