summaryrefslogtreecommitdiff
path: root/src/playerinfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-26 15:54:29 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-26 15:54:29 +0300
commitb462762ae88e52ba18a0610c62a9dda6ac89d32d (patch)
treedc5d865703fd06b7c9bdc218f74301eec4cf77e0 /src/playerinfo.h
parent5190fe2cdac7c259d96619e4686f8543bdc96af4 (diff)
downloadmanaplus-b462762ae88e52ba18a0610c62a9dda6ac89d32d.tar.gz
manaplus-b462762ae88e52ba18a0610c62a9dda6ac89d32d.tar.bz2
manaplus-b462762ae88e52ba18a0610c62a9dda6ac89d32d.tar.xz
manaplus-b462762ae88e52ba18a0610c62a9dda6ac89d32d.zip
Split skills and stats.
Diffstat (limited to 'src/playerinfo.h')
-rw-r--r--src/playerinfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/playerinfo.h b/src/playerinfo.h
index 8bb3a6f1d..d96e3e126 100644
--- a/src/playerinfo.h
+++ b/src/playerinfo.h
@@ -49,6 +49,7 @@ struct PlayerInfoBackend final
{
IntMap mAttributes;
StatMap mStats;
+ IntMap mSkills;
};
class Equipment;
@@ -111,6 +112,10 @@ namespace PlayerInfo
void setAttribute(const int id, const int value,
const bool notify = true);
+ int getSkillLevel(const int id) A_WARN_UNUSED;
+
+ void setSkillLevel(const int id, const int value);
+
// --- Stats ------------------------------------------------------------------
/**
@@ -169,6 +174,8 @@ namespace PlayerInfo
*/
void clearInventory();
+ void clear();
+
/**
* Changes the inventory item at the given slot.
*/