diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-03-19 13:07:53 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-03-20 15:09:23 +0100 |
commit | 6c4f42e1b11a0713fa59fcf85e45a24eee5da0f0 (patch) | |
tree | 58debe1de8fa4b1e968e2c107a3535f7c693a961 /src/game-server/attributemanager.h | |
parent | fbcc334baf71ca8735adb66c837f6bb610cba758 (diff) | |
download | manaserv-6c4f42e1b11a0713fa59fcf85e45a24eee5da0f0.tar.gz manaserv-6c4f42e1b11a0713fa59fcf85e45a24eee5da0f0.tar.bz2 manaserv-6c4f42e1b11a0713fa59fcf85e45a24eee5da0f0.tar.xz manaserv-6c4f42e1b11a0713fa59fcf85e45a24eee5da0f0.zip |
Introduced some functions for reading the attributes file
Keeps the code indentation within reasonable limits and makes the
structure easier to follow.
Reviewed-by: Freeyorp
Diffstat (limited to 'src/game-server/attributemanager.h')
-rw-r--r-- | src/game-server/attributemanager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game-server/attributemanager.h b/src/game-server/attributemanager.h index 7e05c914..a26fd6a4 100644 --- a/src/game-server/attributemanager.h +++ b/src/game-server/attributemanager.h @@ -25,6 +25,8 @@ #include <vector> #include <string> +#include "utils/xml.h" + enum ScopeType { BeingScope = 0, @@ -64,6 +66,10 @@ class AttributeManager const std::string *getTagFromInfo(unsigned int, unsigned int) const; private: + void readAttributesFile(); + void readAttributeNode(xmlNodePtr attributeNode); + void readModifierNode(xmlNodePtr modifierNode, int attributeId); + // modifiable, { stackable type, effect type }[] typedef std::pair< bool, std::vector<struct AttributeInfoType> > AttributeInfoMap; |