mirror of https://github.com/OpenMW/openmw.git
implemented npc/creature activation (enters dialog gui mode for now)
parent
8e6a765603
commit
09c42589cc
@ -0,0 +1,16 @@
|
||||
|
||||
#include "actiontalk.hpp"
|
||||
|
||||
#include "environment.hpp"
|
||||
|
||||
#include "../mwgui/window_manager.hpp"
|
||||
|
||||
namespace MWWorld
|
||||
{
|
||||
ActionTalk::ActionTalk (const Ptr& actor) : mActor (actor) {}
|
||||
|
||||
void ActionTalk::execute (Environment& environment)
|
||||
{
|
||||
environment.mWindowManager->setMode (MWGui::GM_Dialogue);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
#ifndef GAME_MWWORLD_ACTIONTALK_H
|
||||
#define GAME_MWWORLD_ACTIONTALK_H
|
||||
|
||||
#include "ptr.hpp"
|
||||
#include "action.hpp"
|
||||
|
||||
namespace MWWorld
|
||||
{
|
||||
class ActionTalk : public Action
|
||||
{
|
||||
Ptr mActor;
|
||||
|
||||
public:
|
||||
|
||||
ActionTalk (const Ptr& actor);
|
||||
|
||||
virtual void execute (Environment& environment);
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue