Changeset 1747 for code/trunk/src/orxonox/Orxonox.cc
- Timestamp:
- Sep 9, 2008, 4:25:52 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core3 (added) merged: 1573-1574,1583-1586,1591-1594,1596-1597,1603,1606-1607,1610-1611,1655,1658,1676-1679,1681-1685,1687,1716-1723,1725-1729,1736
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/Orxonox.cc
r1735 r1747 54 54 // core 55 55 #include "core/ConfigFileManager.h" 56 #include "core/Iterator.h" 56 57 #include "core/ConsoleCommand.h" 57 #include "core/Debug.h"58 58 #include "core/Loader.h" 59 59 #include "core/input/InputManager.h" 60 60 #include "core/TclBind.h" 61 61 #include "core/Core.h" 62 #include "util/Debug.h" 62 63 63 64 // audio … … 85 86 namespace orxonox 86 87 { 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); 90 91 91 92 /** … … 181 182 float change = factor / Orxonox::getSingleton()->getTimeFactor(); 182 183 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) 184 185 it->setSpeedFactor(it->getSpeedFactor() * change); 185 186 … … 197 198 { 198 199 #ifdef _DEBUG 199 ConfigFileManager::get Singleton()->setFile(CFT_Settings, "orxonox_d.ini");200 ConfigFileManager::getInstance()->setFile(CFT_Settings, "orxonox_d.ini"); 200 201 #else 201 ConfigFileManager::get Singleton()->setFile(CFT_Settings, "orxonox.ini");202 ConfigFileManager::getInstance()->setFile(CFT_Settings, "orxonox.ini"); 202 203 #endif 203 204 Factory::createClassHierarchy(); … … 442 443 443 444 unsigned long frameCount = 0; 444 445 445 446 // TODO: this would very well fit into a configValue 446 447 const unsigned long refreshTime = 200000; … … 468 469 469 470 // 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) 471 472 it->tick(dt); 472 473 // 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) 474 475 it->tick(dt * this->timefactor_); 475 476
Note: See TracChangeset
for help on using the changeset viewer.