[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/particles WeatherGenerator.cc,1.7,1.8
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/particles WeatherGenerator.cc,1.7,1.8 WeatherGenerator.hh,1.9,1.10 |
Date: |
11 Jun 2002 18:28:39 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/particles
In directory dark:/tmp/cvs-serv30787/particles
Modified Files:
WeatherGenerator.cc WeatherGenerator.hh
Log Message:
replaced shared_ptr<WorldObj> with WorldObj*
Index: WeatherGenerator.cc
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/particles/WeatherGenerator.cc,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- WeatherGenerator.cc 10 Jun 2002 13:03:35 -0000 1.7
+++ WeatherGenerator.cc 11 Jun 2002 18:28:37 -0000 1.8
@@ -23,13 +23,13 @@
#include "RainGenerator.hh"
#include "../boost/smart_ptr.hpp"
-boost::shared_ptr<WorldObj>
+WorldObj*
WeatherGenerator::create(WeatherData data)
{
if (data.type == "snow")
- return boost::shared_ptr<WorldObj>(new SnowGenerator());
+ return new SnowGenerator();
else if (data.type == "rain")
- return boost::shared_ptr<WorldObj>(new RainGenerator());
+ return new RainGenerator();
else
{
throw PingusError ("WeatherGenerator: Unknown type: " + data.type);
@@ -37,3 +37,4 @@
}
/* EOF */
+
Index: WeatherGenerator.hh
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/particles/WeatherGenerator.hh,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- WeatherGenerator.hh 10 Jun 2002 13:03:35 -0000 1.9
+++ WeatherGenerator.hh 11 Jun 2002 18:28:37 -0000 1.10
@@ -46,9 +46,10 @@
/** Generate an WeatherGenerator which fits to the given data */
- static boost::shared_ptr<WorldObj> create(WeatherData);
+ static WorldObj* create(WeatherData);
};
#endif
/* EOF */
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/particles WeatherGenerator.cc,1.7,1.8 WeatherGenerator.hh,1.9,1.10,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/po README.translate,1.1,1.2
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/backgrounds SolidColorBackground.cc,1.15,1.16 SolidColorBackground.hh,1.19,1.20 StarfieldBackground.cc,1.23,1.24 StarfieldBackground.hh,1.17,1.18 SurfaceBackgroundData.cc,1.20,1.21 SurfaceBackgroundData.hh,1.16,1.17 ThunderstormBackgroundData.cc,1.14,1.15 ThunderstormBackgroundData.hh,1.9,1.10
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/po README.translate,1.1,1.2
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/backgrounds SolidColorBackground.cc,1.15,1.16 SolidColorBackground.hh,1.19,1.20 StarfieldBackground.cc,1.23,1.24 StarfieldBackground.hh,1.17,1.18 SurfaceBackgroundData.cc,1.20,1.21 SurfaceBackgroundData.hh,1.16,1.17 ThunderstormBackgroundData.cc,1.14,1.15 ThunderstormBackgroundData.hh,1.9,1.10
- Index(es):