OpenMW
|
00001 #ifndef GAME_MWWORLD_ACTIONAPPLY_H 00002 #define GAME_MWWORLD_ACTIONAPPLY_H 00003 00004 #include <string> 00005 00006 #include "action.hpp" 00007 #include "ptr.hpp" 00008 00009 namespace MWWorld 00010 { 00011 class ActionApply : public Action 00012 { 00013 std::string mId; 00014 00015 virtual void executeImp (const Ptr& actor); 00016 00017 public: 00018 00019 ActionApply (const Ptr& target, const std::string& id); 00020 }; 00021 00022 class ActionApplyWithSkill : public Action 00023 { 00024 std::string mId; 00025 int mSkillIndex; 00026 int mUsageType; 00027 00028 virtual void executeImp (const Ptr& actor); 00029 00030 public: 00031 00032 ActionApplyWithSkill (const Ptr& target, const std::string& id, 00033 int skillIndex, int usageType); 00034 }; 00035 } 00036 00037 #endif