added bounty to NpcStats

This commit is contained in:
Marc Zinnschlag 2012-11-09 14:31:38 +01:00
parent 90e679746b
commit 39ff2f06ce
2 changed files with 16 additions and 1 deletions

View file

@ -18,7 +18,7 @@
#include "../mwbase/soundmanager.hpp"
MWMechanics::NpcStats::NpcStats()
: mMovementFlags (0), mDrawState (DrawState_Nothing)
: mMovementFlags (0), mDrawState (DrawState_Nothing), mBounty (0)
, mLevelProgress(0)
{
mSkillIncreases.resize (ESM::Attribute::Length);
@ -238,3 +238,13 @@ bool MWMechanics::NpcStats::hasBeenUsed (const std::string& id) const
{
return mUsedIds.find (id)!=mUsedIds.end();
}
int MWMechanics::NpcStats::getBounty() const
{
return mBounty;
}
void MWMechanics::NpcStats::setBounty (int bounty)
{
mBounty = bounty;
}

View file

@ -45,6 +45,7 @@ namespace MWMechanics
DrawState_ mDrawState;
unsigned int mMovementFlags;
Stat<float> mSkill[27];
int mBounty;
int mLevelProgress; // 0-10
@ -92,6 +93,10 @@ namespace MWMechanics
void flagAsUsed (const std::string& id);
bool hasBeenUsed (const std::string& id) const;
int getBounty() const;
void setBounty (int bounty);
};
}