Changeset 7338 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Apr 19, 2006, 1:25:07 AM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r7330 r7338 280 280 281 281 282 void GameWorld::setPlaymode(Playable::Playmode playmode) 283 { 284 if (this->dataTank->localPlayer && 285 this->dataTank->localPlayer->getPlayable() && 286 this->dataTank->localPlayer->getPlayable()->setPlayMode(playmode)) 287 { 288 PRINTF(3)("Set Playmode to %d\n", playmode); 289 } 290 } 291 292 282 293 /** 283 294 * synchronize local data with remote data -
trunk/src/story_entities/game_world.h
r7304 r7338 10 10 #include "story_entity.h" 11 11 #include "game_world_data.h" 12 #include "playable.h" 12 13 13 14 class Shell; … … 45 46 virtual void run(); 46 47 48 void setPlaymode(Playable::Playmode playmode); 47 49 /** this returns the current game time @returns elapsed game time */ 48 50 inline double getGameTime() { return this->gameTime; }
Note: See TracChangeset
for help on using the changeset viewer.