mirror of https://github.com/OpenMW/openmw.git
Merge branch 'master' into dialogue
Conflicts: apps/openmw/CMakeLists.txt apps/openmw/mwclass/creature.cpp apps/openmw/mwclass/creature.hpp apps/openmw/mwclass/npc.cpp apps/openmw/mwclass/npc.hpppull/7/head
commit
d42747e85b
@ -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