Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2008, 4:56:41 PM (16 years ago)
Author:
landauf
Message:
  • added ControllableEntity, the baseclass of all players, vehicles and ships.
  • moved Template to core
  • some changes in Camera
  • added 6 constants to WorldEntity to identify relative directions
  • changed vom Radian to Degree as default angle unit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/objects/gametypes/Gametype.cc

    r1953 r1989  
    122122        this->players_.insert(player);
    123123        this->playerJoined(player);
     124
     125        ControllableEntity* newpawn = this->defaultPawn_.fabricate();
     126        player->startControl(newpawn);
    124127    }
    125128
    126129    void Gametype::removePlayer(PlayerInfo* player)
    127130    {
     131        player->stopControl();
    128132        this->players_.erase(player);
    129133        this->playerLeft(player);
Note: See TracChangeset for help on using the changeset viewer.