2010-08-06 18:15:46 +02:00
|
|
|
#include "actiontalk.hpp"
|
|
|
|
|
2012-04-23 15:27:03 +02:00
|
|
|
#include "../mwbase/environment.hpp"
|
2017-09-25 21:38:38 +02:00
|
|
|
#include "../mwbase/windowmanager.hpp"
|
2010-08-06 18:15:46 +02:00
|
|
|
|
2019-11-18 12:41:11 +04:00
|
|
|
#include "../mwmechanics/actorutil.hpp"
|
|
|
|
|
2010-08-06 18:15:46 +02:00
|
|
|
namespace MWWorld
|
|
|
|
{
|
2012-09-04 15:38:21 +02:00
|
|
|
ActionTalk::ActionTalk(const Ptr& actor)
|
|
|
|
: Action(false, actor)
|
|
|
|
{
|
|
|
|
}
|
2010-08-06 18:15:46 +02:00
|
|
|
|
2012-07-27 12:00:10 +02:00
|
|
|
void ActionTalk::executeImp(const Ptr& actor)
|
2010-08-06 18:15:46 +02:00
|
|
|
{
|
2019-11-18 12:41:11 +04:00
|
|
|
if (actor == MWMechanics::getPlayer())
|
|
|
|
MWBase::Environment::get().getWindowManager()->pushGuiMode(MWGui::GM_Dialogue, getTarget());
|
2010-08-06 18:15:46 +02:00
|
|
|
}
|
|
|
|
}
|