2012-07-13 07:41:38 +00:00
|
|
|
#ifndef GAME_MWWORLD_ACTIONAPPLY_H
|
|
|
|
#define GAME_MWWORLD_ACTIONAPPLY_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "action.hpp"
|
|
|
|
|
|
|
|
namespace MWWorld
|
|
|
|
{
|
|
|
|
class ActionApply : public Action
|
|
|
|
{
|
|
|
|
std::string mId;
|
|
|
|
|
2012-07-27 10:00:10 +00:00
|
|
|
virtual void executeImp (const Ptr& actor);
|
2012-07-13 07:41:38 +00:00
|
|
|
|
2012-07-27 10:00:10 +00:00
|
|
|
public:
|
2012-07-13 07:41:38 +00:00
|
|
|
|
2014-06-16 18:23:57 +00:00
|
|
|
ActionApply (const Ptr& object, const std::string& id);
|
2012-07-13 07:41:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class ActionApplyWithSkill : public Action
|
|
|
|
{
|
|
|
|
std::string mId;
|
|
|
|
int mSkillIndex;
|
|
|
|
int mUsageType;
|
|
|
|
|
2012-07-27 10:00:10 +00:00
|
|
|
virtual void executeImp (const Ptr& actor);
|
|
|
|
|
2012-07-13 07:41:38 +00:00
|
|
|
public:
|
|
|
|
|
2014-06-16 18:23:57 +00:00
|
|
|
ActionApplyWithSkill (const Ptr& object, const std::string& id,
|
2012-07-13 07:41:38 +00:00
|
|
|
int skillIndex, int usageType);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|