Changeset 6466 in orxonox.OLD for branches/network/src
- Timestamp:
- Jan 11, 2006, 11:09:48 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/story_entities/multi_player_world_data.cc
r6464 r6466 160 160 } 161 161 } 162 /* clients only spawn the SpaceShip */ 163 /// FIXME it is not said to be a SpaceShip 164 else if( !strcmp( element->Value(), "SpaceShip")) 162 else if( !strcmp( element->Value(), "SpaceShip")) /// FIXME it is not said to be a SpaceShip 165 163 { 166 BaseObject* created = Factory::fabricate(element);164 BaseObject* created = NetworkGameManager::getInstance()->createEntity(element); 167 165 if( created != NULL ) 168 166 PRINTF(1)("Created a %s: %s (%8.u)\n", created->getClassName(), created->getName(), created->getLeafClassID()); 169 167 else 170 PRINTF(1)(" NetworkWorld: could not create this entity\n");168 PRINTF(1)("MultiPlayerWorld: could not create this entity\n"); 171 169 } 172 170 element = element->NextSiblingElement(); … … 179 177 /* create a Player */ 180 178 this->localPlayer = new Player(); 181 Playable* playable;182 const std::list<BaseObject*>* playableList = ClassList::getList(CL_PLAYABLE);183 assert( playableList != NULL);184 185 if (playableList != NULL)186 {187 playable = dynamic_cast<Playable*>(playableList->front());188 this->localPlayer->setControllable(playable);189 }179 // Playable* playable; 180 // const std::list<BaseObject*>* playableList = ClassList::getList(CL_PLAYABLE); 181 // assert( playableList != NULL); 182 // 183 // if (playableList != NULL) 184 // { 185 // playable = dynamic_cast<Playable*>(playableList->front()); 186 // this->localPlayer->setControllable(playable); 187 // } 190 188 191 189 /* init the pnode tree */
Note: See TracChangeset
for help on using the changeset viewer.