summaryrefslogtreecommitdiff
path: root/src/game-server/attributemanager.h
AgeCommit message (Collapse)AuthorFilesLines
2012-02-02Added a way to specify the min and max attributes values.Yohann Ferreira1-9/+53
This can now be done in attributes.xml through the minimum and maximum attribute parameters. I also changed the AttributeInfo struct as requested by bjorn. Reviewed-by: Erik Schilling, Thorbjørn Lindeijer
2011-03-20Introduced ModifierLocation structThorbjørn Lindeijer1-10/+28
Easier to understand than a std::pair<unsigned int, unsigned int>, or functions like getTagFromInfo(unsigned int, unsigned int), which does not make clear what that "info" actually is. Now it's simply getTag(const ModifierLocation &location), documenting itself and also allowing the name to be shorter. Reviewed-by: Freeyorp
2011-03-20Introduced some functions for reading the attributes fileThorbjørn Lindeijer1-0/+6
Keeps the code indentation within reasonable limits and makes the structure easier to follow. Reviewed-by: Freeyorp
2011-03-20Renaming stuff to make the code more readableThorbjørn Lindeijer1-11/+15
SCOPE_TYPES -> ScopeType (plural was confusing) ATTR_BEING -> BeingScope ATTR_CHAR -> CharacterScope ATTR_MOD -> MonsterScope ATTR_MAX -> MaxScope AttributeScopes -> AttributeScope (A single scope seems to include multiple lists of attributes. Seems wrong to me to name this type in plural form.) getAttributeInfoForType -> getAttributeScope (just naming it after what it is actually returning) Reviewed-by: Freeyorp
2010-11-14Renamed .hpp files into .h for consistency.Yohann Ferreira1-0/+83
Also added an header to the autoattack.{h,cpp} files. Big but trivial fix.