openmw-tes3coop/apps/openmw/mwworld/failedaction.cpp

25 lines
441 B
C++
Raw Normal View History

2012-11-17 17:17:08 +00:00
#include "failedaction.hpp"
#include "../mwbase/world.hpp"
namespace MWWorld
{
FailedAction::FailedAction (const std::string& msg) : Action (false)
{
message = msg;
}
FailedAction::FailedAction () : Action (false)
{
}
void FailedAction::executeImp (const Ptr& actor)
{
if ( actor.getRefData().getHandle()=="player" and not(message.empty()))
{
//return a message here
}
}
}