OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
creaturestats.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_CREATURESTATS_H
2 #define OPENMW_ESM_CREATURESTATS_H
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
8 #include "statstate.hpp"
9 
10 #include "defs.hpp"
11 
12 #include "spellstate.hpp"
13 #include "activespells.hpp"
14 #include "magiceffects.hpp"
15 #include "aisequence.hpp"
16 
17 namespace ESM
18 {
19  class ESMReader;
20  class ESMWriter;
21 
22  // format 0, saved games only
24  {
27 
29 
31 
34 
35  std::map<std::pair<int, std::string>, int> mSummonedCreatureMap;
36  std::vector<int> mSummonGraveyard;
37 
39  int mGoldPool;
40  int mActorId;
41 
42  bool mDead;
44  bool mDied;
45  bool mMurdered;
46  bool mTalkedTo;
47  bool mAlarmed;
48  bool mAttacked;
49  bool mKnockdown;
53  bool mBlock;
54  unsigned int mMovementFlags;
55  float mFallHeight;
56  std::string mLastHitObject;
57  std::string mLastHitAttemptObject;
60  signed char mDeathAnimation;
62 
63  int mLevel;
64 
67 
69  void blank();
70 
71  void load (ESMReader &esm);
72  void save (ESMWriter &esm) const;
73  };
74 }
75 
76 #endif
signed char mDeathAnimation
Definition: creaturestats.hpp:60
Definition: defs.hpp:11
bool mBlock
Definition: creaturestats.hpp:53
ESM::TimeStamp mTradeTime
Definition: creaturestats.hpp:38
StatState< int > mAttributes[8]
Definition: creaturestats.hpp:25
Definition: esmreader.hpp:21
bool mHasAiSettings
Definition: creaturestats.hpp:32
bool mRecalcDynamicStats
Definition: creaturestats.hpp:58
Definition: activespells.hpp:27
int mLevel
Definition: creaturestats.hpp:63
void save(ESMWriter &esm) const
Definition: creaturestats.cpp:132
std::vector< int > mSummonGraveyard
Definition: creaturestats.hpp:36
void load(ESMReader &esm)
Definition: creaturestats.cpp:5
std::string mLastHitAttemptObject
Definition: creaturestats.hpp:57
ActiveSpells mActiveSpells
Definition: creaturestats.hpp:66
MagicEffects mMagicEffects
Definition: creaturestats.hpp:28
bool mDeathAnimationFinished
Definition: creaturestats.hpp:43
std::map< std::pair< int, std::string >, int > mSummonedCreatureMap
Definition: creaturestats.hpp:35
bool mAttacked
Definition: creaturestats.hpp:48
AiSequence::AiSequence mAiSequence
Definition: creaturestats.hpp:30
bool mKnockdownOneFrame
Definition: creaturestats.hpp:50
float mFallHeight
Definition: creaturestats.hpp:55
Definition: esmwriter.hpp:17
int mGoldPool
Definition: creaturestats.hpp:39
bool mAlarmed
Definition: creaturestats.hpp:47
Definition: creaturestats.hpp:23
int mActorId
Definition: creaturestats.hpp:40
SpellState mSpells
Definition: creaturestats.hpp:65
Definition: magiceffects.hpp:12
std::string mLastHitObject
Definition: creaturestats.hpp:56
StatState< float > mDynamic[3]
Definition: creaturestats.hpp:26
Definition: spellstate.hpp:17
bool mTalkedTo
Definition: creaturestats.hpp:46
bool mKnockdown
Definition: creaturestats.hpp:49
Definition: aisequence.hpp:148
unsigned int mMovementFlags
Definition: creaturestats.hpp:54
void blank()
Initialize to default state.
Definition: creaturestats.cpp:237
StatState< int > mAiSettings[4]
Definition: creaturestats.hpp:33
int mDrawState
Definition: creaturestats.hpp:59
bool mHitRecovery
Definition: creaturestats.hpp:52
bool mKnockdownOverOneFrame
Definition: creaturestats.hpp:51
bool mDied
Definition: creaturestats.hpp:44
ESM::TimeStamp mTimeOfDeath
Definition: creaturestats.hpp:61
bool mMurdered
Definition: creaturestats.hpp:45
bool mDead
Definition: creaturestats.hpp:42