Changeset 7412 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Apr 28, 2006, 12:03:54 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r7391 r7412 62 62 63 63 64 SHELL_COMMAND(speed, GameWorld, setSpeed); 65 SHELL_COMMAND(playmode, GameWorld, setPlaymode); 64 SHELL_COMMAND(speed, GameWorld, setSpeed) ->describe("set the Speed of the Level"); 65 SHELL_COMMAND(playmode, GameWorld, setPlaymode) 66 ->describe("Set the Playmode of the current Level") 67 ->completionPlugin(0, OrxShell::CompletorStringArray(Playable::playmodeNames, Playable::PlaymodeCount)); 68 66 69 SHELL_COMMAND_STATIC(togglePNodeVisibility, GameWorld, GameWorld::togglePNodeVisibility); 67 70 SHELL_COMMAND_STATIC(toggleBVVisibility, GameWorld, GameWorld::toggleBVVisibility); … … 292 295 this->dataTank->localPlayer->getPlayable()->setPlaymode(playmode)) 293 296 { 294 PRINTF(3)("Set Playmode to %d:%s\n", playmode, Playable::playmodeToString(playmode) );297 PRINTF(3)("Set Playmode to %d:%s\n", playmode, Playable::playmodeToString(playmode).c_str()); 295 298 } 296 299 else 297 300 { 298 PRINTF(1)("Unable to set Playmode %d:%s\n", playmode, Playable::playmodeToString(playmode) );301 PRINTF(1)("Unable to set Playmode %d:%s\n", playmode, Playable::playmodeToString(playmode).c_str()); 299 302 } 300 303 }
Note: See TracChangeset
for help on using the changeset viewer.