Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9406 in orxonox.OLD for trunk/src/story_entities/game_world_data.cc


Ignore:
Timestamp:
Jul 24, 2006, 11:09:47 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the proxy back

merged with commandsvn merge -r9346:HEAD https://svn.orxonox.net/orxonox/branches/proxy .

no conflicts

File:
1 edited

Legend:

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

    r9235 r9406  
    6161
    6262
    63 using namespace std;
     63
    6464
    6565
     
    194194ErrorMessage GameWorldData::loadWorldEntities(const TiXmlElement* root)
    195195{
     196
    196197  const TiXmlElement* element = root->FirstChildElement("WorldEntities");
     198  bool mouseCaptured = EventHandler::getInstance()->grabbedEvents();
     199  EventHandler::getInstance()->grabEvents(false);
    197200
    198201  if( element == NULL)
     
    209212      BaseObject* created = Factory::fabricate(element);
    210213      if( created != NULL )
    211         PRINTF(4)("Created a %s: %s\n", created->getClassName(), created->getName());
     214        PRINTF(4)("Created a %s: %s\n", created->getClassCName(), created->getCName());
    212215
    213216      //todo do this more elegant
     
    233236
    234237  Playable* playable;
    235   const list<BaseObject*>* playableList = ClassList::getList(CL_PLAYABLE);
     238  const std::list<BaseObject*>* playableList = ClassList::getList(CL_PLAYABLE);
    236239  if (playableList != NULL && !playableList->empty())
    237240  {
     
    262265  /* init the pnode tree */
    263266  PNode::getNullParent()->init();
     267
     268  EventHandler::getInstance()->grabEvents(mouseCaptured);
    264269
    265270  return ErrorMessage();
     
    284289      //    ClassList::debug( 3, CL_PARENT_NODE);
    285290      //    PNode::getNullParent()->debugNode(0);
    286       //    printf("%s::%s\n", nodeList->front()->getClassName(), nodeList->front()->getName());
     291      //    printf("%s::%s\n", nodeList->front()->getClassCName(), nodeList->front()->getName());
    287292      delete nodeList->front();
    288293    }
Note: See TracChangeset for help on using the changeset viewer.