Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 10, 2008, 2:06:09 AM (16 years ago)
Author:
landauf
Message:
  • Added new XMLPort mode, ExpandObject, which works like LoadObject but doesn't use default values if there are missing parameters. This is used if an object is expanded by templates (like adding CameraPositions).
  • Changed default level to sample3.oxw in objecthierarchy2 branch
  • Small fix with doubly added clients in Level- and PlayerManager
Location:
code/branches/objecthierarchy2/src/orxonox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/LevelManager.cc

    r2171 r2173  
    4242        assert(singletonRef_s == 0);
    4343        singletonRef_s = this;
     44
     45        PlayerManager::getInstance(); // ensure existence of PlayerManager
    4446    }
    4547
  • code/branches/objecthierarchy2/src/orxonox/gamestates/GSLevel.cc

    r2103 r2173  
    5151namespace orxonox
    5252{
    53     SetCommandLineArgument(level, "sample2.oxw").shortcut("l");
     53    SetCommandLineArgument(level, "sample3.oxw").shortcut("l");
    5454
    5555    GSLevel::GSLevel()
  • code/branches/objecthierarchy2/src/orxonox/objects/Level.cc

    r2171 r2173  
    141141    void Level::playerEntered(PlayerInfo* player)
    142142    {
    143         COUT(3) << "player entered level" << std::endl;
     143        COUT(3) << "player entered level (id: " << player->getClientID() << ", name: " << player->getName() << ")" << std::endl;
    144144        player->setGametype(this->getGametype());
    145145    }
     
    147147    void Level::playerLeft(PlayerInfo* player)
    148148    {
    149         COUT(3) << "player left level" << std::endl;
     149        COUT(3) << "player left level (id: " << player->getClientID() << ", name: " << player->getName() << ")" << std::endl;
    150150        player->setGametype(0);
    151151    }
Note: See TracChangeset for help on using the changeset viewer.