OpenMW
components/esm/attr.hpp
Go to the documentation of this file.
00001 #ifndef OPENMW_ESM_ATTR_H
00002 #define OPENMW_ESM_ATTR_H
00003 
00004 #include <string>
00005 
00006 namespace ESM {
00007 
00008 /*
00009  * Attribute definitions
00010  */
00011 
00012 struct Attribute
00013 {
00014     enum AttributeID
00015     {
00016         Strength = 0,
00017         Intelligence = 1,
00018         Willpower = 2,
00019         Agility = 3,
00020         Speed = 4,
00021         Endurance = 5,
00022         Personality = 6,
00023         Luck = 7,
00024         Length
00025     };
00026 
00027     AttributeID mId;
00028     std::string mName, mDescription;
00029 
00030     static const AttributeID sAttributeIds[Length];
00031     static const std::string sAttributeNames[Length];
00032     static const std::string sGmstAttributeIds[Length];
00033     static const std::string sGmstAttributeDescIds[Length];
00034     static const std::string sAttributeIcons[Length];
00035 
00036     Attribute(AttributeID id, const std::string &name, const std::string &description)
00037         : mId(id)
00038         , mName(name)
00039         , mDescription(description)
00040     {
00041     }
00042 };
00043 }
00044 #endif