From 370589dde52b4419e7d1412e9b5cc74a331f980d Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Thu, 8 Jan 2004 16:41:03 +0000 Subject: cleanup, xref update svn-id: r12256 --- queen/logic.h | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) (limited to 'queen/logic.h') diff --git a/queen/logic.h b/queen/logic.h index 14f3cfc869..1a7df1aa39 100644 --- a/queen/logic.h +++ b/queen/logic.h @@ -77,6 +77,14 @@ public: error("Invalid room number: %i", room); } + bool isAltIntroRoom(uint16 room) const { + return room >= 90 && room <= 94; + } + + bool isIntroRoom(uint16 room) const { + return room >= 115 && room <= 125; + } + ObjectData *objectData(int index) const; uint16 roomData(int room) const { return _roomData[room]; } GraphicData *graphicData(int index) const { return &_graphicData[index]; } @@ -183,7 +191,7 @@ public: //! Copy data from dummy object to object void objectCopy(int dummyObjectIndex, int objectIndex); - void handleSpecialArea(int facing, uint16 areaNum, uint16 walkDataNum); + void handleSpecialArea(Direction facing, uint16 areaNum, uint16 walkDataNum); void handlePinnacleRoom(); @@ -207,6 +215,20 @@ public: void executeSpecialMove(uint16 sm); + void startCredits(const char *filename); + void stopCredits(); + + enum { + JOE_RESPONSE_MAX = 40, + DEFAULT_TALK_SPEED = 7 * 3, + GAME_STATE_COUNT = 211, + TALK_SELECTED_COUNT = 86 + }; + +protected: + + void initialise(); + void asmMakeJoeUseDress(); void asmMakeJoeUseNormalClothes(); void asmMakeJoeUseUnderwear(); @@ -248,20 +270,6 @@ public: void asmInterviewIntro(); void asmEndInterview(); - void startCredits(const char *filename); - void stopCredits(); - - enum { - JOE_RESPONSE_MAX = 40, - DEFAULT_TALK_SPEED = 7 * 3, - GAME_STATE_COUNT = 211, - TALK_SELECTED_COUNT = 86 - }; - -protected: - - void initialise(); - virtual bool preChangeRoom() = 0; virtual bool handleSpecialMove(uint16 sm) = 0; -- cgit v1.2.3