Changeset 1594 for code/branches/core3/src/orxonox
- Timestamp:
- Jun 12, 2008, 4:14:21 PM (17 years ago)
- Location:
- code/branches/core3/src/orxonox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core3/src/orxonox/Orxonox.cc
r1591 r1594 85 85 namespace orxonox 86 86 { 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);87 SetConsoleCommandShortcut(Orxonox, exit).keybindMode(KeybindMode::OnPress); 88 SetConsoleCommandShortcut(Orxonox, slomo).accessLevel(AccessLevel::Offline).defaultValue(0, 1.0).axisParamIndex(0).isAxisRelative(false); 89 SetConsoleCommandShortcut(Orxonox, setTimeFactor).accessLevel(AccessLevel::Offline).defaultValue(0, 1.0); 90 90 91 91 /** -
code/branches/core3/src/orxonox/hud/HUD.cc
r1586 r1594 49 49 namespace orxonox 50 50 { 51 SetConsoleCommandShortcut(HUD, cycleNavigationFocus). setAccessLevel(AccessLevel::User);52 SetConsoleCommandShortcut(HUD, releaseNavigationFocus). setAccessLevel(AccessLevel::User);53 SetConsoleCommandShortcut(HUD, toggleFPS). setAccessLevel(AccessLevel::User);54 SetConsoleCommandShortcut(HUD, toggleRenderTime). setAccessLevel(AccessLevel::User);51 SetConsoleCommandShortcut(HUD, cycleNavigationFocus).accessLevel(AccessLevel::User); 52 SetConsoleCommandShortcut(HUD, releaseNavigationFocus).accessLevel(AccessLevel::User); 53 SetConsoleCommandShortcut(HUD, toggleFPS).accessLevel(AccessLevel::User); 54 SetConsoleCommandShortcut(HUD, toggleRenderTime).accessLevel(AccessLevel::User); 55 55 56 56 using namespace Ogre; -
code/branches/core3/src/orxonox/objects/Ambient.cc
r1592 r1594 47 47 namespace orxonox 48 48 { 49 SetConsoleCommand (Ambient, setAmbientLightTest, false).setDefaultValues(ColourValue(1, 1, 1, 1)).setAccessLevel(AccessLevel::Offline);49 SetConsoleCommandAlias(Ambient, setAmbientLightTest, "setAmbientLight", false).defaultValues(ColourValue(1, 1, 1, 1)).accessLevel(AccessLevel::Offline); 50 50 51 51 CreateFactory(Ambient); -
code/branches/core3/src/orxonox/objects/SpaceShip.cc
r1592 r1594 54 54 namespace orxonox 55 55 { 56 SetConsoleCommand(SpaceShip, setMaxSpeedTest, false). setAccessLevel(AccessLevel::Debug);57 SetConsoleCommand(SpaceShip, whereAmI, true). setAccessLevel(AccessLevel::User);58 SetConsoleCommand(SpaceShip, moveLongitudinal, true). setAccessLevel(AccessLevel::User).setDefaultValue(0, 1.0f).setAxisParamIndex(0).setKeybindMode(KeybindMode::OnHold);59 SetConsoleCommand(SpaceShip, moveLateral, true). setAccessLevel(AccessLevel::User).setDefaultValue(0, 1.0f).setAxisParamIndex(0).setKeybindMode(KeybindMode::OnHold);60 SetConsoleCommand(SpaceShip, moveYaw, true). setAccessLevel(AccessLevel::User).setDefaultValue(0, 1.0f).setAxisParamIndex(0).setKeybindMode(KeybindMode::OnHold);61 SetConsoleCommand(SpaceShip, movePitch, true). setAccessLevel(AccessLevel::User).setDefaultValue(0, 1.0f).setAxisParamIndex(0).setKeybindMode(KeybindMode::OnHold);62 SetConsoleCommand(SpaceShip, moveRoll, true). setAccessLevel(AccessLevel::User).setDefaultValue(0, 1.0f).setAxisParamIndex(0).setKeybindMode(KeybindMode::OnHold);63 SetConsoleCommand(SpaceShip, fire, true). setAccessLevel(AccessLevel::User).setKeybindMode(KeybindMode::OnHold);64 SetConsoleCommand Generic(test1, SpaceShip, createConsoleCommand(createFunctor(&SpaceShip::setMaxSpeedTest), "setMaxSpeed"), false).setAccessLevel(AccessLevel::Debug);65 SetConsoleCommand Generic(test2, SpaceShip, createConsoleCommand(createFunctor(&SpaceShip::setMaxSpeedTest), "setMaxBlubber"), false).setAccessLevel(AccessLevel::Debug);66 SetConsoleCommand Generic(test3, SpaceShip, createConsoleCommand(createFunctor(&SpaceShip::setMaxSpeedTest), "setRofl"), false).setAccessLevel(AccessLevel::Debug);56 SetConsoleCommand(SpaceShip, setMaxSpeedTest, false).accessLevel(AccessLevel::Debug); 57 SetConsoleCommand(SpaceShip, whereAmI, true).accessLevel(AccessLevel::User); 58 SetConsoleCommand(SpaceShip, moveLongitudinal, true).accessLevel(AccessLevel::User).defaultValue(0, 1.0f).axisParamIndex(0).keybindMode(KeybindMode::OnHold); 59 SetConsoleCommand(SpaceShip, moveLateral, true).accessLevel(AccessLevel::User).defaultValue(0, 1.0f).axisParamIndex(0).keybindMode(KeybindMode::OnHold); 60 SetConsoleCommand(SpaceShip, moveYaw, true).accessLevel(AccessLevel::User).defaultValue(0, 1.0f).axisParamIndex(0).keybindMode(KeybindMode::OnHold); 61 SetConsoleCommand(SpaceShip, movePitch, true).accessLevel(AccessLevel::User).defaultValue(0, 1.0f).axisParamIndex(0).keybindMode(KeybindMode::OnHold); 62 SetConsoleCommand(SpaceShip, moveRoll, true).accessLevel(AccessLevel::User).defaultValue(0, 1.0f).axisParamIndex(0).keybindMode(KeybindMode::OnHold); 63 SetConsoleCommand(SpaceShip, fire, true).accessLevel(AccessLevel::User).keybindMode(KeybindMode::OnHold); 64 SetConsoleCommandAliasMulti(SpaceShip, setMaxSpeedTest, "setMaxSpeed", 1, false).accessLevel(AccessLevel::Debug); 65 SetConsoleCommandAliasMulti(SpaceShip, setMaxSpeedTest, "setMaxBlubber", 2, false).accessLevel(AccessLevel::Debug); 66 SetConsoleCommandAliasMulti(SpaceShip, setMaxSpeedTest, "setRofl", 3, false).accessLevel(AccessLevel::Debug); 67 67 68 68 CreateFactory(SpaceShip); -
code/branches/core3/src/orxonox/objects/SpaceShipAI.cc
r1591 r1594 44 44 namespace orxonox 45 45 { 46 SetConsoleCommand(SpaceShipAI, createEnemy, true). setDefaultValue(0, 1);47 SetConsoleCommand(SpaceShipAI, killEnemies, true). setDefaultValue(0, 0);46 SetConsoleCommand(SpaceShipAI, createEnemy, true).defaultValue(0, 1); 47 SetConsoleCommand(SpaceShipAI, killEnemies, true).defaultValue(0, 0); 48 48 49 49 CreateFactory(SpaceShipAI);
Note: See TracChangeset
for help on using the changeset viewer.