OpenMW
apps/openmw/mwworld/actiontrap.hpp
Go to the documentation of this file.
00001 #ifndef GAME_MWWORLD_ACTIONTRAP_H
00002 #define GAME_MWWORLD_ACTIONTRAP_H
00003 
00004 #include <string>
00005 
00006 #include "action.hpp"
00007 #include "ptr.hpp"
00008 
00009 namespace MWWorld
00010 {
00011     class ActionTrap : public Action
00012     {
00013             std::string mSpellId;
00014             MWWorld::Ptr mTrapSource;
00015 
00016             virtual void executeImp (const Ptr& actor);
00017 
00018         public:
00019 
00023             ActionTrap (const Ptr& actor, const std::string& spellId, const Ptr& trapSource)
00024                 : Action(false, actor), mSpellId(spellId), mTrapSource(trapSource) {}
00025     };
00026 }
00027 
00028 
00029 #endif