You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.6 KiB
C++
75 lines
1.6 KiB
C++
#ifndef OPENMW_ESM_CREATURESTATS_H
|
|
#define OPENMW_ESM_CREATURESTATS_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
#include "statstate.hpp"
|
|
|
|
#include "defs.hpp"
|
|
|
|
#include "spellstate.hpp"
|
|
#include "activespells.hpp"
|
|
#include "magiceffects.hpp"
|
|
#include "aisequence.hpp"
|
|
|
|
namespace ESM
|
|
{
|
|
class ESMReader;
|
|
class ESMWriter;
|
|
|
|
// format 0, saved games only
|
|
struct CreatureStats
|
|
{
|
|
StatState<int> mAttributes[8];
|
|
StatState<float> mDynamic[3];
|
|
|
|
MagicEffects mMagicEffects;
|
|
|
|
AiSequence::AiSequence mAiSequence;
|
|
|
|
bool mHasAiSettings;
|
|
StatState<int> mAiSettings[4];
|
|
|
|
std::map<int, int> mSummonedCreatureMap;
|
|
std::vector<int> mSummonGraveyard;
|
|
|
|
ESM::TimeStamp mTradeTime;
|
|
int mGoldPool;
|
|
int mActorId;
|
|
|
|
bool mDead;
|
|
bool mDied;
|
|
bool mMurdered;
|
|
int mFriendlyHits;
|
|
bool mTalkedTo;
|
|
bool mAlarmed;
|
|
bool mAttacked;
|
|
bool mAttackingOrSpell;
|
|
bool mKnockdown;
|
|
bool mKnockdownOneFrame;
|
|
bool mKnockdownOverOneFrame;
|
|
bool mHitRecovery;
|
|
bool mBlock;
|
|
unsigned int mMovementFlags;
|
|
float mAttackStrength;
|
|
float mFallHeight;
|
|
std::string mLastHitObject;
|
|
std::string mLastHitAttemptObject;
|
|
bool mRecalcDynamicStats;
|
|
int mDrawState;
|
|
unsigned char mDeathAnimation;
|
|
|
|
int mLevel;
|
|
|
|
SpellState mSpells;
|
|
ActiveSpells mActiveSpells;
|
|
|
|
void load (ESMReader &esm);
|
|
void save (ESMWriter &esm) const;
|
|
};
|
|
}
|
|
|
|
#endif
|