Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2011, 4:12:27 PM (14 years ago)
Author:
sven
Message:

Spaceships attach now to the dock, fixed DockingController.

Location:
code/branches/dockingsystem2/src/orxonox/infos
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/dockingsystem2/src/orxonox/infos/PlayerInfo.cc

    r8382 r8544  
    213213    }
    214214
     215    void PlayerInfo::pauseControl()
     216    {
     217        ControllableEntity* entity = this->controllableEntity_;
     218
     219        if (!entity)
     220            return;
     221
     222        this->controllableEntity_->getController()->setActive(false);
     223        //this->controllableEntity_->getController()->setControllableEntity(NULL);
     224        this->controllableEntity_->setController(0);
     225    }
     226
    215227    void PlayerInfo::stopTemporaryControl()
    216228    {
  • code/branches/dockingsystem2/src/orxonox/infos/PlayerInfo.h

    r8289 r8544  
    6868            void startControl(ControllableEntity* entity);
    6969            void stopControl();
     70            void pauseControl();
    7071            void startTemporaryControl(ControllableEntity* entity);
    7172            void stopTemporaryControl();
Note: See TracChangeset for help on using the changeset viewer.