2012-11-17 18:17:08 +01:00
|
|
|
#ifndef GAME_MWWORLD_FAILEDACTION_H
|
|
|
|
#define GAME_MWWORLD_FAILEDACTION_H
|
|
|
|
|
|
|
|
#include "action.hpp"
|
|
|
|
#include "ptr.hpp"
|
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
class FailedAction : public Action
|
|
|
|
{
|
2022-08-23 22:14:27 +02:00
|
|
|
std::string_view mMessage;
|
2012-11-17 18:17:08 +01:00
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void executeImp(const Ptr& actor) override;
|
2013-08-08 22:34:53 -07:00
|
|
|
|
|
|
|
public:
|
2022-08-23 22:14:27 +02:00
|
|
|
FailedAction(std::string_view message = {}, const Ptr& target = Ptr());
|
2012-11-17 18:17:08 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2015-03-11 10:54:45 -04:00
|
|
|
#endif
|