summaryrefslogtreecommitdiff
path: root/src/playerinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-24 01:30:46 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-24 01:32:02 +0300
commit3da7fa61442364be6713359690a35f89aa8e613a (patch)
tree48a941dbbb0234b897478aa50518112407d08e5b /src/playerinfo.h
parent470aaad15a0f9a08dd12ab34c8602cd93fc57b76 (diff)
downloadmanaverse-3da7fa61442364be6713359690a35f89aa8e613a.tar.gz
manaverse-3da7fa61442364be6713359690a35f89aa8e613a.tar.bz2
manaverse-3da7fa61442364be6713359690a35f89aa8e613a.tar.xz
manaverse-3da7fa61442364be6713359690a35f89aa8e613a.zip
Add support for show quest variables in skills window (evol only)
This allow use pseudo skills controlled by quest variables.
Diffstat (limited to 'src/playerinfo.h')
-rw-r--r--src/playerinfo.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/playerinfo.h b/src/playerinfo.h
index 09699bd6d..8bb3a6f1d 100644
--- a/src/playerinfo.h
+++ b/src/playerinfo.h
@@ -103,12 +103,12 @@ namespace PlayerInfo
/**
* Returns the value of the given attribute.
*/
- int getAttribute(const Attribute id) A_WARN_UNUSED;
+ int getAttribute(const int id) A_WARN_UNUSED;
/**
* Changes the value of the given attribute.
*/
- void setAttribute(const Attribute id, const int value,
+ void setAttribute(const int id, const int value,
const bool notify = true);
// --- Stats ------------------------------------------------------------------
@@ -116,45 +116,45 @@ namespace PlayerInfo
/**
* Returns the base value of the given stat.
*/
- int getStatBase(const Attribute id) A_WARN_UNUSED;
+ int getStatBase(const int id) A_WARN_UNUSED;
/**
* Changes the base value of the given stat.
*/
- void setStatBase(const Attribute id, const int value,
+ void setStatBase(const int id, const int value,
const bool notify = true);
/**
* Returns the modifier for the given stat.
*/
- int getStatMod(const Attribute id) A_WARN_UNUSED;
+ int getStatMod(const int id) A_WARN_UNUSED;
/**
* Changes the modifier for the given stat.
*/
- void setStatMod(const Attribute id, const int value,
+ void setStatMod(const int id, const int value,
const bool notify = true);
/**
* Returns the current effective value of the given stat. Effective is base
* + mod
*/
- int getStatEffective(const Attribute id) A_WARN_UNUSED;
+ int getStatEffective(const int id) A_WARN_UNUSED;
/**
* Changes the level of the given stat.
*/
- void setStatLevel(Attribute id, int value, bool notify = true);
+ void setStatLevel(int id, int value, bool notify = true);
/**
* Returns the experience of the given stat.
*/
- std::pair<int, int> getStatExperience(const Attribute id) A_WARN_UNUSED;
+ std::pair<int, int> getStatExperience(const int id) A_WARN_UNUSED;
/**
* Changes the experience of the given stat.
*/
- void setStatExperience(const Attribute id, const int have,
+ void setStatExperience(const int id, const int have,
const int need, const bool notify = true);
// --- Inventory / Equipment --------------------------------------------------