2015-01-05 17:52:37 +00:00
|
|
|
#ifndef OPENMW_MECHANICS_SUMMONING_H
|
|
|
|
#define OPENMW_MECHANICS_SUMMONING_H
|
|
|
|
|
|
|
|
#include <set>
|
|
|
|
|
|
|
|
#include "../mwworld/ptr.hpp"
|
|
|
|
|
2016-06-17 14:07:16 +00:00
|
|
|
#include "magiceffects.hpp"
|
|
|
|
|
2015-01-05 17:52:37 +00:00
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
|
|
|
|
class CreatureStats;
|
|
|
|
|
|
|
|
struct UpdateSummonedCreatures : public EffectSourceVisitor
|
|
|
|
{
|
|
|
|
UpdateSummonedCreatures(const MWWorld::Ptr& actor);
|
2015-02-16 05:41:53 +00:00
|
|
|
virtual ~UpdateSummonedCreatures();
|
2015-01-05 17:52:37 +00:00
|
|
|
|
|
|
|
virtual void visit (MWMechanics::EffectKey key,
|
|
|
|
const std::string& sourceName, const std::string& sourceId, int casterActorId,
|
|
|
|
float magnitude, float remainingTime = -1, float totalTime = -1);
|
|
|
|
|
|
|
|
/// To call after all effect sources have been visited
|
2017-08-18 07:58:28 +00:00
|
|
|
void process(bool cleanup);
|
2015-01-05 17:52:37 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
MWWorld::Ptr mActor;
|
|
|
|
|
|
|
|
std::set<std::pair<int, std::string> > mActiveEffects;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|