Changeset 9406 in orxonox.OLD for trunk/src/story_entities/game_world_data.cc
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world_data.cc
r9235 r9406 61 61 62 62 63 using namespace std; 63 64 64 65 65 … … 194 194 ErrorMessage GameWorldData::loadWorldEntities(const TiXmlElement* root) 195 195 { 196 196 197 const TiXmlElement* element = root->FirstChildElement("WorldEntities"); 198 bool mouseCaptured = EventHandler::getInstance()->grabbedEvents(); 199 EventHandler::getInstance()->grabEvents(false); 197 200 198 201 if( element == NULL) … … 209 212 BaseObject* created = Factory::fabricate(element); 210 213 if( created != NULL ) 211 PRINTF(4)("Created a %s: %s\n", created->getClass Name(), created->getName());214 PRINTF(4)("Created a %s: %s\n", created->getClassCName(), created->getCName()); 212 215 213 216 //todo do this more elegant … … 233 236 234 237 Playable* playable; 235 const list<BaseObject*>* playableList = ClassList::getList(CL_PLAYABLE);238 const std::list<BaseObject*>* playableList = ClassList::getList(CL_PLAYABLE); 236 239 if (playableList != NULL && !playableList->empty()) 237 240 { … … 262 265 /* init the pnode tree */ 263 266 PNode::getNullParent()->init(); 267 268 EventHandler::getInstance()->grabEvents(mouseCaptured); 264 269 265 270 return ErrorMessage(); … … 284 289 // ClassList::debug( 3, CL_PARENT_NODE); 285 290 // PNode::getNullParent()->debugNode(0); 286 // printf("%s::%s\n", nodeList->front()->getClass Name(), nodeList->front()->getName());291 // printf("%s::%s\n", nodeList->front()->getClassCName(), nodeList->front()->getName()); 287 292 delete nodeList->front(); 288 293 }
Note: See TracChangeset
for help on using the changeset viewer.