1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 15:39:02 +00:00
OpenMW/apps/openmw/mwworld/actiontrap.hpp
2019-02-19 18:40:33 +03:00

28 lines
570 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;
virtual void executeImp (const Ptr& actor);
public:
/// @param spellId
/// @param trapSource
ActionTrap (const std::string& spellId, const Ptr& trapSource)
: Action(false, trapSource), mSpellId(spellId), mTrapSource(trapSource) {}
};
}
#endif