Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9833 in orxonox.OLD for branches/new_class_id/src/world_entities


Ignore:
Timestamp:
Sep 26, 2006, 4:59:49 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: almost killed off the old ResourceManager

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  
    1515
    1616#include "bsp_entity.h"
    17 #include "util/loading/resource_manager.h"
    18 #include "util/loading/resource_manager.h"
    1917
    2018#include "debug.h"
     19#include "loading/new_resource_manager.h"
    2120
    2221#include "class_id_DEPRECATED.h"
     
    7271
    7372  // Check wether file exists....
    74   if ( File(ResourceManager::getFullName(name)).exists()  ) {
     73  if ( File(Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(name)).exists()  ) {
    7574
    7675    this->bspManager = new BspManager(this);
  • branches/new_class_id/src/world_entities/creatures/md2_creature.cc

    r9716 r9833  
    2222#include "objModel.h"
    2323#include "md2/md2Model.h"
    24 #include "util/loading/resource_manager.h"
    2524#include "state.h"
    2625
  • branches/new_class_id/src/world_entities/environment.cc

    r9716 r9833  
    1919
    2020#include "environment.h"
    21 
    22 #include "util/loading/resource_manager.h"
    2321
    2422#include "objModel.h"
  • branches/new_class_id/src/world_entities/environments/mapped_water.cc

    r9821 r9833  
    1717#include "util/loading/load_param.h"
    1818#include "util/loading/factory.h"
    19 #include "util/loading/resource_manager.h"
    2019#include "state.h"
    2120#include "t_animation.h"
  • branches/new_class_id/src/world_entities/npcs/generic_npc.cc

    r9808 r9833  
    2929#include "resource_sound_buffer.h"
    3030
    31 #include "loading/resource_manager.h"
    3231#include "sound/resource_sound_buffer.h"
    3332
  • branches/new_class_id/src/world_entities/recorder.cc

    r9727 r9833  
    1818#include "util/loading/load_param.h"
    1919#include "util/loading/factory.h"
    20 #include "util/loading/resource_manager.h"
    2120#include "state.h"
    2221#include "debug.h"
  • branches/new_class_id/src/world_entities/satellite.h

    r9715 r9833  
    99#include "world_entity.h"
    1010#include "comincl.h"
    11 #include "util/loading/resource_manager.h"
    12 
    1311
    1412class CharacterAttributes;
  • branches/new_class_id/src/world_entities/skydome.cc

    r9727 r9833  
    2323#include "network_game_manager.h"
    2424#include "converter.h"
    25 #include "util/loading/resource_manager.h"
    2625
    2726#include "debug.h"
  • branches/new_class_id/src/world_entities/terrain.cc

    r9727 r9833  
    1818#include "terrain.h"
    1919
     20#include "util/loading/new_resource_manager.h"
    2021#include "util/loading/load_param.h"
    2122#include "util/loading/factory.h"
    2223#include "spatial_separation.h"
    2324
    24 #include "util/loading/resource_manager.h"
    2525#include "model.h"
    2626#include "network_game_manager.h"
     
    9393  if( this->ssp)
    9494    delete ssp;
    95   if (this->vegetation)
    96   {
    97     ResourceManager::getInstance()->unload(this->vegetation);
    98   }
    9995
    10096  if(this->heightMap)
     
    148144  this->heightMap = NULL;
    149145
    150   std::string hmName = ResourceManager::getFullName(heightMapFile);
    151   std::string hmColorName = ResourceManager::getFullName(colorMap);
     146  std::string hmName = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(heightMapFile);
     147  std::string hmColorName = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(colorMap);
    152148
    153149
     
    181177  PRINTF(4)("loadVegetation: %s\n", vegetationFile.c_str());
    182178  if (this->vegetation)
    183     ResourceManager::getInstance()->unload(this->vegetation, RP_LEVEL);
     179    this->vegetation = 0;
    184180  if (!vegetationFile.empty())
    185181  {
    186182    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);
    188185  }
    189186  else
  • branches/new_class_id/src/world_entities/weather_effects/atmospheric_engine.cc

    r9760 r9833  
    1515
    1616#include "atmospheric_engine.h"
    17 
    18 #include "util/loading/resource_manager.h"
    1917
    2018#include "weather_effects/fog_effect.h"
  • branches/new_class_id/src/world_entities/weather_effects/cloud_effect.cc

    r9821 r9833  
    1919#include "util/loading/load_param.h"
    2020#include "util/loading/factory.h"
    21 #include "util/loading/resource_manager.h"
    2221
    2322#include "material.h"
Note: See TracChangeset for help on using the changeset viewer.