diff options
author | Strangerke | 2015-12-09 19:53:23 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:33:59 +0100 |
commit | 8e88d3102541683595865b0c9bac59a854c6cdba (patch) | |
tree | c20b7dd03fc9cefe624a4f1d28b72aa24b458a32 /engines/lab/lab.h | |
parent | 4a9286ef2784f7fb73de3f5ce2d8f972b3da9237 (diff) | |
download | scummvm-rg350-8e88d3102541683595865b0c9bac59a854c6cdba.tar.gz scummvm-rg350-8e88d3102541683595865b0c9bac59a854c6cdba.tar.bz2 scummvm-rg350-8e88d3102541683595865b0c9bac59a854c6cdba.zip |
LAB: Move processroom functions to LabEngine
Diffstat (limited to 'engines/lab/lab.h')
-rw-r--r-- | engines/lab/lab.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/lab/lab.h b/engines/lab/lab.h index 4170f09077..b407f319bf 100644 --- a/engines/lab/lab.h +++ b/engines/lab/lab.h @@ -49,6 +49,8 @@ struct InventoryData; struct RoomData; struct Rule; struct TextFont; +struct ViewData; + class Anim; class DisplayMan; class EventManager; @@ -237,6 +239,20 @@ private: bool onFloor(uint16 floorNum); bool getUpFloor(uint16 *floorNum); bool getDownFloor(uint16 *floorNum); + bool checkConditions(int16 *condition); + ViewData *getViewData(uint16 roomNum, uint16 direction); + CloseData *getObject(Common::Point pos, CloseDataPtr closePtr); + CloseDataPtr findClosePtrMatch(CloseDataPtr closePtr, CloseDataPtr closePtrList); + uint16 processArrow(uint16 curDirection, uint16 arrow); + void setCurrentClose(Common::Point pos, CloseDataPtr *closePtrList, bool useAbsoluteCoords); + bool takeItem(uint16 x, uint16 y, CloseDataPtr *closePtrList); + bool doActionRuleSub(int16 action, int16 roomNum, CloseDataPtr closePtr, CloseDataPtr *setCloseList, bool allowDefaults); + bool doActionRule(Common::Point pos, int16 action, int16 roomNum, CloseDataPtr *closePtrList); + bool doOperateRuleSub(int16 itemNum, int16 roomNum, CloseDataPtr closePtr, CloseDataPtr *setCloseList, bool allowDefaults); + bool doOperateRule(Common::Point pos, int16 ItemNum, CloseDataPtr *closePtrList); + bool doGoForward(CloseDataPtr *closePtrList); + bool doTurn(uint16 from, uint16 to, CloseDataPtr *closePtrList); + bool doMainView(CloseDataPtr *closePtrList); public: void doActions(Action *actionList, CloseDataPtr *closePtrList); |