Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 9, 2008, 4:25:52 AM (16 years ago)
Author:
landauf
Message:

merged core3 back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/Orxonox.cc

    r1735 r1747  
    5454// core
    5555#include "core/ConfigFileManager.h"
     56#include "core/Iterator.h"
    5657#include "core/ConsoleCommand.h"
    57 #include "core/Debug.h"
    5858#include "core/Loader.h"
    5959#include "core/input/InputManager.h"
    6060#include "core/TclBind.h"
    6161#include "core/Core.h"
     62#include "util/Debug.h"
    6263
    6364// audio
     
    8586namespace orxonox
    8687{
    87   SetConsoleCommandShortcut(Orxonox, exit).setKeybindMode(KeybindMode::OnPress);
    88   SetConsoleCommandShortcut(Orxonox, slomo).setAccessLevel(AccessLevel::Offline).setDefaultValue(0, 1.0).setAxisParamIndex(0).setIsAxisRelative(false);
    89   SetConsoleCommandShortcut(Orxonox, setTimeFactor).setAccessLevel(AccessLevel::Offline).setDefaultValue(0, 1.0);
     88  SetConsoleCommandShortcut(Orxonox, exit).keybindMode(KeybindMode::OnPress);
     89  SetConsoleCommandShortcut(Orxonox, slomo).accessLevel(AccessLevel::Offline).defaultValue(0, 1.0).axisParamIndex(0).isAxisRelative(false);
     90  SetConsoleCommandShortcut(Orxonox, setTimeFactor).accessLevel(AccessLevel::Offline).defaultValue(0, 1.0);
    9091
    9192  /**
     
    181182    float change = factor / Orxonox::getSingleton()->getTimeFactor();
    182183    Orxonox::getSingleton()->timefactor_ = factor;
    183     for (Iterator<ParticleInterface> it = ObjectList<ParticleInterface>::begin(); it; ++it)
     184    for (ObjectList<ParticleInterface>::iterator it = ObjectList<ParticleInterface>::begin(); it; ++it)
    184185        it->setSpeedFactor(it->getSpeedFactor() * change);
    185186
     
    197198  {
    198199#ifdef _DEBUG
    199     ConfigFileManager::getSingleton()->setFile(CFT_Settings, "orxonox_d.ini");
     200    ConfigFileManager::getInstance()->setFile(CFT_Settings, "orxonox_d.ini");
    200201#else
    201     ConfigFileManager::getSingleton()->setFile(CFT_Settings, "orxonox.ini");
     202    ConfigFileManager::getInstance()->setFile(CFT_Settings, "orxonox.ini");
    202203#endif
    203204    Factory::createClassHierarchy();
     
    442443
    443444    unsigned long frameCount = 0;
    444    
     445
    445446    // TODO: this would very well fit into a configValue
    446447    const unsigned long refreshTime = 200000;
     
    468469
    469470      // Call those objects that need the real time
    470       for (Iterator<TickableReal> it = ObjectList<TickableReal>::start(); it; ++it)
     471      for (ObjectList<TickableReal>::iterator it = ObjectList<TickableReal>::begin(); it; ++it)
    471472        it->tick(dt);
    472473      // Call the scene objects
    473       for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; ++it)
     474      for (ObjectList<Tickable>::iterator it = ObjectList<Tickable>::begin(); it; ++it)
    474475        it->tick(dt * this->timefactor_);
    475476
Note: See TracChangeset for help on using the changeset viewer.