OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
attr.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_ESM_ATTR_H
2 #define OPENMW_ESM_ATTR_H
3 
4 #include <string>
5 
6 namespace ESM {
7 
8 /*
9  * Attribute definitions
10  */
11 
12 struct Attribute
13 {
15  {
16  Strength = 0,
18  Willpower = 2,
19  Agility = 3,
20  Speed = 4,
21  Endurance = 5,
23  Luck = 7,
25  };
26 
28  std::string mName, mDescription;
29 
31  static const std::string sAttributeNames[Length];
32  static const std::string sGmstAttributeIds[Length];
33  static const std::string sGmstAttributeDescIds[Length];
34  static const std::string sAttributeIcons[Length];
35 
36  Attribute(AttributeID id, const std::string &name, const std::string &description)
37  : mId(id)
38  , mName(name)
39  , mDescription(description)
40  {
41  }
42 };
43 }
44 #endif
Definition: attr.hpp:18
static const std::string sAttributeIcons[Length]
Definition: attr.hpp:34
Definition: attr.hpp:22
Definition: attr.hpp:20
static const std::string sGmstAttributeIds[Length]
Definition: attr.hpp:32
Attribute(AttributeID id, const std::string &name, const std::string &description)
Definition: attr.hpp:36
Definition: attr.hpp:17
Definition: attr.hpp:21
std::string mName
Definition: attr.hpp:28
Definition: attr.hpp:16
Definition: attr.hpp:12
static const std::string sAttributeNames[Length]
Definition: attr.hpp:31
std::string mDescription
Definition: attr.hpp:28
Definition: attr.hpp:24
Definition: attr.hpp:19
Definition: attr.hpp:23
static const AttributeID sAttributeIds[Length]
Definition: attr.hpp:30
static const std::string sGmstAttributeDescIds[Length]
Definition: attr.hpp:33
AttributeID
Definition: attr.hpp:14
AttributeID mId
Definition: attr.hpp:27
const char * name
Definition: crashcatcher.cpp:59