mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 12:35:46 +00:00
30 lines
578 B
C++
30 lines
578 B
C++
#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;
|
|
|
|
void executeImp(const Ptr& actor) override;
|
|
|
|
public:
|
|
/// @param spellId
|
|
/// @param trapSource
|
|
ActionTrap(const std::string& spellId, const Ptr& trapSource)
|
|
: Action(false, trapSource)
|
|
, mSpellId(spellId)
|
|
, mTrapSource(trapSource)
|
|
{
|
|
}
|
|
};
|
|
}
|
|
|
|
#endif
|