diff options
author | Paul Gilbert | 2018-04-06 19:11:26 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-04-06 19:11:26 -0400 |
commit | 37b9de6d2564a9170b99711a7dd2327a882a5609 (patch) | |
tree | a982f5e13a57c89c33727392f8e74a21e7c8b17c /engines/xeen/combat.h | |
parent | 70b76dc8deb3f9ac21ad782eba07c8e8dacb6338 (diff) | |
download | scummvm-rg350-37b9de6d2564a9170b99711a7dd2327a882a5609.tar.gz scummvm-rg350-37b9de6d2564a9170b99711a7dd2327a882a5609.tar.bz2 scummvm-rg350-37b9de6d2564a9170b99711a7dd2327a882a5609.zip |
XEEN: Cleanup of monster move check method
Diffstat (limited to 'engines/xeen/combat.h')
-rw-r--r-- | engines/xeen/combat.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/xeen/combat.h b/engines/xeen/combat.h index deefe33874..c3fa987fb1 100644 --- a/engines/xeen/combat.h +++ b/engines/xeen/combat.h @@ -273,9 +273,13 @@ public: /** * Determines whether a given monster can move + * @param pt Monster position + * @param wallShift Shift mask for determining direction being moved + * @param xDiff X Delta for move + * @param yDiff Y Delta for move + * @param monsterId Monster number being tested */ - bool monsterCanMove(const Common::Point &pt, int wallShift, - int v1, int v2, int monsterId); + bool canMonsterMove(const Common::Point &pt, int wallShift, int xDiff, int yDiff, int monsterId); /** * Moves a monster by a given delta amount if it's a valid move |