diff options
author | Bendegúz Nagy | 2016-06-18 20:45:25 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 6b833550b0371919c9108ceb36c916a7030f9b7c (patch) | |
tree | 83ef60a2b414b1625b0566946b8a1e6635996211 /engines | |
parent | cc6ff27dd34b3c72ecff18aeca08fa6d1f574999 (diff) | |
download | scummvm-rg350-6b833550b0371919c9108ceb36c916a7030f9b7c.tar.gz scummvm-rg350-6b833550b0371919c9108ceb36c916a7030f9b7c.tar.bz2 scummvm-rg350-6b833550b0371919c9108ceb36c916a7030f9b7c.zip |
DM: Add F0388_MENUS_ClearActingChampion
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dm/menus.cpp | 12 | ||||
-rw-r--r-- | engines/dm/menus.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/engines/dm/menus.cpp b/engines/dm/menus.cpp index 4e079e4263..d7948c25e4 100644 --- a/engines/dm/menus.cpp +++ b/engines/dm/menus.cpp @@ -1,5 +1,7 @@ #include "menus.h" #include "gfx.h" +#include "champion.h" +#include "dungeonman.h" namespace DM { @@ -14,5 +16,15 @@ void MenuMan::drawMovementArrows() { disp.blitToScreen(arrowsBitmap, w, 0, 0, dest._x1, dest._x2, dest._y1, dest._y2, kColorNoTransparency); } +void MenuMan::clearActingChampion() { + ChampionMan &cm = *_vm->_championMan; + if (cm._actingChampionOrdinal) { + cm._actingChampionOrdinal--; + cm._champions[cm._actingChampionOrdinal].setAttributeFlag(kChampionAttributeActionHand, true); + warning("MISSING CODE: F0292_CHAMPION_DrawState"); + cm._actingChampionOrdinal = indexToOrdinal(kChampionNone); + _shouldRefreshActionArea = true; + } +} }
\ No newline at end of file diff --git a/engines/dm/menus.h b/engines/dm/menus.h index 6006d7a210..ce6c1667fe 100644 --- a/engines/dm/menus.h +++ b/engines/dm/menus.h @@ -11,6 +11,7 @@ public: bool _shouldRefreshActionArea; // @ G0508_B_RefreshActionArea bool _actionAreaContainsIcons; // @ G0509_B_ActionAreaContainsIcons MenuMan(DMEngine *vm); + void clearActingChampion(); // @ F0388_MENUS_ClearActingChampion void drawMovementArrows(); }; |