diff options
author | Przemysław Grzywacz <nexather@gmail.com> | 2013-04-28 16:15:20 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-04-29 22:43:54 +0200 |
commit | 647cebfdf11c2482e5b4bbaad4aa411cdd4bb2cc (patch) | |
tree | ed63cbbde80f2d39175cac4544217ec7d6cdf8e6 /src/game-server/attributemanager.h | |
parent | a8defa22243de756842a78fe36a4b76091915987 (diff) | |
download | manaserv-647cebfdf11c2482e5b4bbaad4aa411cdd4bb2cc.tar.gz manaserv-647cebfdf11c2482e5b4bbaad4aa411cdd4bb2cc.tar.bz2 manaserv-647cebfdf11c2482e5b4bbaad4aa411cdd4bb2cc.tar.xz manaserv-647cebfdf11c2482e5b4bbaad4aa411cdd4bb2cc.zip |
Single xml solution
Mana-mantis: #506.
Diffstat (limited to 'src/game-server/attributemanager.h')
-rw-r--r-- | src/game-server/attributemanager.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/game-server/attributemanager.h b/src/game-server/attributemanager.h index 1a55006c..9bc40e1f 100644 --- a/src/game-server/attributemanager.h +++ b/src/game-server/attributemanager.h @@ -105,8 +105,7 @@ class AttributeManager std::vector<struct AttributeModifier> modifiers; }; - AttributeManager(const std::string &file) : - mAttributeReferenceFile(file) + AttributeManager() {} /** @@ -132,9 +131,11 @@ class AttributeManager const std::string *getTag(const ModifierLocation &location) const; - private: - void readAttributesFile(); void readAttributeNode(xmlNodePtr attributeNode); + + void checkStatus(); + + private: void readModifierNode(xmlNodePtr modifierNode, int attributeId); // Attribute id -> { modifiable, min, max, { stackable type, effect type }[] } @@ -146,8 +147,6 @@ class AttributeManager AttributeScope mAttributeScopes[MaxScope]; AttributeMap mAttributeMap; TagMap mTagMap; - - const std::string mAttributeReferenceFile; }; extern AttributeManager *attributeManager; |