Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Feb 2, 2006, 4:09:46 PM (19 years ago)
Author:
bensch
Message:

trunk: rename of setControllable

Location:
trunk/src/story_entities
Files:
2 edited

Legend:

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

    r6984 r6985  
    230230  {
    231231    playable = dynamic_cast<Playable*>(playableList->front());
    232     this->localPlayer->setControllable(playable);
     232    this->localPlayer->setPlayable(playable);
    233233  }
    234234
  • trunk/src/story_entities/multi_player_world_data.cc

    r6634 r6985  
    179179      {
    180180        playable = dynamic_cast<Playable*>(playableList->front());
    181         this->localPlayer->setControllable(playable);
     181        this->localPlayer->setPlayable(playable);
    182182      }
    183183    }
     
    250250  {
    251251    playable = dynamic_cast<Playable*>(playableList->front());
    252     this->localPlayer->disconnectControllable();
    253     this->localPlayer->setControllable(playable);
     252    this->localPlayer->disconnectPlayable();
     253    this->localPlayer->setPlayable(playable);
    254254    this->toggle = !this->toggle;
    255255  }
     
    257257  {
    258258    playable = dynamic_cast<Playable*>(playableList->back());
    259     this->localPlayer->disconnectControllable();
    260     this->localPlayer->setControllable(playable);
     259    this->localPlayer->disconnectPlayable();
     260    this->localPlayer->setPlayable(playable);
    261261    this->toggle = !this->toggle;
    262262  }
    263263
    264264
    265   Playable* pl = this->localPlayer->getControllable();
     265  Playable* pl = this->localPlayer->getPlayable();
    266266  PRINTF(0)("The current regisered playable is hid: %i\n", pl->getUniqueID());
    267267
Note: See TracChangeset for help on using the changeset viewer.