2013-11-13 13:02:15 +00:00
|
|
|
#ifndef GAME_MWWORLD_ACTIONTRAP_H
|
|
|
|
#define GAME_MWWORLD_ACTIONTRAP_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "action.hpp"
|
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
class ActionTrap : public Action
|
|
|
|
{
|
|
|
|
std::string mSpellId;
|
|
|
|
MWWorld::Ptr mTrapSource;
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void executeImp (const Ptr& actor) override;
|
2013-11-13 13:02:15 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
/// @param spellId
|
|
|
|
/// @param trapSource
|
2016-07-10 12:22:48 +00:00
|
|
|
ActionTrap (const std::string& spellId, const Ptr& trapSource)
|
|
|
|
: Action(false, trapSource), mSpellId(spellId), mTrapSource(trapSource) {}
|
2013-11-13 13:02:15 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|