You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
589 B
C++
29 lines
589 B
C++
#ifndef GAME_MWWORLD_ACTIONTRAP_H
|
|
#define GAME_MWWORLD_ACTIONTRAP_H
|
|
|
|
#include <string>
|
|
|
|
#include "action.hpp"
|
|
#include "ptr.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
|