Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 19, 2006, 1:25:07 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some Playable-stuff

Location:
trunk/src/story_entities
Files:
2 edited

Legend:

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

    r7330 r7338  
    280280
    281281
     282void 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
    282293/**
    283294 *  synchronize local data with remote data
  • trunk/src/story_entities/game_world.h

    r7304 r7338  
    1010#include "story_entity.h"
    1111#include "game_world_data.h"
     12#include "playable.h"
    1213
    1314class Shell;
     
    4546    virtual void run();
    4647
     48    void setPlaymode(Playable::Playmode playmode);
    4749    /**  this returns the current game time @returns elapsed game time     */
    4850    inline double getGameTime() { return this->gameTime; }
Note: See TracChangeset for help on using the changeset viewer.