Changeset 7339 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Apr 19, 2006, 2:11:14 AM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r7338 r7339 70 70 71 71 SHELL_COMMAND(speed, GameWorld, setSpeed); 72 SHELL_COMMAND(playmode, GameWorld, setPlaymode); 72 73 SHELL_COMMAND_STATIC(togglePNodeVisibility, GameWorld, GameWorld::togglePNodeVisibility); 73 74 SHELL_COMMAND_STATIC(toggleBVVisibility, GameWorld, GameWorld::toggleBVVisibility); … … 284 285 if (this->dataTank->localPlayer && 285 286 this->dataTank->localPlayer->getPlayable() && 286 this->dataTank->localPlayer->getPlayable()->setPlayMode(playmode)) 287 { 288 PRINTF(3)("Set Playmode to %d\n", playmode); 289 } 290 } 291 287 this->dataTank->localPlayer->getPlayable()->setPlaymode(playmode)) 288 { 289 PRINTF(3)("Set Playmode to %d:%s\n", playmode, Playable::playmodeToString(playmode)); 290 } 291 else 292 { 293 PRINTF(1)("Unable to set Playmode %d:%s\n", playmode, Playable::playmodeToString(playmode)); 294 } 295 } 296 297 void GameWorld::setPlaymode(const std::string& playmode) 298 { 299 this->setPlaymode(Playable::stringToPlaymode(playmode)); 300 } 292 301 293 302 /** -
trunk/src/story_entities/game_world.h
r7338 r7339 47 47 48 48 void setPlaymode(Playable::Playmode playmode); 49 void setPlaymode(const std::string& playmode); 49 50 /** this returns the current game time @returns elapsed game time */ 50 51 inline double getGameTime() { return this->gameTime; }
Note: See TracChangeset
for help on using the changeset viewer.