diff options
author | Bendegúz Nagy | 2016-06-24 01:43:43 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | eddf2f494d3e750519e0d515d97834f05974c3c1 (patch) | |
tree | 2c8d927a1db2822488d2ff58bca96414cca2f18d /engines/dm/champion.h | |
parent | c1abeffecccf5cd6096f3a780f17e1327ee744da (diff) | |
download | scummvm-rg350-eddf2f494d3e750519e0d515d97834f05974c3c1.tar.gz scummvm-rg350-eddf2f494d3e750519e0d515d97834f05974c3c1.tar.bz2 scummvm-rg350-eddf2f494d3e750519e0d515d97834f05974c3c1.zip |
DM: Add F0282_CHAMPION_ProcessCommands160To162_ClickInResurrectReincarnatePanel
Diffstat (limited to 'engines/dm/champion.h')
-rw-r--r-- | engines/dm/champion.h | 11 |
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 { |