Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7412 in orxonox.OLD for trunk/src/story_entities


Ignore:
Timestamp:
Apr 28, 2006, 12:03:54 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Another CompletionMode is working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world.cc

    r7391 r7412  
    6262
    6363
    64 SHELL_COMMAND(speed, GameWorld, setSpeed);
    65 SHELL_COMMAND(playmode, GameWorld, setPlaymode);
     64SHELL_COMMAND(speed, GameWorld, setSpeed) ->describe("set the Speed of the Level");
     65SHELL_COMMAND(playmode, GameWorld, setPlaymode)
     66    ->describe("Set the Playmode of the current Level")
     67    ->completionPlugin(0, OrxShell::CompletorStringArray(Playable::playmodeNames, Playable::PlaymodeCount));
     68
    6669SHELL_COMMAND_STATIC(togglePNodeVisibility, GameWorld, GameWorld::togglePNodeVisibility);
    6770SHELL_COMMAND_STATIC(toggleBVVisibility, GameWorld, GameWorld::toggleBVVisibility);
     
    292295      this->dataTank->localPlayer->getPlayable()->setPlaymode(playmode))
    293296  {
    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());
    295298  }
    296299  else
    297300  {
    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());
    299302  }
    300303}
Note: See TracChangeset for help on using the changeset viewer.