Changeset 10428 in orxonox.OLD for trunk/src/story_entities/game_world.cc
- Timestamp:
- Jan 28, 2007, 1:35:33 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r10379 r10428 65 65 CREATE_SCRIPTABLE_CLASS(GameWorld, 66 66 addMethod("setPlaymode", Executor1<GameWorld, lua_State*,const std::string&>(&GameWorld::setPlaymode)) 67 ->addMethod("setSoundtrack", Executor1<GameWorld, lua_State*, const std::string&>(&GameWorld::setSoundtrack)) 67 ->addMethod("setSoundtrack", Executor1<GameWorld, lua_State*, const std::string&>(&GameWorld::showText)) 68 ->addMethod("showText", Executor1<GameWorld, lua_State*, const std::string&>(&GameWorld::setSoundtrack)) 68 69 ->addMethod("getStoryID", Executor0ret<StoryEntity, lua_State*, int>(&StoryEntity::getStoryID)) 69 70 ->addMethod("setNextStoryName", Executor1ret<StoryEntity, lua_State*, bool, const std::string&>(&StoryEntity::setNextStoryName)) … … 243 244 this->dataTank->music->play(); 244 245 } 246 } 247 248 void GameWorld::showText(const std::string& text) 249 { 250 if (this->dataTank->localPlayer != NULL) 251 this->dataTank->localPlayer->hud().notifyUser(text); 245 252 } 246 253
Note: See TracChangeset
for help on using the changeset viewer.