diff options
author | Nipun Garg | 2019-06-25 00:32:23 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:59 +0200 |
commit | 70888532f8d6ab04b612eafe7de0256f0ce39172 (patch) | |
tree | 692894adc22c0fb933e398c6d3ec99ec5edfe8cd /engines/hdb/ai.h | |
parent | 12a677d9007b93893fab0c223a297a5a5c207693 (diff) | |
download | scummvm-rg350-70888532f8d6ab04b612eafe7de0256f0ce39172.tar.gz scummvm-rg350-70888532f8d6ab04b612eafe7de0256f0ce39172.tar.bz2 scummvm-rg350-70888532f8d6ab04b612eafe7de0256f0ce39172.zip |
HDB: Add checkPlayerCollision functions
Diffstat (limited to 'engines/hdb/ai.h')
-rw-r--r-- | engines/hdb/ai.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h index 04c20187d3..9c49e3e14d 100644 --- a/engines/hdb/ai.h +++ b/engines/hdb/ai.h @@ -652,6 +652,10 @@ public: void addAnimateTarget(int x, int y, int start, int end, AnimSpeed speed, bool killAuto, bool inMap, const char *tileName); void animateTargets(); + AIEntity *playerCollision(int topBorder, int bottomBorder, int leftBorder, int rightBorder); + bool checkPlayerTileCollision(int x, int y); + bool checkPlayerCollision(int x, int y, int border); + // List functions void addToActionList(int actionIndex, int x, int y, char *funcLuaInit, char *funcLuaUse); bool checkActionList(AIEntity *e, int x, int y, bool lookAndGrab); |