Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9833 in orxonox.OLD for branches/new_class_id/src/story_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/story_entities
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/story_entities/game_world.cc

    r9823 r9833  
    2020#include "game_world_data.h"
    2121
    22 #include "util/loading/resource_manager.h"
    2322#include "state.h"
    2423
  • branches/new_class_id/src/story_entities/game_world_data.cc

    r9816 r9833  
    2121#include "game_world_data.h"
    2222
    23 #include "util/loading/resource_manager.h"
    2423#include "state.h"
    2524#include "substring.h"
    2625
    2726#include "util/loading/game_loader.h"
     27#include "util/loading/new_resource_manager.h"
    2828
    2929#include "world_entity.h"
     
    301301
    302302  // unload the resources loaded in this Level !!
    303   ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL);
     303  /// FIXME TODO HACK!!
     304//  ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL);
    304305
    305306  if (State::getObjectManager() == this->objectManager)
     
    378379  {
    379380    PRINTF(3)("Setting Sound Track to %s\n", name.c_str());
    380     std::string oggFile = ResourceManager::getFullName(name);
     381    std::string oggFile = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(name);
    381382    this->music = new OrxSound::OggPlayer(oggFile);
    382383    if (this->localPlayer != NULL)
  • branches/new_class_id/src/story_entities/menu/game_menu.cc

    r9716 r9833  
    2525#include "util/loading/load_param.h"
    2626#include "util/loading/factory.h"
    27 #include "util/loading/resource_manager.h"
    2827
    2928#include "graphics_engine.h"
  • branches/new_class_id/src/story_entities/multi_player_world_data.cc

    r9715 r9833  
    1818#include "multi_player_world_data.h"
    1919
    20 #include "util/loading/resource_manager.h"
    2120#include "state.h"
    2221#include "substring.h"
  • branches/new_class_id/src/story_entities/story_entity.cc

    r9729 r9833  
    2222#include "story_entity.h"
    2323
    24 #include "util/loading/load_param.h"
    25 #include "util/loading/resource_manager.h"
     24#include "loading/load_param.h"
     25#include "loading/new_resource_manager.h"
    2626
    2727#include "debug.h"
     
    107107  }
    108108  else
    109     this->loadFile = ResourceManager::getFullName(fileName);
     109    this->loadFile = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(fileName);
    110110
    111111  this->grabWorldInfo();
Note: See TracChangeset for help on using the changeset viewer.