- Timestamp:
- Jan 28, 2007, 1:35:33 AM (18 years ago)
- Location:
- trunk/src
- Files:
-
- 4 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 -
trunk/src/story_entities/game_world.h
r10376 r10428 50 50 virtual void run(); 51 51 52 void showText(const std::string& text); 52 53 void setPlaymode(Playable::Playmode playmode); 53 54 void setPlaymode(const std::string& playmode); -
trunk/src/story_entities/game_world_data.cc
r10400 r10428 416 416 std::string oggFile = Resources::ResourceManager::getInstance()->prependAbsoluteMainPath(name); 417 417 this->music = new OrxSound::OggPlayer(oggFile); 418 if (this->localPlayer != NULL)419 this->localPlayer->hud().notifyUser(std::string("Playing SoundTrack: ") + this->music->artist() + " - " + this->music->title());418 // if (this->localPlayer != NULL) 419 // this->localPlayer->hud().notifyUser(std::string("Playing SoundTrack: ") + this->music->artist() + " - " + this->music->title()); 420 420 421 421 //(OggPlayer*)ResourceManager::getInstance()->load(name, OGG, RP_LEVEL); -
trunk/src/world_entities/cameraman.cc
r10424 r10428 38 38 ->addMethod("detachCurrCamera", Executor0<CameraMan, lua_State*>(&CameraMan::detachCurrCamera)) 39 39 ->addMethod("setCam", Executor1<CameraMan, lua_State*, const std::string&>(&CameraMan::setCam)) 40 ->addMethod("toggl Fade", Executor0<CameraMan, lua_State*>(&CameraMan::togglFade))40 ->addMethod("toggleFade", Executor0<CameraMan, lua_State*>(&CameraMan::togglFade)) 41 41 ->addMethod("initFadeBlack", Executor0<CameraMan, lua_State*>(&CameraMan::initFadeBlack)) 42 42 ->addMethod("getCurrCameraCoorX", Executor0ret<CameraMan, lua_State*,float>(&CameraMan::getCurrCameraCoorX))
Note: See TracChangeset
for help on using the changeset viewer.