Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6241 in orxonox.OLD for trunk/src/world_entities/playable.cc


Ignore:
Timestamp:
Dec 21, 2005, 3:36:25 PM (18 years ago)
Author:
bensch
Message:

trunk: merged the spaceshipcontrol back to the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/playable.cc

    r6142 r6241  
    2020#include "event_handler.h"
    2121#include "player.h"
     22#include "state.h"
    2223
    2324
     
    7273    for (ev = this->events.begin(); ev != events.end(); ev++)
    7374      evh->subscribe(player, ES_GAME, (*ev));
    74 
     75    this->enter();
    7576    return true;
    7677  }
     
    9798      evh->unsubscribe( ES_GAME, (*ev));
    9899
     100    this->leave();
    99101    this->currentPlayer = NULL;
    100102    return true;
     
    127129
    128130
     131void  Playable::attachCamera()
     132{
     133       State::getCamera()->setParentSoft(this);
     134       State::getCameraTarget()->setParentSoft(this);
     135
     136}
     137
     138
     139void  Playable::detachCamera()
     140{
     141
     142
     143}
Note: See TracChangeset for help on using the changeset viewer.