Changeset 9833 in orxonox.OLD for branches/new_class_id/src/world_entities
- Timestamp:
- Sep 26, 2006, 4:59:49 PM (18 years ago)
- Location:
- branches/new_class_id/src/world_entities
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/bsp_entity.cc
r9727 r9833 15 15 16 16 #include "bsp_entity.h" 17 #include "util/loading/resource_manager.h"18 #include "util/loading/resource_manager.h"19 17 20 18 #include "debug.h" 19 #include "loading/new_resource_manager.h" 21 20 22 21 #include "class_id_DEPRECATED.h" … … 72 71 73 72 // Check wether file exists.... 74 if ( File(Resource Manager::getFullName(name)).exists() ) {73 if ( File(Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(name)).exists() ) { 75 74 76 75 this->bspManager = new BspManager(this); -
branches/new_class_id/src/world_entities/creatures/md2_creature.cc
r9716 r9833 22 22 #include "objModel.h" 23 23 #include "md2/md2Model.h" 24 #include "util/loading/resource_manager.h"25 24 #include "state.h" 26 25 -
branches/new_class_id/src/world_entities/environment.cc
r9716 r9833 19 19 20 20 #include "environment.h" 21 22 #include "util/loading/resource_manager.h"23 21 24 22 #include "objModel.h" -
branches/new_class_id/src/world_entities/environments/mapped_water.cc
r9821 r9833 17 17 #include "util/loading/load_param.h" 18 18 #include "util/loading/factory.h" 19 #include "util/loading/resource_manager.h"20 19 #include "state.h" 21 20 #include "t_animation.h" -
branches/new_class_id/src/world_entities/npcs/generic_npc.cc
r9808 r9833 29 29 #include "resource_sound_buffer.h" 30 30 31 #include "loading/resource_manager.h"32 31 #include "sound/resource_sound_buffer.h" 33 32 -
branches/new_class_id/src/world_entities/recorder.cc
r9727 r9833 18 18 #include "util/loading/load_param.h" 19 19 #include "util/loading/factory.h" 20 #include "util/loading/resource_manager.h"21 20 #include "state.h" 22 21 #include "debug.h" -
branches/new_class_id/src/world_entities/satellite.h
r9715 r9833 9 9 #include "world_entity.h" 10 10 #include "comincl.h" 11 #include "util/loading/resource_manager.h"12 13 11 14 12 class CharacterAttributes; -
branches/new_class_id/src/world_entities/skydome.cc
r9727 r9833 23 23 #include "network_game_manager.h" 24 24 #include "converter.h" 25 #include "util/loading/resource_manager.h"26 25 27 26 #include "debug.h" -
branches/new_class_id/src/world_entities/terrain.cc
r9727 r9833 18 18 #include "terrain.h" 19 19 20 #include "util/loading/new_resource_manager.h" 20 21 #include "util/loading/load_param.h" 21 22 #include "util/loading/factory.h" 22 23 #include "spatial_separation.h" 23 24 24 #include "util/loading/resource_manager.h"25 25 #include "model.h" 26 26 #include "network_game_manager.h" … … 93 93 if( this->ssp) 94 94 delete ssp; 95 if (this->vegetation)96 {97 ResourceManager::getInstance()->unload(this->vegetation);98 }99 95 100 96 if(this->heightMap) … … 148 144 this->heightMap = NULL; 149 145 150 std::string hmName = Resource Manager::getFullName(heightMapFile);151 std::string hmColorName = Resource Manager::getFullName(colorMap);146 std::string hmName = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(heightMapFile); 147 std::string hmColorName = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(colorMap); 152 148 153 149 … … 181 177 PRINTF(4)("loadVegetation: %s\n", vegetationFile.c_str()); 182 178 if (this->vegetation) 183 ResourceManager::getInstance()->unload(this->vegetation, RP_LEVEL);179 this->vegetation = 0; 184 180 if (!vegetationFile.empty()) 185 181 { 186 182 PRINTF(4)("fetching %s\n", vegetationFile.c_str()); 187 this->vegetation = dynamic_cast<Model*>(ResourceManager::getInstance()->load(vegetationFile, OBJ, RP_CAMPAIGN)); 183 this->loadModel(vegetationFile, 1.0, 2); 184 this->vegetation = this->getModel(2); 188 185 } 189 186 else -
branches/new_class_id/src/world_entities/weather_effects/atmospheric_engine.cc
r9760 r9833 15 15 16 16 #include "atmospheric_engine.h" 17 18 #include "util/loading/resource_manager.h"19 17 20 18 #include "weather_effects/fog_effect.h" -
branches/new_class_id/src/world_entities/weather_effects/cloud_effect.cc
r9821 r9833 19 19 #include "util/loading/load_param.h" 20 20 #include "util/loading/factory.h" 21 #include "util/loading/resource_manager.h"22 21 23 22 #include "material.h"
Note: See TracChangeset
for help on using the changeset viewer.