1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-11 00:39:59 +00:00
OpenMW/apps/openmw/mwmechanics/npcstats.hpp

41 lines
1.1 KiB
C++
Raw Normal View History

2010-08-19 10:49:13 +00:00
#ifndef GAME_MWMECHANICS_NPCSTATS_H
#define GAME_MWMECHANICS_NPCSTATS_H
#include <map>
#include <set>
2010-08-19 10:49:13 +00:00
#include "stat.hpp"
#include "drawstate.hpp"
2010-08-19 10:49:13 +00:00
namespace MWMechanics
{
/// \brief Additional stats for NPCs
///
/// For non-NPC-specific stats, see the CreatureStats struct.
///
/// \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;
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;
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