|
|
|
@ -7,11 +7,14 @@
|
|
|
|
|
#include <apps/openmw/mwmechanics/steering.hpp>
|
|
|
|
|
|
|
|
|
|
#include "../mwbase/environment.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwgui/windowmanagerimp.hpp"
|
|
|
|
|
#include "../mwbase/soundmanager.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwclass/npc.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwdialogue/dialoguemanagerimp.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwgui/windowmanagerimp.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwinput/inputmanagerimp.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../mwmechanics/actor.hpp"
|
|
|
|
@ -289,6 +292,15 @@ void DedicatedPlayer::playAnimation()
|
|
|
|
|
animation.groupname, animation.mode, animation.count, animation.persist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void DedicatedPlayer::playSpeech()
|
|
|
|
|
{
|
|
|
|
|
MWBase::Environment::get().getSoundManager()->say(getPtr(), sound);
|
|
|
|
|
|
|
|
|
|
MWBase::WindowManager *winMgr = MWBase::Environment::get().getWindowManager();
|
|
|
|
|
if (winMgr->getSubtitlesEnabled())
|
|
|
|
|
winMgr->messageBox(MWBase::Environment::get().getDialogueManager()->getVoiceCaption(sound), MWGui::ShowInDialogueMode_Never);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MWWorld::Ptr DedicatedPlayer::getPtr()
|
|
|
|
|
{
|
|
|
|
|
return ptr;
|
|
|
|
|