From 17315a4dd71d4f9151724166bb5ddd7fdc0074f7 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 18 Aug 2014 00:29:01 -0400 Subject: ACCESS: Implemented wall checks for pathfinding --- engines/access/room.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'engines/access/room.h') diff --git a/engines/access/room.h b/engines/access/room.h index a90c6e400e..c76bd7021b 100644 --- a/engines/access/room.h +++ b/engines/access/room.h @@ -65,6 +65,12 @@ private: void loadPlayField(int fileNum, int subfile); void commandOff(); + + void swapOrg(); + int calcLR(int yp); + int calcUD(int xp); + + bool checkCode(int v1, int v2); protected: void loadRoomData(const byte *roomData); void setupRoom(); @@ -109,8 +115,6 @@ protected: virtual void mainAreaClick() = 0; public: - void setWallCodes(); - virtual void setIconPalette() {} public: Plotter _plotter; @@ -142,6 +146,10 @@ public: void buildRow(int playY, int screenY); void init4Quads(); + + void setWallCodes(); + + bool codeWalls(); }; class RoomInfo { -- cgit v1.2.3