aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai.h
diff options
context:
space:
mode:
authorNipun Garg2019-06-27 07:41:28 +0530
committerEugene Sandulenko2019-09-03 17:17:02 +0200
commit86f7991eba8787a4e65758edd389982efbc749b0 (patch)
tree74a05aafb0e2a8bc91b418da5d5044120d85661c /engines/hdb/ai.h
parentc0db320111fc666076239efa4bff48babef1511b (diff)
downloadscummvm-rg350-86f7991eba8787a4e65758edd389982efbc749b0.tar.gz
scummvm-rg350-86f7991eba8787a4e65758edd389982efbc749b0.tar.bz2
scummvm-rg350-86f7991eba8787a4e65758edd389982efbc749b0.zip
HDB: Add _luaList data
Diffstat (limited to 'engines/hdb/ai.h')
-rw-r--r--engines/hdb/ai.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h
index 3fb7945b9b..c76b6d6307 100644
--- a/engines/hdb/ai.h
+++ b/engines/hdb/ai.h
@@ -38,6 +38,7 @@ enum {
kMaxActions = 20,
kMaxTeleporters = 20,
kMaxAutoActions = 30,
+ kMaxLuaEnts = 50,
kPlayerMoveSpeed = 4,
kEnemyMoveSpeed = 2,
kPushMoveSpeed = (kPlayerMoveSpeed >> 1),
@@ -564,6 +565,16 @@ struct Waypoint {
Waypoint() : x(0), y(0), level(0) {}
};
+struct LuaT {
+ uint16 x, y;
+ uint16 value1, value2;
+ char luaFuncInit[32];
+ char luaFuncAction[32];
+ char luaFuncUse[32];
+
+ LuaT() : x(0), y(0), value1(0), value2(0), luaFuncInit(""), luaFuncAction(""), luaFuncUse("") {}
+};
+
struct ActionInfo {
uint16 x1, y1;
uint16 x2, y2;
@@ -1009,6 +1020,9 @@ public:
Tile *_waypointGfx[4]; // Animating waypoint gfx
Tile *_debugQMark;
+ LuaT _luaList[kMaxLuaEnts];
+ int _numLuaList;
+
ActionInfo _actions[kMaxActions];
TeleInfo _teleporters[kMaxTeleporters];