aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai.h
diff options
context:
space:
mode:
authorNipun Garg2019-06-25 09:24:05 +0530
committerEugene Sandulenko2019-09-03 17:17:00 +0200
commit69235618f248167f81054eaa599d53b1062f13fc (patch)
tree8a2a7fb1657b3af566bccebf68a25b7ddd918ed4 /engines/hdb/ai.h
parenta65936283d8fd6a8f6cfedf122d0f0c41d5f9e59 (diff)
downloadscummvm-rg350-69235618f248167f81054eaa599d53b1062f13fc.tar.gz
scummvm-rg350-69235618f248167f81054eaa599d53b1062f13fc.tar.bz2
scummvm-rg350-69235618f248167f81054eaa599d53b1062f13fc.zip
HDB: Add _teleporters data
Diffstat (limited to 'engines/hdb/ai.h')
-rw-r--r--engines/hdb/ai.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/engines/hdb/ai.h b/engines/hdb/ai.h
index 7a3038b834..5761fe4506 100644
--- a/engines/hdb/ai.h
+++ b/engines/hdb/ai.h
@@ -36,6 +36,7 @@ enum {
kMaxDeliveries = 5,
kMaxWaypoints = 10,
kMaxActions = 20,
+ kMaxTeleporters = 20,
kMaxAutoActions = 30,
kPlayerMoveSpeed = 4,
kEnemyMoveSpeed = 2,
@@ -573,6 +574,27 @@ struct ActionInfo {
ActionInfo() : x1(0), y1(0), x2(0), y2(0), luaFuncInit(""), luaFuncUse(""), entityName("") {}
};
+struct TeleInfo {
+ uint16 x1, y1;
+ uint16 x2, y2;
+ AIDir dir1;
+ AIDir dir2;
+ uint16 level1, level2;
+ uint16 usable1, usable2;
+ uint16 anim1, anim2;
+ char luaFuncUse1[32];
+ char luaFuncUse2[32];
+
+ TeleInfo() : x1(0), y1(0), x2(0), y2(0), dir1(DIR_NONE), dir2(DIR_NONE), level1(0), level2(0), usable1(0), usable2(0), anim1(0), anim2(0), luaFuncUse1(""), luaFuncUse2("") {}
+};
+
+struct SingleTele {
+ uint16 x, y, level, usable, anim;
+ AIDir dir;
+
+ SingleTele() : x(0), y(0), level(0), usable(0), anim(0), dir(DIR_NONE) {}
+};
+
struct AutoAction {
uint16 x, y;
bool activated;
@@ -953,6 +975,9 @@ public:
ActionInfo _actions[kMaxActions];
+ TeleInfo _teleporters[kMaxTeleporters];
+ int _numTeleporters;
+
AutoAction _autoActions[kMaxAutoActions];
Common::Array<ArrowPath *> *_arrowPaths;