2010-08-19 10:49:13 +00:00
|
|
|
#ifndef GAME_MWMECHANICS_NPCSTATS_H
|
|
|
|
#define GAME_MWMECHANICS_NPCSTATS_H
|
|
|
|
|
|
|
|
#include <map>
|
2012-04-07 16:37:41 +00:00
|
|
|
#include <set>
|
2010-08-19 10:49:13 +00:00
|
|
|
|
2010-09-16 08:45:08 +00:00
|
|
|
#include "stat.hpp"
|
2012-04-08 10:25:33 +00:00
|
|
|
#include "drawstate.hpp"
|
2010-09-16 08:45:08 +00:00
|
|
|
|
2010-08-19 10:49:13 +00:00
|
|
|
namespace MWMechanics
|
|
|
|
{
|
|
|
|
/// \brief Additional stats for NPCs
|
|
|
|
///
|
|
|
|
/// For non-NPC-specific stats, see the CreatureStats struct.
|
2012-04-11 17:45:56 +00:00
|
|
|
///
|
2012-04-13 08:49:45 +00:00
|
|
|
/// \note For technical reasons the spell list and the currently selected spell is also handled by
|
|
|
|
/// CreatureStats, even though they are actually NPC stats.
|
2010-08-19 10:49:13 +00:00
|
|
|
|
|
|
|
struct NpcStats
|
|
|
|
{
|
|
|
|
// NPCs other than the player can only have one faction. But for the sake of consistency
|
|
|
|
// we use the same data structure for the PC and the NPCs.
|
2012-05-21 01:10:55 +00:00
|
|
|
/// \note the faction key must be in lowercase
|
2010-08-19 10:49:13 +00:00
|
|
|
std::map<std::string, int> mFactionRank;
|
2010-09-16 08:45:08 +00:00
|
|
|
|
|
|
|
Stat<float> mSkill[27];
|
2011-01-18 09:45:29 +00:00
|
|
|
|
|
|
|
bool mForceRun;
|
|
|
|
bool mForceSneak;
|
2011-02-10 10:08:25 +00:00
|
|
|
bool mRun;
|
2011-01-18 09:45:29 +00:00
|
|
|
bool mSneak;
|
|
|
|
bool mCombat;
|
2012-04-08 10:25:33 +00:00
|
|
|
DrawState mDrawState;
|
2011-01-18 09:45:29 +00:00
|
|
|
|
2011-02-10 10:08:25 +00:00
|
|
|
NpcStats() : mForceRun (false), mForceSneak (false), mRun (false), mSneak (false),
|
2012-04-08 11:25:28 +00:00
|
|
|
mCombat (false) , mDrawState(DrawState_Nothing) {}
|
2010-08-19 10:49:13 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|