Changeset 9757 in orxonox.OLD for branches/new_class_id/src/story_entities
- Timestamp:
- Sep 18, 2006, 10:06:19 PM (18 years ago)
- Location:
- branches/new_class_id/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/story_entities/game_world.cc
r9746 r9757 63 63 #include "script_class.h" 64 64 ObjectListDefinition(GameWorld); 65 CREATE_SCRIPTABLE_CLASS(GameWorld, GameWorld::classID(),65 CREATE_SCRIPTABLE_CLASS(GameWorld, 66 66 addMethod("setPlaymode", Executor1<GameWorld, lua_State*,const std::string&>(&GameWorld::setPlaymode)) 67 67 ->addMethod("setSoundtrack", Executor1<GameWorld, lua_State*, const std::string&>(&GameWorld::setSoundtrack)) -
branches/new_class_id/src/story_entities/game_world_data.cc
r9727 r9757 213 213 214 214 //todo do this more elegant 215 if( element->Value() == "SkyBox" && created->isA(SkyBox:: classID()))215 if( element->Value() == "SkyBox" && created->isA(SkyBox::staticClassID())) 216 216 { 217 217 this->sky = dynamic_cast<WorldEntity*>(created); 218 218 State::setSkyBox(dynamic_cast<SkyBox*>(this->sky)); 219 219 } 220 if( element->Value() == "Terrain" && created->isA(Terrain:: classID()))220 if( element->Value() == "Terrain" && created->isA(Terrain::staticClassID())) 221 221 { 222 222 this->terrain = dynamic_cast<Terrain*>(created); … … 398 398 PRINTF(2)("creating %s\n", element->Value()); 399 399 BaseObject* created = Factory::fabricate(element); 400 if (created != NULL && created->isA(GameRules:: classID()))400 if (created != NULL && created->isA(GameRules::staticClassID())) 401 401 { 402 402 this->gameRule = dynamic_cast<GameRules*>(created);
Note: See TracChangeset
for help on using the changeset viewer.