An OpenMW mod that lets you play the whole Elder Scrolls III: Morrowind as a top-down isometric game — with full online co-op or MMO modes.
C++
#ifndef GAME_MWWORLD_ACTIONTRAP_H
#define GAME_MWWORLD_ACTIONTRAP_H
#include <string>
#include "action.hpp"
namespace MWWorld
{
class ActionTrap : public Action
{
ESM::RefId mSpellId;
MWWorld::Ptr mTrapSource;
void executeImp(const Ptr& actor) override;
public:
/// @param spellId
/// @param trapSource
ActionTrap(const ESM::RefId& spellId, const Ptr& trapSource)
: Action(false, trapSource)
, mSpellId(spellId)
, mTrapSource(trapSource)
{
}
};
}
#endif