OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
actiontrap.hpp
Go to the documentation of this file.
1 #ifndef GAME_MWWORLD_ACTIONTRAP_H
2 #define GAME_MWWORLD_ACTIONTRAP_H
3 
4 #include <string>
5 
6 #include "action.hpp"
7 #include "ptr.hpp"
8 
9 namespace MWWorld
10 {
11  class ActionTrap : public Action
12  {
13  std::string mSpellId;
15 
16  virtual void executeImp (const Ptr& actor);
17 
18  public:
19 
22  ActionTrap (const std::string& spellId, const Ptr& trapSource)
23  : Action(false, trapSource), mSpellId(spellId), mTrapSource(trapSource) {}
24  };
25 }
26 
27 
28 #endif
Abstract base for actions.
Definition: action.hpp:11
virtual void executeImp(const Ptr &actor)
Definition: actiontrap.cpp:10
ActionTrap(const std::string &spellId, const Ptr &trapSource)
Definition: actiontrap.hpp:22
std::string mSpellId
Definition: actiontrap.hpp:13
Definition: actiontrap.hpp:11
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
MWWorld::Ptr mTrapSource
Definition: actiontrap.hpp:14