[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/particles rain_particle_holder.cxx,1
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/particles rain_particle_holder.cxx,1.4,1.5 rain_particle_holder.hxx,1.3,1.4 |
Date: |
25 Mar 2003 00:37:46 -0000 |
Update of /var/lib/cvs/Games/Pingus/src/particles
In directory dark:/tmp/cvs-serv28294/particles
Modified Files:
rain_particle_holder.cxx rain_particle_holder.hxx
Log Message:
- removed lots of not so usefull std::cout's
Index: rain_particle_holder.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/particles/rain_particle_holder.cxx,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- rain_particle_holder.cxx 19 Feb 2003 09:50:36 -0000 1.4
+++ rain_particle_holder.cxx 25 Mar 2003 00:37:44 -0000 1.5
@@ -38,8 +38,7 @@
RainParticleHolder::RainParticleHolder ()
: rain1_surf (PingusResource::load_surface("Particles/rain1", "pingus")),
rain2_surf (PingusResource::load_surface("Particles/rain2", "pingus")),
- rain_splash(PingusResource::load_surface("Particles/rain_splash",
"pingus")),
- world_width(1000.0f) // working default in case set_width() wasn't called
+ rain_splash(PingusResource::load_surface("Particles/rain_splash",
"pingus"))
{
}
@@ -111,7 +110,7 @@
for (std::vector<RainParticle>::iterator it=particles.begin(); it !=
particles.end(); ++it)
{
// skip dead/invisible particles
- if (!it->alive || it->pos.x > world_width)
+ if (!it->alive || it->pos.x > WorldObj::get_world()->get_width())
continue;
if (it->splash)
@@ -122,12 +121,6 @@
else
gc.draw(rain1_surf, static_cast<int>(it->pos.x),
static_cast<int>(it->pos.y - rain1_surf.get_height()));
}
-}
-
-void
-RainParticleHolder::set_world_width(int width)
-{
- world_width = width;
}
} // namespace Particles
Index: rain_particle_holder.hxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/particles/rain_particle_holder.hxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- rain_particle_holder.hxx 25 Jan 2003 11:03:58 -0000 1.3
+++ rain_particle_holder.hxx 25 Mar 2003 00:37:44 -0000 1.4
@@ -48,7 +48,6 @@
CL_Surface rain1_surf;
CL_Surface rain2_surf;
CL_Surface rain_splash;
- float world_width; // float since it's compared to a float value
std::vector<RainParticle> particles;
@@ -64,12 +63,6 @@
/// Draw the particle with the correct zoom resize
void draw (GraphicContext& gc);
-
- /** sets the width of the current world so that no particles
- * are drawn outside the visible area (optimization).
- * If this method is not called a default value of 1000 will
- * be used to ensure that particles are drawn. */
- void set_world_width(int width);
private:
RainParticleHolder (const RainParticleHolder&);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/particles rain_particle_holder.cxx,1.4,1.5 rain_particle_holder.hxx,1.3,1.4,
grumbel <=