From d855aa0dab588f2993a4c4f103a4632a9f0ba278 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 1 Feb 2015 11:56:08 -0500 Subject: XEEN: Implemented Character Info dialog --- engines/xeen/party.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'engines/xeen/party.h') diff --git a/engines/xeen/party.h b/engines/xeen/party.h index e00b42476a..b793b5c696 100644 --- a/engines/xeen/party.h +++ b/engines/xeen/party.h @@ -80,8 +80,8 @@ class XeenEngine; class AttributePair { public: - int _permanent; - int _temporary; + uint _permanent; + uint _temporary; public: AttributePair(); void synchronize(Common::Serializer &s); @@ -141,13 +141,15 @@ public: Condition worstCondition() const; - int getAge(bool ignoreTemp) const; + int getAge(bool ignoreTemp = false) const; int getMaxHP() const; int getMaxSP() const; - int getStat(Attribute attrib, bool baseOnly = false) const; + uint getStat(Attribute attrib, bool baseOnly = false) const; + + static int statColor(int amount, int threshold); int statBonus(int statValue) const; @@ -159,11 +161,11 @@ public: bool hasAward(int awardId) const; - int getArmorClass(bool baseOnly) const; + int getArmorClass(bool baseOnly = false) const; int getThievery() const; - int getCurrentLevel() const; + uint getCurrentLevel() const; int itemScan(int itemId) const; @@ -176,6 +178,10 @@ public: uint currentExperienceLevel() const; uint getCurrentExperience() const; + + int getNumSkills() const; + + int getNumAwards() const; }; class Roster: public Common::Array { @@ -247,6 +253,7 @@ public: public: // Other party related runtime data Common::Array _activeParty; + Common::Array _combatParty; int _combatPartyCount; bool _partyDead; bool _newDay; -- cgit v1.2.3