41 #ifndef terrainmanager_cpp
42 #define terrainmanager_cpp
46 #include "terrainmanager.h"
47 #include "meshterrain.h"
73 for( std::vector<TerrainBase*>::iterator it =
Terrains.begin(); it !=
Terrains.end(); ++it )
75 if( Name == (*it)->GetName() )
94 std::vector<TerrainBase*>::iterator it =
Terrains.begin() + Index;
95 (*it)->RemoveFromWorld();
101 for( std::vector<TerrainBase*>::iterator it =
Terrains.begin() ; it !=
Terrains.end() ; ++it )
103 if(ToBeRemoved == (*it))
105 (*it)->RemoveFromWorld();
117 for( std::vector<TerrainBase*>::iterator it =
Terrains.begin() ; it !=
Terrains.end() ; ++it )
118 (*it)->RemoveFromWorld();
124 std::vector<TerrainBase*>::iterator it =
Terrains.begin() + Index;
125 (*it)->RemoveFromWorld();
132 for( std::vector<TerrainBase*>::iterator it =
Terrains.begin() ; it !=
Terrains.end() ; ++it )
134 if(ToBeDestroyed == (*it))
136 (*it)->RemoveFromWorld();
148 for( std::vector<TerrainBase*>::iterator it =
Terrains.begin() ; it !=
Terrains.end() ; ++it )
150 (*it)->RemoveFromWorld();
201 {
return ManagerBase::MT_TerrainManager; }
204 {
return "DefaultTerrainManager"; }
219 return "DefaultTerrainManager";
234 delete ToBeDestroyed;