OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
npcstats.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_NPCSTATS_H
2 #define OPENMW_ESM_NPCSTATS_H
3 
4 #include <string>
5 #include <vector>
6 #include <map>
7 
8 #include "statstate.hpp"
9 
10 namespace ESM
11 {
12  class ESMReader;
13  class ESMWriter;
14 
15  // format 0, saved games only
16 
17  struct NpcStats
18  {
19  struct Faction
20  {
21  bool mExpelled;
22  int mRank;
24 
25  Faction();
26  };
27 
29 
31 
32  std::map<std::string, Faction> mFactions; // lower case IDs
35  int mBounty;
41  std::vector<std::string> mUsedIds; // lower case IDs
43  int mCrimeId;
44 
46  void blank();
47 
48  void load (ESMReader &esm);
49  void save (ESMWriter &esm) const;
50  };
51 }
52 
53 #endif
float mTimeToStartDrowning
Definition: npcstats.hpp:42
void load(ESMReader &esm)
Definition: npcstats.cpp:8
int mRank
Definition: npcstats.hpp:22
std::map< std::string, Faction > mFactions
Definition: npcstats.hpp:32
void blank()
Initialize to default state.
Definition: npcstats.cpp:176
StatState< int > mSkills[27]
Definition: npcstats.hpp:34
int mCrimeId
Definition: npcstats.hpp:43
Definition: esmreader.hpp:21
bool mIsWerewolf
Definition: npcstats.hpp:28
int mWerewolfKills
Definition: npcstats.hpp:37
int mDisposition
Definition: npcstats.hpp:33
Definition: esmwriter.hpp:17
int mSpecIncreases[3]
Definition: npcstats.hpp:40
int mLevelProgress
Definition: npcstats.hpp:38
Definition: npcstats.hpp:19
int mReputation
Definition: npcstats.hpp:36
int mBounty
Definition: npcstats.hpp:35
std::vector< std::string > mUsedIds
Definition: npcstats.hpp:41
int mSkillIncrease[8]
Definition: npcstats.hpp:39
int mReputation
Definition: npcstats.hpp:23
Faction()
Definition: npcstats.cpp:6
bool mExpelled
Definition: npcstats.hpp:21
Definition: npcstats.hpp:17
void save(ESMWriter &esm) const
Definition: npcstats.cpp:120
bool mWerewolfDeprecatedData
Definition: npcstats.hpp:30