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.
openmw-tes3mp/apps/openmw/mwmechanics/npcstats.hpp

41 lines
1.1 KiB
C++

15 years ago
#ifndef GAME_MWMECHANICS_NPCSTATS_H
#define GAME_MWMECHANICS_NPCSTATS_H
#include <map>
#include <set>
15 years ago
#include "stat.hpp"
#include "drawstate.hpp"
15 years ago
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.
15 years ago
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.
/// \note the faction key must be in lowercase
15 years ago
std::map<std::string, int> mFactionRank;
Stat<float> mSkill[27];
14 years ago
bool mForceRun;
bool mForceSneak;
bool mRun;
14 years ago
bool mSneak;
bool mCombat;
DrawState mDrawState;
14 years ago
NpcStats() : mForceRun (false), mForceSneak (false), mRun (false), mSneak (false),
13 years ago
mCombat (false) , mDrawState(DrawState_Nothing) {}
15 years ago
};
}
#endif