1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00
openmw-tes3mp/apps/openmw/mwmechanics/npcstats.hpp

47 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>
#include <string>
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
class NpcStats
2010-08-19 10:49:13 +00:00
{
DrawState mDrawState;
public:
/// 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;
NpcStats();
DrawState getDrawState() const;
void setDrawState (DrawState state);
2010-08-19 10:49:13 +00:00
};
}
#endif