Changeset 559 for code/branches
- Timestamp:
- Dec 17, 2007, 2:19:29 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/loader/LevelLoader.cc
r525 r559 128 128 loadingBarHeight_ = tElem->Attribute("height"); 129 129 } 130 131 130 131 132 132 mLoadOverlay = (Ogre::Overlay*)omgr.getByName("Orxonox/LoadingScreenSample"); 133 mLoadOverlay->show(); 133 mLoadOverlay->show(); 134 134 135 135 std::cout << "\n\n\nThis is Orxonox\nthe hottest 3D action shooter ever to exist\n\n\n"; 136 136 std::cout << "Level: " << name() << "\nDescription:" << description() << "\nImage:"<<image()<<"\n\n\n"; 137 137 std::cout << "Backgroundcolor: " << loadingBackgroundColor_ << "\nBackgroundimage:" << loadingBackgroundImage_ << "\n\n\n"; 138 138 139 139 } 140 140 … … 153 153 { 154 154 tElem = tNode->ToElement(); 155 orxonox::BaseObject* obj = ID(tElem->Value())->fabricate(); 156 obj->loadParams(tElem); 155 orxonox::Identifier* id = ID(tElem->Value()); 156 if (id) 157 { 158 orxonox::BaseObject* obj = id->fabricate(); 159 obj->loadParams(tElem); 160 } 161 else 162 { 163 COUT(2) << "Warning: '"<< tElem->Value() <<"' is not a valid classname.\n"; 164 } 157 165 } 158 166 } 159 167 160 168 if (loadElem) 161 169 {
Note: See TracChangeset
for help on using the changeset viewer.