aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/party.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-02-01 11:56:08 -0500
committerPaul Gilbert2015-02-01 11:56:08 -0500
commitd855aa0dab588f2993a4c4f103a4632a9f0ba278 (patch)
treed0bdc8ada5eaaabfd9c82d0c2a77092a048daa5c /engines/xeen/party.h
parentd3e3093b035bb0e13492098e3f304474d0886fa4 (diff)
downloadscummvm-rg350-d855aa0dab588f2993a4c4f103a4632a9f0ba278.tar.gz
scummvm-rg350-d855aa0dab588f2993a4c4f103a4632a9f0ba278.tar.bz2
scummvm-rg350-d855aa0dab588f2993a4c4f103a4632a9f0ba278.zip
XEEN: Implemented Character Info dialog
Diffstat (limited to 'engines/xeen/party.h')
-rw-r--r--engines/xeen/party.h19
1 files changed, 13 insertions, 6 deletions
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<Character> {
@@ -247,6 +253,7 @@ public:
public:
// Other party related runtime data
Common::Array<Character> _activeParty;
+ Common::Array<Character *> _combatParty;
int _combatPartyCount;
bool _partyDead;
bool _newDay;