aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/champion.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dm/champion.h')
-rw-r--r--engines/dm/champion.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/dm/champion.h b/engines/dm/champion.h
index 0610f2913d..1a89bc2add 100644
--- a/engines/dm/champion.h
+++ b/engines/dm/champion.h
@@ -35,6 +35,9 @@
namespace DM {
+extern Box gBoxChampionIcons[4]; // @ G0054_ai_Graphic562_Box_ChampionIcons
+extern Color gChampionColor[4]; // @ G0046_auc_Graphic562_ChampionColor
+
class Scent {
uint16 _scent;
public:
@@ -157,7 +160,7 @@ enum ChampionIndex {
kChampionSecond = 1,
kChampionThird = 2,
kChampionFourth = 3,
- kChmpionCloseInventory = 4, // @ C04_CHAMPION_CLOSE_INVENTORY
+ kChampionCloseInventory = 4, // @ C04_CHAMPION_CLOSE_INVENTORY
kChampionSpecialInventory = 5 // @ C05_CHAMPION_SPECIAL_INVENTORY
};
@@ -366,7 +369,7 @@ public:
void setSkillExp(ChampionSkill skill, int32 val) { _skills[skill]._experience = val; }
void setSkillTempExp(ChampionSkill skill, int16 val) { _skills[skill]._temporaryExperience= val; }
- byte getStatistic(ChampionStatisticType type, ChampionStatisticValue valType) { return _statistics[type][valType]; }
+ byte& getStatistic(ChampionStatisticType type, ChampionStatisticValue valType) { return _statistics[type][valType]; }
void setStatistic(ChampionStatisticType type, ChampionStatisticValue valType, byte newVal) { _statistics[type][valType] = newVal; }
uint16 getAttributes() { return _attributes; }
@@ -409,6 +412,10 @@ public:
_actionDefense = _food = _water = _load = _shieldDefense = 0;
memset(_portrait, 0, 464);
}
+ void resetSkillsToZero() {
+ for (int16 i = 0; i < 20; ++i)
+ _skills[i].resetToZero();
+ }
}; // @ CHAMPION_INCLUDING_PORTRAIT
class ChampionMan {