Changeset 1001 for code/branches/core2/src/orxonox/objects/Tickable.cc
- Timestamp:
- Apr 8, 2008, 1:51:25 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/objects/Tickable.cc
r871 r1001 1 1 #include "core/CoreIncludes.h" 2 #include "core/ConsoleCommand.h" 2 3 #include "Tickable.h" 3 4 4 5 namespace orxonox 5 6 { 7 ConsoleCommandShortcutExtern(slomo, AccessLevel::Offline).setDefaultValue(0, 1.0); 8 ConsoleCommandShortcutExtern(setTimeFactor, AccessLevel::Offline).setDefaultValue(0, 1.0); 9 10 static float timefactor = 1.0; 11 void slomo(float factor) 12 { 13 setTimeFactor(factor); 14 } 15 void setTimeFactor(float factor) 16 { 17 timefactor = factor; 18 } 19 float getTimeFactor() 20 { 21 return timefactor; 22 } 23 6 24 /** 7 25 @brief Constructor: Registers the object in the Tickable-list
Note: See TracChangeset
for help on using the changeset viewer.