[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/editor ObjectManager.cc,1.61,1.62
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/editor ObjectManager.cc,1.61,1.62 |
Date: |
7 Jun 2002 19:10:36 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/editor
In directory dark:/tmp/cvs-serv1715/editor
Modified Files:
ObjectManager.cc
Log Message:
changed usage of ListHelper to regular STL method calls
Index: ObjectManager.cc
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/editor/ObjectManager.cc,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- ObjectManager.cc 7 Jun 2002 14:50:34 -0000 1.61
+++ ObjectManager.cc 7 Jun 2002 19:10:33 -0000 1.62
@@ -32,7 +32,6 @@
#include "../backgrounds/SurfaceBackgroundData.hh"
#include "../WorldObjData.hh"
#include "StartPos.hh"
-#include "../generic/ListHelper.hh"
#include "ObjectManager.hh"
#include "EditorObj.hh"
#include "EditorView.hh"
@@ -160,16 +159,23 @@
vector<WeatherData> temp_weather = plf->get_weather();
vector<boost::shared_ptr<WorldObjData> > temp_worldobj =
plf->get_worldobjs_data();
- for (vector<GroundpieceData>::iterator i = temp_surfaces.begin(); i !=
temp_surfaces.end(); ++i)
- ListHelper::append (editor_objs, i->create_EditorObj ());
+ for (vector<GroundpieceData>::iterator i = temp_surfaces.begin(); i !=
temp_surfaces.end(); ++i) {
+ const list<boost::shared_ptr<EditorObj> > & temp = i->create_EditorObj();
+ editor_objs.insert(editor_objs.end(), temp.begin(), temp.end() );
+ }
- for (vector<WeatherData>::iterator i = temp_weather.begin(); i !=
temp_weather.end(); ++i)
- ListHelper::append (editor_objs, i->create_EditorObj ());
+
+ for (vector<WeatherData>::iterator i = temp_weather.begin(); i !=
temp_weather.end(); ++i) {
+ const list<boost::shared_ptr<EditorObj> > & temp = i->create_EditorObj();
+ editor_objs.insert(editor_objs.end(), temp.begin(), temp.end() );
+ }
for (vector<boost::shared_ptr<WorldObjData> >::iterator i =
temp_worldobj.begin();
i != temp_worldobj.end();
- ++i)
- ListHelper::append (editor_objs, (*i)->create_EditorObj ());
+ ++i) {
+ const list<boost::shared_ptr<EditorObj> > & temp =
(*i)->create_EditorObj();
+ editor_objs.insert(editor_objs.end(), temp.begin(), temp.end() );
+ }
#ifndef WIN32 // FIXME: Compiler error in Windows
editor_objs.sort(EditorObj_z_pos_sorter());
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/editor ObjectManager.cc,1.61,1.62,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/war WarGame.hh,1.2,1.3
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src ButtonPanel.cc,1.26,1.27 ButtonPanel.hh,1.14,1.15 Client.cc,1.79,1.80 Client.hh,1.36,1.37 GenericMain.cc,1.17,1.18 Makefile.am,1.74,1.75 MultiplayerGame.cc,1.6,1.7 PLFPreview.cc,1.9,1.10 PLFPreview.hh,1.5,1.6 PingusGameSession.cc,1.12,1.13 PingusGameSession.hh,1.7,1.8 PingusSpotMap.cc,1.51,1.52 PingusSpotMap.hh,1.18,1.19 Playfield.cc,1.30,1.31 Playfield.hh,1.20,1.21 Server.cc,1.23,1.24 Server.hh,1.15,1.16 SmallMap.hh,1.12,1.13 SmallMapImage.cc,1.8,1.9 TrueServer.cc,1.28,1.29 TrueServer.hh,1.10,1.11 World.cc,1.67,1.68 World.hh,1.32,1.33
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/war WarGame.hh,1.2,1.3
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src ButtonPanel.cc,1.26,1.27 ButtonPanel.hh,1.14,1.15 Client.cc,1.79,1.80 Client.hh,1.36,1.37 GenericMain.cc,1.17,1.18 Makefile.am,1.74,1.75 MultiplayerGame.cc,1.6,1.7 PLFPreview.cc,1.9,1.10 PLFPreview.hh,1.5,1.6 PingusGameSession.cc,1.12,1.13 PingusGameSession.hh,1.7,1.8 PingusSpotMap.cc,1.51,1.52 PingusSpotMap.hh,1.18,1.19 Playfield.cc,1.30,1.31 Playfield.hh,1.20,1.21 Server.cc,1.23,1.24 Server.hh,1.15,1.16 SmallMap.hh,1.12,1.13 SmallMapImage.cc,1.8,1.9 TrueServer.cc,1.28,1.29 TrueServer.hh,1.10,1.11 World.cc,1.67,1.68 World.hh,1.32,1.33
- Index(es):