OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
summoning.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_MECHANICS_SUMMONING_H
2 #define OPENMW_MECHANICS_SUMMONING_H
3 
4 #include <set>
5 
6 #include "../mwworld/ptr.hpp"
7 
8 #include "magiceffects.hpp"
9 
10 namespace MWMechanics
11 {
12 
13  class CreatureStats;
14 
16  {
18  virtual ~UpdateSummonedCreatures();
19 
20  virtual void visit (MWMechanics::EffectKey key,
21  const std::string& sourceName, const std::string& sourceId, int casterActorId,
22  float magnitude, float remainingTime = -1, float totalTime = -1);
23 
25  void process();
26 
27  private:
29 
30  std::set<std::pair<int, std::string> > mActiveEffects;
31  };
32 
33 }
34 
35 #endif
Definition: magiceffects.hpp:73
Definition: summoning.hpp:15
void process()
To call after all effect sources have been visited.
Definition: summoning.cpp:41
UpdateSummonedCreatures(const MWWorld::Ptr &actor)
Definition: summoning.cpp:23
virtual ~UpdateSummonedCreatures()
Definition: summoning.cpp:29
Definition: magiceffects.hpp:17
virtual void visit(MWMechanics::EffectKey key, const std::string &sourceName, const std::string &sourceId, int casterActorId, float magnitude, float remainingTime=-1, float totalTime=-1)
Definition: summoning.cpp:33
std::set< std::pair< int, std::string > > mActiveEffects
Definition: summoning.hpp:30
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
MWWorld::Ptr mActor
Definition: summoning.hpp:28