Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10430 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 28, 2007, 1:45:41 AM (18 years ago)
Author:
patrick
Message:

game world show text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world.cc

    r10428 r10430  
    6565CREATE_SCRIPTABLE_CLASS(GameWorld,
    6666                        addMethod("setPlaymode", Executor1<GameWorld, lua_State*,const std::string&>(&GameWorld::setPlaymode))
    67                         ->addMethod("setSoundtrack", Executor1<GameWorld, lua_State*, const std::string&>(&GameWorld::showText))
    68                         ->addMethod("showText", Executor1<GameWorld, lua_State*, const std::string&>(&GameWorld::setSoundtrack))
     67                        ->addMethod("showText", Executor1<GameWorld, lua_State*, const std::string&>(&GameWorld::showText))
     68                        ->addMethod("setSoundtrack", Executor1<GameWorld, lua_State*, const std::string&>(&GameWorld::setSoundtrack))
    6969                        ->addMethod("getStoryID", Executor0ret<StoryEntity, lua_State*, int>(&StoryEntity::getStoryID))
    7070                        ->addMethod("setNextStoryName", Executor1ret<StoryEntity, lua_State*, bool, const std::string&>(&StoryEntity::setNextStoryName))
     
    248248void GameWorld::showText(const std::string& text)
    249249{
    250   if (this->dataTank->localPlayer != NULL)
     250  if ( this->dataTank->localPlayer != NULL)
    251251    this->dataTank->localPlayer->hud().notifyUser(text);
     252  PRINTF(0)("===============\n==========\n========\n");
    252253}
    253254
Note: See TracChangeset for help on using the changeset viewer.