2003-09-28 15:50:47 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
2004-01-06 12:45:34 +00:00
|
|
|
* Copyright (C) 2003-2004 The ScummVM project
|
2003-09-28 15:50:47 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*
|
|
|
|
* $Header$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QUEENLOGIC_H
|
|
|
|
#define QUEENLOGIC_H
|
|
|
|
|
2003-12-01 20:48:41 +00:00
|
|
|
#include "common/util.h"
|
2003-10-21 09:05:16 +00:00
|
|
|
#include "queen/defs.h"
|
2003-10-04 11:39:53 +00:00
|
|
|
#include "queen/structs.h"
|
2004-01-05 11:58:20 +00:00
|
|
|
#include "queen/resource.h"
|
2003-09-28 15:50:47 +00:00
|
|
|
|
2003-10-03 19:47:41 +00:00
|
|
|
namespace Queen {
|
2003-10-02 14:44:51 +00:00
|
|
|
|
2003-10-11 10:09:23 +00:00
|
|
|
enum RoomDisplayMode {
|
2003-10-12 13:16:35 +00:00
|
|
|
RDM_FADE_NOJOE = 0, // fade in, no Joe
|
|
|
|
RDM_FADE_JOE = 1, // Joe is to be displayed
|
|
|
|
RDM_NOFADE_JOE = 2, // screen does not dissolve into view
|
|
|
|
RDM_FADE_JOE_XY = 3 // display Joe at the current X, Y coords
|
2003-10-11 10:09:23 +00:00
|
|
|
};
|
2003-10-10 09:19:52 +00:00
|
|
|
|
2003-12-11 10:24:27 +00:00
|
|
|
enum {
|
|
|
|
ZONE_ROOM = 0,
|
|
|
|
ZONE_PANEL = 1
|
|
|
|
};
|
|
|
|
|
|
|
|
enum JoeWalkMode {
|
|
|
|
JWM_NORMAL = 0,
|
|
|
|
JWM_MOVE = 1,
|
|
|
|
JWM_EXECUTE = 2,
|
|
|
|
JWM_SPEAK = 3
|
|
|
|
};
|
|
|
|
|
2003-10-09 09:09:40 +00:00
|
|
|
struct ZoneSlot {
|
|
|
|
bool valid;
|
|
|
|
Box box;
|
|
|
|
};
|
|
|
|
|
2003-12-11 22:16:35 +00:00
|
|
|
class QueenEngine;
|
2004-01-05 11:58:20 +00:00
|
|
|
class Credits;
|
2003-10-09 09:09:40 +00:00
|
|
|
|
2003-10-05 16:07:07 +00:00
|
|
|
class Logic {
|
2003-09-28 15:50:47 +00:00
|
|
|
|
|
|
|
public:
|
2003-12-11 22:16:35 +00:00
|
|
|
Logic(QueenEngine *vm);
|
2004-01-05 11:58:20 +00:00
|
|
|
~Logic();
|
2003-10-02 06:38:58 +00:00
|
|
|
|
2003-10-24 08:55:13 +00:00
|
|
|
uint16 currentRoom() const { return _currentRoom; }
|
2003-11-06 17:54:59 +00:00
|
|
|
void currentRoom(uint16 room) {
|
|
|
|
if (room >= 1 && room <= _numRooms)
|
|
|
|
_currentRoom = room;
|
|
|
|
else
|
|
|
|
error("Invalid room number: %i", room);
|
|
|
|
}
|
2003-11-08 23:45:45 +00:00
|
|
|
|
2003-10-24 08:55:13 +00:00
|
|
|
uint16 oldRoom() const { return _oldRoom; }
|
2003-11-06 17:54:59 +00:00
|
|
|
void oldRoom(uint16 room) {
|
|
|
|
if (room <= _numRooms)
|
|
|
|
_oldRoom = room;
|
|
|
|
else
|
|
|
|
error("Invalid room number: %i", room);
|
|
|
|
}
|
2003-11-08 23:45:45 +00:00
|
|
|
|
2003-10-24 08:55:13 +00:00
|
|
|
uint16 newRoom() const { return _newRoom; }
|
2003-11-06 17:54:59 +00:00
|
|
|
void newRoom(uint16 room) {
|
|
|
|
if (room <= _numRooms)
|
|
|
|
_newRoom = room;
|
|
|
|
else
|
|
|
|
error("Invalid room number: %i", room);
|
|
|
|
}
|
2003-10-16 19:40:29 +00:00
|
|
|
|
2003-12-02 16:49:56 +00:00
|
|
|
ObjectData *objectData(int index) const;
|
2003-12-30 10:46:05 +00:00
|
|
|
uint16 roomData(int room) const { return _roomData[room]; }
|
|
|
|
uint16 objMax(int room) const { return _objMax[room]; }
|
|
|
|
GraphicData *graphicData(int index) const { return &_graphicData[index]; }
|
2003-10-27 15:00:25 +00:00
|
|
|
ItemData *itemData(int index) const { return &_itemData[index]; }
|
2003-11-09 20:50:03 +00:00
|
|
|
uint16 itemDataCount() const { return _numItems; }
|
2003-10-02 14:44:51 +00:00
|
|
|
|
2003-10-12 13:16:35 +00:00
|
|
|
uint16 findBob(uint16 obj);
|
|
|
|
uint16 findFrame(uint16 obj);
|
2003-12-30 10:46:05 +00:00
|
|
|
uint16 objectForPerson(uint16 bobnum) const;
|
2003-11-03 19:52:14 +00:00
|
|
|
WalkOffData *walkOffPointForObject(uint16 obj) const;
|
2003-09-28 15:50:47 +00:00
|
|
|
|
2003-12-30 10:46:05 +00:00
|
|
|
Area *area(int room, int num) const { return &_area[room][num]; }
|
2003-12-02 16:49:56 +00:00
|
|
|
Area *currentRoomArea(int num) const;
|
2003-12-30 10:46:05 +00:00
|
|
|
uint16 areaMax(int room) const { return _areaMax[room]; }
|
|
|
|
uint16 currentRoomAreaMax() const { return _areaMax[_currentRoom]; }
|
|
|
|
uint16 walkOffCount() const { return _numWalkOffs; }
|
|
|
|
WalkOffData *walkOffData(int index) const { return &_walkOffData[index]; }
|
2003-10-25 20:26:50 +00:00
|
|
|
uint16 currentRoomObjMax() const { return _objMax[_currentRoom]; }
|
2003-10-27 15:00:25 +00:00
|
|
|
uint16 currentRoomData() const { return _roomData[_currentRoom]; }
|
2004-01-06 14:21:50 +00:00
|
|
|
GraphicAnim *graphicAnim(int index) const { return &_graphicAnim[index]; }
|
|
|
|
uint16 graphicAnimCount() const { return _numGraphicAnim; }
|
2003-10-27 15:00:25 +00:00
|
|
|
ObjectDescription *objectDescription(uint16 objNum) const { return &_objectDescription[objNum]; }
|
2003-10-31 13:47:28 +00:00
|
|
|
uint16 objectDescriptionCount() const { return _numObjDesc; }
|
2003-12-20 16:54:46 +00:00
|
|
|
uint16 currentRoomSfx() const { return _sfxName[_currentRoom]; }
|
2003-10-02 08:49:38 +00:00
|
|
|
|
2003-11-27 13:49:00 +00:00
|
|
|
uint16 joeFacing() const { return _joe.facing; }
|
|
|
|
uint16 joeX() const { return _joe.x; }
|
|
|
|
uint16 joeY() const { return _joe.y; }
|
|
|
|
JoeWalkMode joeWalk() const { return _joe.walk; }
|
|
|
|
uint16 joeScale() const { return _joe.scale; }
|
|
|
|
uint16 joeCutFacing() const { return _joe.cutFacing; }
|
|
|
|
uint16 joePrevFacing() const { return _joe.prevFacing; }
|
2003-10-07 00:26:04 +00:00
|
|
|
|
2003-12-30 10:46:05 +00:00
|
|
|
void joeFacing(uint16 dir) { _joe.facing = dir; }
|
|
|
|
void joePos(uint16 x, uint16 y) { _joe.x = x; _joe.y = y; }
|
2003-11-15 15:44:50 +00:00
|
|
|
void joeWalk(JoeWalkMode walking);
|
2003-12-30 10:46:05 +00:00
|
|
|
void joeScale(uint16 scale) { _joe.scale = scale; }
|
|
|
|
void joeCutFacing(uint16 dir) { _joe.cutFacing = dir; }
|
|
|
|
void joePrevFacing(uint16 dir) { _joe.prevFacing = dir; }
|
2003-10-07 00:26:04 +00:00
|
|
|
|
2003-11-26 13:53:17 +00:00
|
|
|
const char *joeResponse(int i) const { return _joeResponse[i]; }
|
2003-12-12 10:33:34 +00:00
|
|
|
const char *verbName(Verb v) const { return _verbName[v]; }
|
2003-11-26 13:53:17 +00:00
|
|
|
|
2003-10-04 08:50:48 +00:00
|
|
|
int16 gameState(int index);
|
|
|
|
void gameState(int index, int16 newValue);
|
2003-10-02 08:49:38 +00:00
|
|
|
|
2003-11-09 14:16:46 +00:00
|
|
|
TalkSelected *talkSelected(int index) { return _talkSelected + index; }
|
|
|
|
|
2003-11-06 15:26:44 +00:00
|
|
|
const char *roomName(uint16 roomNum) const {
|
|
|
|
if (roomNum >= 1 && roomNum <= _numRooms)
|
|
|
|
return _roomName[roomNum];
|
|
|
|
else
|
|
|
|
error("Invalid room number: %i", roomNum);
|
|
|
|
}
|
2003-11-08 23:45:45 +00:00
|
|
|
|
2003-10-27 15:00:25 +00:00
|
|
|
const char *objectName(uint16 objNum) const { return _objName[objNum]; }
|
|
|
|
const char *objectTextualDescription(uint16 objNum) const { return _objDescription[objNum]; }
|
2003-10-12 18:44:44 +00:00
|
|
|
|
2003-10-09 09:09:40 +00:00
|
|
|
void zoneSet(uint16 screen, uint16 zone, uint16 x1, uint16 y1, uint16 x2, uint16 y2);
|
|
|
|
void zoneSet(uint16 screen, uint16 zone, const Box& box);
|
2003-10-25 09:11:35 +00:00
|
|
|
uint16 zoneIn(uint16 screen, uint16 x, uint16 y) const;
|
|
|
|
uint16 zoneInArea(uint16 screen, uint16 x, uint16 y) const;
|
2003-10-09 09:09:40 +00:00
|
|
|
void zoneClearAll(uint16 screen);
|
|
|
|
void zoneSetup();
|
2003-10-12 17:38:01 +00:00
|
|
|
void zoneSetupPanel();
|
2003-11-06 08:44:33 +00:00
|
|
|
Box &zoneBox(uint16 screen, uint16 index) { return _zones[screen][index].box; }
|
2003-10-09 09:09:40 +00:00
|
|
|
|
2003-10-11 10:09:23 +00:00
|
|
|
void roomErase();
|
2003-12-30 10:46:05 +00:00
|
|
|
void roomSetupFurniture();
|
|
|
|
void roomSetupObjects();
|
|
|
|
uint16 roomRefreshObject(uint16 obj);
|
2003-11-26 13:53:17 +00:00
|
|
|
void roomSetup(const char *room, int comPanel, bool inCutaway);
|
2003-12-30 10:46:05 +00:00
|
|
|
void roomDisplay(uint16 room, RoomDisplayMode mode, uint16 joeScale, int comPanel, bool inCutaway);
|
2003-10-11 10:09:23 +00:00
|
|
|
|
2003-10-09 09:09:40 +00:00
|
|
|
uint16 findScale(uint16 x, uint16 y);
|
|
|
|
|
2003-10-12 13:16:35 +00:00
|
|
|
int16 entryObj() const { return _entryObj; }
|
|
|
|
void entryObj(int16 obj) { _entryObj = obj; }
|
|
|
|
|
2003-12-11 21:04:02 +00:00
|
|
|
uint16 numFrames() const { return _numFrames; }
|
|
|
|
|
2003-12-30 10:46:05 +00:00
|
|
|
void personSetData(int16 noun, const char *actorName, bool loadBank, Person *pp);
|
|
|
|
uint16 personSetup(uint16 noun, uint16 curImage);
|
|
|
|
uint16 personAllocate(uint16 noun, uint16 curImage);
|
2003-12-11 21:04:02 +00:00
|
|
|
uint16 personFrames(uint16 bobNum) const { return _personFrames[bobNum]; }
|
2003-10-13 14:21:17 +00:00
|
|
|
|
2003-10-23 18:46:04 +00:00
|
|
|
void joeSetupFromBanks(const char *animBank, const char *standBank);
|
2003-10-21 09:05:16 +00:00
|
|
|
|
2003-12-05 13:56:07 +00:00
|
|
|
//! Load the various bobs needed to animate Joe
|
2003-10-14 19:06:44 +00:00
|
|
|
void joeSetup();
|
|
|
|
|
2003-12-05 13:56:07 +00:00
|
|
|
//! Setup Joe at the right place when entering a room
|
2003-10-14 19:06:44 +00:00
|
|
|
ObjectData *joeSetupInRoom(bool autoPosition, uint16 scale);
|
|
|
|
|
|
|
|
uint16 joeFace();
|
2003-12-11 13:26:13 +00:00
|
|
|
void joeGrab(int16 grabState);
|
2003-10-21 09:05:16 +00:00
|
|
|
|
|
|
|
void joeUseDress(bool showCut);
|
|
|
|
void joeUseClothes(bool showCut);
|
|
|
|
void joeUseUnderwear();
|
|
|
|
|
2003-10-27 15:00:25 +00:00
|
|
|
void joeSpeak(uint16 descNum, bool objectType = false);
|
|
|
|
|
2003-11-26 21:46:29 +00:00
|
|
|
void makePersonSpeak(const char *sentence, Person *person, const char *voiceFilePrefix);
|
2003-11-06 08:44:33 +00:00
|
|
|
void dialogue(const char *dlgFile, int personInRoom, char *cutaway);
|
2003-11-02 16:47:31 +00:00
|
|
|
void playCutaway(const char *cutFile, char *next = NULL);
|
2003-10-21 09:05:16 +00:00
|
|
|
|
2003-10-27 15:00:25 +00:00
|
|
|
Verb findVerbUnderCursor(int16 cursorx, int16 cursory) const;
|
|
|
|
uint16 findObjectUnderCursor(int16 cursorx, int16 cursory) const;
|
2003-12-13 20:05:28 +00:00
|
|
|
uint16 findObjectNumber(uint16 zoneNum) const;
|
2003-10-25 20:26:50 +00:00
|
|
|
|
2003-10-31 13:47:28 +00:00
|
|
|
void inventorySetup();
|
|
|
|
uint16 findInventoryItem(int invSlot) const;
|
|
|
|
void inventoryRefresh();
|
2003-11-02 14:49:51 +00:00
|
|
|
int16 previousInventoryItem(int16 start) const;
|
|
|
|
int16 nextInventoryItem(int16 start) const;
|
|
|
|
void removeDuplicateItems();
|
|
|
|
uint16 numItemsInventory() const;
|
2003-10-31 13:47:28 +00:00
|
|
|
void inventoryInsertItem(uint16 itemNum, bool refresh = true);
|
|
|
|
void inventoryDeleteItem(uint16 itemNum, bool refresh = true);
|
|
|
|
void inventoryScroll(uint16 count, bool up);
|
|
|
|
|
|
|
|
//! Copy data from dummy object to object
|
|
|
|
void objectCopy(int dummyObjectIndex, int objectIndex);
|
|
|
|
|
|
|
|
void checkPlayer();
|
|
|
|
|
2003-11-02 16:47:31 +00:00
|
|
|
void customMoveJoe(int facing, uint16 areaNum, uint16 walkDataNum);
|
|
|
|
|
2003-11-04 13:51:36 +00:00
|
|
|
void handlePinnacleRoom();
|
|
|
|
|
2003-10-23 06:44:35 +00:00
|
|
|
void update();
|
|
|
|
|
2003-11-09 21:31:18 +00:00
|
|
|
bool gameSave(uint16 slot, const char *desc);
|
|
|
|
bool gameLoad(uint16 slot);
|
2003-10-25 09:11:35 +00:00
|
|
|
|
2003-12-10 14:19:04 +00:00
|
|
|
//! Ugly hack from original code
|
|
|
|
void sceneReset() { _scene = 0; }
|
|
|
|
|
|
|
|
//! Make a scene
|
|
|
|
void sceneStart();
|
|
|
|
|
|
|
|
//! Stop making a scene
|
|
|
|
void sceneStop();
|
|
|
|
|
2003-12-10 15:36:44 +00:00
|
|
|
void changeRoom();
|
|
|
|
|
2003-12-10 14:19:04 +00:00
|
|
|
void useJournal();
|
|
|
|
|
2003-12-10 20:13:25 +00:00
|
|
|
int talkSpeed() const { return _talkSpeed; }
|
|
|
|
void talkSpeed(int speed) { _talkSpeed = speed; }
|
|
|
|
bool subtitles() const { return _subtitles; }
|
|
|
|
void subtitles(bool enable) { _subtitles = enable; }
|
|
|
|
|
|
|
|
void registerDefaultSettings();
|
|
|
|
void checkOptionSettings();
|
|
|
|
void readOptionSettings();
|
|
|
|
void writeOptionSettings();
|
|
|
|
|
2003-12-29 16:35:08 +00:00
|
|
|
bool preChangeRoom_Demo();
|
|
|
|
bool preChangeRoom_Interview();
|
|
|
|
bool preChangeRoom_Game();
|
|
|
|
|
2003-12-30 10:46:05 +00:00
|
|
|
bool executeSpecialMove_Demo(uint16 sm);
|
|
|
|
bool executeSpecialMove_Interview(uint16 sm);
|
|
|
|
bool executeSpecialMove_Game(uint16 sm);
|
2003-12-10 14:19:04 +00:00
|
|
|
void executeSpecialMove(uint16 sm);
|
|
|
|
|
|
|
|
void asmMakeJoeUseDress();
|
|
|
|
void asmMakeJoeUseNormalClothes();
|
|
|
|
void asmMakeJoeUseUnderwear();
|
|
|
|
void asmSwitchToDressPalette();
|
|
|
|
void asmSwitchToNormalPalette();
|
|
|
|
void asmStartCarAnimation();
|
|
|
|
void asmStopCarAnimation();
|
|
|
|
void asmStartFightAnimation();
|
|
|
|
void asmWaitForFrankPosition();
|
|
|
|
void asmMakeFrankGrowing();
|
|
|
|
void asmMakeRobotGrowing();
|
|
|
|
void asmShrinkRobot();
|
|
|
|
void asmEndGame();
|
|
|
|
void asmPutCameraOnDino();
|
|
|
|
void asmPutCameraOnJoe();
|
2003-12-27 12:58:26 +00:00
|
|
|
void asmAltIntroPanRight();
|
|
|
|
void asmAltIntroPanLeft();
|
2003-12-10 14:19:04 +00:00
|
|
|
void asmSetAzuraInLove();
|
|
|
|
void asmPanRightFromJoe();
|
|
|
|
void asmSetLightsOff();
|
|
|
|
void asmSetLightsOn();
|
|
|
|
void asmSetManequinAreaOn();
|
|
|
|
void asmPanToJoe();
|
|
|
|
void asmTurnGuardOn();
|
|
|
|
void asmPanLeft320To144();
|
|
|
|
void asmSmooch();
|
|
|
|
void asmMakeLightningHitPlane();
|
|
|
|
void asmScaleBlimp();
|
|
|
|
void asmScaleEnding();
|
|
|
|
void asmWaitForCarPosition();
|
|
|
|
void asmShakeScreen();
|
|
|
|
void asmAttemptPuzzle();
|
|
|
|
void asmScaleTitle();
|
|
|
|
void asmPanRightToHugh();
|
|
|
|
void asmMakeWhiteFlash();
|
|
|
|
void asmPanRightToJoeAndRita();
|
|
|
|
void asmPanLeftToBomb();
|
2003-12-29 16:35:08 +00:00
|
|
|
void asmEndDemo();
|
2003-12-30 21:06:22 +00:00
|
|
|
void asmInterviewIntro();
|
|
|
|
void asmEndInterview();
|
2003-12-10 14:19:04 +00:00
|
|
|
|
2004-01-05 11:58:20 +00:00
|
|
|
void startCredits(const char *filename);
|
|
|
|
void stopCredits();
|
|
|
|
|
2003-12-30 10:46:05 +00:00
|
|
|
typedef bool (Logic::*ExecuteSpecialMoveProc)(uint16);
|
2003-12-29 16:35:08 +00:00
|
|
|
typedef bool (Logic::*PreChangeRoomProc)();
|
2003-12-10 14:19:04 +00:00
|
|
|
|
2003-10-26 13:54:26 +00:00
|
|
|
enum {
|
2003-12-30 10:46:05 +00:00
|
|
|
MAX_ZONES_NUMBER = 32,
|
|
|
|
MAX_AREAS_NUMBER = 11,
|
|
|
|
JOE_RESPONSE_MAX = 40,
|
|
|
|
DEFAULT_TALK_SPEED = 7 * 3,
|
|
|
|
GAME_STATE_COUNT = 211,
|
2003-11-09 14:16:46 +00:00
|
|
|
TALK_SELECTED_COUNT = 86
|
2003-10-26 13:54:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
protected:
|
2003-10-25 09:11:35 +00:00
|
|
|
|
|
|
|
void initialise();
|
|
|
|
|
2004-01-05 11:58:20 +00:00
|
|
|
LineReader *_queen2jas;
|
|
|
|
|
2003-09-28 15:50:47 +00:00
|
|
|
uint16 _currentRoom;
|
2003-10-26 13:54:26 +00:00
|
|
|
uint16 _oldRoom;
|
|
|
|
uint16 _newRoom;
|
2003-10-02 08:49:38 +00:00
|
|
|
|
2003-10-26 13:54:26 +00:00
|
|
|
//! Total number of room in game
|
|
|
|
uint16 _numRooms;
|
2003-10-02 08:49:38 +00:00
|
|
|
|
2003-10-26 13:54:26 +00:00
|
|
|
//! First object number in room
|
2003-09-28 15:50:47 +00:00
|
|
|
uint16 *_roomData;
|
2003-10-26 13:54:26 +00:00
|
|
|
|
|
|
|
//! Background music to play in room
|
2003-09-28 15:50:47 +00:00
|
|
|
uint16 *_sfxName;
|
2003-10-26 13:54:26 +00:00
|
|
|
|
|
|
|
//! Number of objects in room
|
2003-10-05 16:07:07 +00:00
|
|
|
int16 *_objMax;
|
2003-10-26 13:54:26 +00:00
|
|
|
|
|
|
|
//! Bounding box of object
|
2003-10-06 13:20:29 +00:00
|
|
|
Box *_objectBox;
|
2003-10-26 13:54:26 +00:00
|
|
|
|
|
|
|
//! Inventory items
|
2003-10-06 13:20:29 +00:00
|
|
|
ItemData *_itemData;
|
2003-10-26 13:54:26 +00:00
|
|
|
uint16 _numItems;
|
|
|
|
|
2003-10-02 14:44:51 +00:00
|
|
|
GraphicData *_graphicData;
|
2003-10-26 13:54:26 +00:00
|
|
|
uint16 _numGraphics;
|
|
|
|
|
2003-10-02 14:44:51 +00:00
|
|
|
ObjectData *_objectData;
|
2003-10-26 13:54:26 +00:00
|
|
|
uint16 _numObjects;
|
|
|
|
|
2003-10-06 13:20:29 +00:00
|
|
|
ObjectDescription *_objectDescription;
|
2003-10-31 13:47:28 +00:00
|
|
|
uint16 _numObjDesc;
|
2003-10-26 13:54:26 +00:00
|
|
|
|
2003-10-12 18:44:44 +00:00
|
|
|
ActorData *_actorData;
|
2003-12-30 10:46:05 +00:00
|
|
|
uint16 _numActors;
|
2003-10-26 13:54:26 +00:00
|
|
|
|
|
|
|
//! Areas in room
|
2003-10-14 12:55:31 +00:00
|
|
|
Area (*_area)[MAX_AREAS_NUMBER];
|
2003-10-26 13:54:26 +00:00
|
|
|
|
|
|
|
//! Number of areas in room
|
|
|
|
int16 *_areaMax;
|
|
|
|
|
|
|
|
//! Walk off point for an object
|
2003-10-06 13:20:29 +00:00
|
|
|
WalkOffData *_walkOffData;
|
2003-10-26 13:54:26 +00:00
|
|
|
uint16 _numWalkOffs;
|
|
|
|
|
2003-10-12 18:44:44 +00:00
|
|
|
FurnitureData *_furnitureData;
|
2003-12-30 10:46:05 +00:00
|
|
|
uint16 _numFurniture;
|
2003-10-26 13:54:26 +00:00
|
|
|
|
2003-10-12 18:44:44 +00:00
|
|
|
GraphicAnim *_graphicAnim;
|
2003-12-30 10:46:05 +00:00
|
|
|
uint16 _numGraphicAnim;
|
2003-10-26 13:54:26 +00:00
|
|
|
|
|
|
|
//! Current areas in room
|
2003-10-09 09:09:40 +00:00
|
|
|
ZoneSlot _zones[2][MAX_ZONES_NUMBER];
|
2003-10-26 13:54:26 +00:00
|
|
|
|
|
|
|
//! Actor position in room is _walkOffData[_entryObj]
|
2003-11-06 21:06:01 +00:00
|
|
|
int16 _entryObj;
|
2003-10-07 00:26:04 +00:00
|
|
|
|
2003-10-26 13:54:26 +00:00
|
|
|
//! Object description (Look At)
|
2003-12-30 10:46:05 +00:00
|
|
|
char **_objDescription;
|
2003-10-31 13:47:28 +00:00
|
|
|
uint16 _numDescriptions;
|
2003-10-26 13:54:26 +00:00
|
|
|
|
2003-12-30 10:46:05 +00:00
|
|
|
char **_objName;
|
2003-10-26 13:54:26 +00:00
|
|
|
uint16 _numNames;
|
|
|
|
|
|
|
|
//! Room name, prefix for data files (PCX, LUM...)
|
2003-12-30 10:46:05 +00:00
|
|
|
char **_roomName;
|
2003-10-26 13:54:26 +00:00
|
|
|
|
2003-12-12 10:33:34 +00:00
|
|
|
char *_verbName[13];
|
|
|
|
|
2003-12-30 10:46:05 +00:00
|
|
|
char *_joeResponse[JOE_RESPONSE_MAX + 1];
|
2003-10-12 18:44:44 +00:00
|
|
|
|
2003-10-26 13:54:26 +00:00
|
|
|
//! Actor animation string
|
|
|
|
char **_aAnim;
|
2003-12-30 10:46:05 +00:00
|
|
|
uint16 _numAAnim;
|
2003-10-26 13:54:26 +00:00
|
|
|
|
|
|
|
//! Actor name
|
|
|
|
char **_aName;
|
2003-12-30 10:46:05 +00:00
|
|
|
uint16 _numAName;
|
2003-10-26 13:54:26 +00:00
|
|
|
|
|
|
|
//! Actor filename
|
|
|
|
char **_aFile;
|
2003-12-30 10:46:05 +00:00
|
|
|
uint16 _numAFile;
|
2003-10-04 08:50:48 +00:00
|
|
|
|
2003-10-07 00:26:04 +00:00
|
|
|
struct {
|
2003-11-27 13:49:00 +00:00
|
|
|
uint16 x, y;
|
|
|
|
uint16 facing, cutFacing, prevFacing;
|
2003-11-15 15:44:50 +00:00
|
|
|
JoeWalkMode walk;
|
2003-11-27 13:49:00 +00:00
|
|
|
uint16 scale;
|
2003-10-07 00:26:04 +00:00
|
|
|
} _joe;
|
|
|
|
|
2003-10-04 08:50:48 +00:00
|
|
|
int16 _gameState[GAME_STATE_COUNT];
|
2003-11-09 14:16:46 +00:00
|
|
|
|
|
|
|
TalkSelected _talkSelected[TALK_SELECTED_COUNT];
|
2003-10-04 08:50:48 +00:00
|
|
|
|
2003-12-30 10:46:05 +00:00
|
|
|
//! Number of animated furniture in current room
|
2003-10-19 18:52:28 +00:00
|
|
|
uint16 _numFurnitureAnimated;
|
|
|
|
|
2003-12-30 10:46:05 +00:00
|
|
|
//! Number of static furniture in current room
|
2003-10-24 08:55:13 +00:00
|
|
|
uint16 _numFurnitureStatic;
|
2003-10-19 18:52:28 +00:00
|
|
|
|
2003-12-30 10:46:05 +00:00
|
|
|
//! Total number of frames for the animated furniture
|
2003-10-19 18:52:28 +00:00
|
|
|
uint16 _numFurnitureAnimatedLen;
|
|
|
|
|
2003-12-30 10:46:05 +00:00
|
|
|
//! Current number of frames unpacked
|
2003-10-19 18:52:28 +00:00
|
|
|
uint16 _numFrames;
|
|
|
|
|
|
|
|
//! Last frame number used for person animation
|
2003-10-13 14:21:17 +00:00
|
|
|
uint16 _personFrames[4];
|
|
|
|
|
2003-10-31 13:47:28 +00:00
|
|
|
//! Inventory items
|
|
|
|
int16 _inventoryItem[4];
|
|
|
|
|
2004-01-02 14:17:42 +00:00
|
|
|
uint8 _puzzleAttemptCount;
|
|
|
|
|
2003-11-08 11:32:32 +00:00
|
|
|
//! scene counter
|
|
|
|
int _scene;
|
|
|
|
|
2003-12-10 20:13:25 +00:00
|
|
|
int _talkSpeed;
|
|
|
|
|
|
|
|
bool _subtitles;
|
|
|
|
|
2003-12-30 10:46:05 +00:00
|
|
|
ExecuteSpecialMoveProc _executeSpecialMove;
|
2003-12-29 16:35:08 +00:00
|
|
|
PreChangeRoomProc _preChangeRoom;
|
|
|
|
|
2003-12-11 22:16:35 +00:00
|
|
|
QueenEngine *_vm;
|
2004-01-05 11:58:20 +00:00
|
|
|
Credits *_credits;
|
2003-09-28 15:50:47 +00:00
|
|
|
};
|
|
|
|
|
2003-11-09 20:50:03 +00:00
|
|
|
|
2003-10-03 19:47:41 +00:00
|
|
|
} // End of namespace Queen
|
|
|
|
|
2003-09-28 15:50:47 +00:00
|
|
|
#endif
|