From b462762ae88e52ba18a0610c62a9dda6ac89d32d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 26 Feb 2013 15:54:29 +0300 Subject: Split skills and stats. --- src/playerinfo.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/playerinfo.h') 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. */ -- cgit v1.2.3-70-g09d2