From 7e0a97d2521b9ce57003176e82a0b5564aa003c2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Jul 2012 23:26:59 +0300 Subject: Fix more code style and additional warnings. --- src/playerinfo.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/playerinfo.h') diff --git a/src/playerinfo.h b/src/playerinfo.h index 4298a45b5..36a8bb799 100644 --- a/src/playerinfo.h +++ b/src/playerinfo.h @@ -103,55 +103,56 @@ namespace PlayerInfo /** * Returns the value of the given attribute. */ - int getAttribute(int id); + int getAttribute(Attribute id); /** * Changes the value of the given attribute. */ - void setAttribute(int id, int value, bool notify = true); + void setAttribute(Attribute id, int value, bool notify = true); // --- Stats ------------------------------------------------------------------ /** * Returns the base value of the given stat. */ - int getStatBase(int id); + int getStatBase(Attribute id); /** * Changes the base value of the given stat. */ - void setStatBase(int id, int value, bool notify = true); + void setStatBase(Attribute id, int value, bool notify = true); /** * Returns the modifier for the given stat. */ - int getStatMod(int id); + int getStatMod(Attribute id); /** * Changes the modifier for the given stat. */ - void setStatMod(int id, int value, bool notify = true); + void setStatMod(Attribute id, int value, bool notify = true); /** * Returns the current effective value of the given stat. Effective is base * + mod */ - int getStatEffective(int id); + int getStatEffective(Attribute id); /** * Changes the level of the given stat. */ - void setStatLevel(int id, int value, bool notify = true); + void setStatLevel(Attribute id, int value, bool notify = true); /** * Returns the experience of the given stat. */ - std::pair getStatExperience(int id); + std::pair getStatExperience(Attribute id); /** * Changes the experience of the given stat. */ - void setStatExperience(int id, int have, int need, bool notify = true); + void setStatExperience(Attribute id, int have, + int need, bool notify = true); // --- Inventory / Equipment -------------------------------------------------- -- cgit v1.2.3-60-g2f50