2014-10-06 12:50:05 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
2021-12-26 17:47:58 +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 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2014-10-06 12:50:05 +00:00
|
|
|
*
|
|
|
|
* 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
|
2021-12-26 17:47:58 +00:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2014-10-06 12:50:05 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This code is based on Labyrinth of Time code with assistance of
|
|
|
|
*
|
|
|
|
* Copyright (c) 1993 Terra Nova Development
|
|
|
|
* Copyright (c) 2004 The Wyrmkeep Entertainment Co.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2015-12-07 23:36:16 +00:00
|
|
|
#ifndef LAB_PROCESSROOM_H
|
|
|
|
#define LAB_PROCESSROOM_H
|
2015-12-01 00:16:15 +00:00
|
|
|
|
2014-10-06 12:50:05 +00:00
|
|
|
namespace Lab {
|
|
|
|
|
2015-12-22 23:32:12 +00:00
|
|
|
enum ActionType {
|
|
|
|
kActionPlaySound = 1,
|
|
|
|
kActionPlaySoundLooping = 2,
|
|
|
|
kActionShowDiff = 3,
|
|
|
|
kActionShowDiffLooping = 4,
|
|
|
|
kActionLoadDiff = 5,
|
2015-12-23 21:07:40 +00:00
|
|
|
kActionLoadBitmap = 6, // unused
|
|
|
|
kActionShowBitmap = 7, // unused
|
2015-12-22 23:32:12 +00:00
|
|
|
kActionTransition = 8,
|
|
|
|
kActionNoUpdate = 9,
|
|
|
|
kActionForceUpdate = 10,
|
|
|
|
kActionShowCurPict = 11,
|
|
|
|
kActionSetElement = 12,
|
|
|
|
kActionUnsetElement = 13,
|
|
|
|
kActionShowMessage = 14,
|
|
|
|
kActionShowMessages = 15,
|
|
|
|
kActionChangeRoom = 16,
|
|
|
|
kActionSetCloseup = 17,
|
|
|
|
kActionMainView = 18,
|
|
|
|
kActionSubInv = 19,
|
|
|
|
kActionAddInv = 20,
|
|
|
|
kActionShowDir = 21,
|
|
|
|
kActionWaitSecs = 22,
|
|
|
|
kActionStopMusic = 23,
|
|
|
|
kActionStartMusic = 24,
|
|
|
|
kActionChangeMusic = 25,
|
|
|
|
kActionResetMusic = 26,
|
|
|
|
kActionFillMusic = 27,
|
|
|
|
kActionWaitSound = 28,
|
|
|
|
kActionClearSound = 29,
|
|
|
|
kActionWinMusic = 30,
|
|
|
|
kActionWinGame = 31,
|
2015-12-23 21:07:40 +00:00
|
|
|
kActionLostGame = 32, // unused
|
2015-12-22 23:32:12 +00:00
|
|
|
kActionResetBuffer = 33,
|
|
|
|
kActionSpecialCmd = 34,
|
|
|
|
kActionCShowMessage = 35,
|
|
|
|
kActionPlaySoundNoWait = 36
|
|
|
|
};
|
2014-10-06 12:50:05 +00:00
|
|
|
|
2015-12-22 23:32:12 +00:00
|
|
|
enum RuleType {
|
|
|
|
kRuleTypeNone = 0,
|
|
|
|
kRuleTypeAction = 1,
|
|
|
|
kRuleTypeOperate = 2,
|
|
|
|
kRuleTypeGoForward = 3,
|
|
|
|
kRuleTypeConditions = 4, // unused?
|
|
|
|
kRuleTypeTurn = 5,
|
|
|
|
kRuleTypeGoMainView = 6,
|
|
|
|
kRuleTypeTurnFromTo = 7
|
|
|
|
};
|
2014-10-06 12:50:05 +00:00
|
|
|
|
2015-12-22 23:32:12 +00:00
|
|
|
enum RuleAction {
|
|
|
|
kRuleActionTake = 0,
|
|
|
|
kRuleActionMove = 1, // unused?
|
|
|
|
kRuleActionOpenDoor = 2, // unused?
|
|
|
|
kRuleActionCloseDoor = 3, // unused?
|
|
|
|
kRuleActionTakeDef = 4
|
|
|
|
};
|
2014-10-06 12:50:05 +00:00
|
|
|
|
2015-12-24 10:36:26 +00:00
|
|
|
enum Condition {
|
|
|
|
kCondBeltGlowing = 70,
|
|
|
|
kCondBridge1 = 104,
|
|
|
|
kCondNoNews = 135,
|
|
|
|
kCondBridge0 = 148,
|
|
|
|
kCondLampOn = 151,
|
|
|
|
kCondNoClean = 152,
|
|
|
|
kCondDirty = 175,
|
|
|
|
kCondUsedHelmet = 184
|
|
|
|
};
|
|
|
|
|
2015-12-24 10:38:26 +00:00
|
|
|
enum MapDoors {
|
|
|
|
kDoorLeftNorth = 1,
|
|
|
|
kDoorLeftEast = 2,
|
|
|
|
kDoorLeftSouth = 4,
|
|
|
|
kDoorLeftWest = 8,
|
|
|
|
|
|
|
|
kDoorMiddleNorth = 16,
|
|
|
|
kDoorRightNorth = 32,
|
|
|
|
kDoorMiddleSouth = 64,
|
|
|
|
kDoorRightSouth = 128,
|
|
|
|
|
|
|
|
kDoorMiddleEast = 16,
|
|
|
|
kDoorBottomEast = 32,
|
|
|
|
kDoorMiddleWest = 64,
|
|
|
|
kDoorBottomWest = 128
|
|
|
|
};
|
|
|
|
|
2015-12-27 00:05:43 +00:00
|
|
|
enum SpecialRoom {
|
|
|
|
kNormalRoom = 0,
|
|
|
|
kUpArrowRoom,
|
|
|
|
kDownArrowRoom,
|
|
|
|
kBridgeRoom,
|
|
|
|
kVerticalCorridor,
|
|
|
|
kHorizontalCorridor,
|
|
|
|
kMedMaze,
|
|
|
|
kHedgeMaze,
|
|
|
|
kSurMaze,
|
|
|
|
kMultiMazeF1,
|
|
|
|
kMultiMazeF2,
|
|
|
|
kMultiMazeF3
|
|
|
|
};
|
2015-12-24 10:38:26 +00:00
|
|
|
|
2015-12-09 19:04:32 +00:00
|
|
|
struct CloseData {
|
2015-12-09 10:22:41 +00:00
|
|
|
uint16 _x1, _y1, _x2, _y2;
|
2015-12-08 10:27:34 +00:00
|
|
|
int16 _closeUpType; // if > 0, an object. If < 0, an item
|
|
|
|
uint16 _depth; // Level of the closeup.
|
2015-12-19 00:12:42 +00:00
|
|
|
Common::String _graphicName;
|
|
|
|
Common::String _message;
|
2015-12-25 11:56:49 +00:00
|
|
|
CloseDataList _subCloseUps;
|
2015-12-09 19:04:32 +00:00
|
|
|
};
|
2014-10-06 12:50:05 +00:00
|
|
|
|
2015-10-13 22:10:42 +00:00
|
|
|
struct ViewData {
|
2015-12-24 16:31:34 +00:00
|
|
|
Common::Array<int16> _condition;
|
2015-12-19 00:12:42 +00:00
|
|
|
Common::String _graphicName;
|
2015-12-25 11:56:49 +00:00
|
|
|
CloseDataList _closeUps;
|
2014-12-25 23:07:54 +00:00
|
|
|
};
|
2014-10-06 12:50:05 +00:00
|
|
|
|
|
|
|
struct Action {
|
2015-12-22 23:32:12 +00:00
|
|
|
ActionType _actionType;
|
2015-12-06 20:53:57 +00:00
|
|
|
int16 _param1;
|
|
|
|
int16 _param2;
|
|
|
|
int16 _param3;
|
2015-12-24 16:31:34 +00:00
|
|
|
Common::Array<Common::String> _messages;
|
2014-10-06 12:50:05 +00:00
|
|
|
};
|
|
|
|
|
2014-12-25 23:07:54 +00:00
|
|
|
struct Rule {
|
2015-12-22 23:32:12 +00:00
|
|
|
RuleType _ruleType;
|
2015-12-06 20:53:57 +00:00
|
|
|
int16 _param1;
|
|
|
|
int16 _param2;
|
2015-12-24 16:31:34 +00:00
|
|
|
Common::Array<int16> _condition;
|
2015-12-25 11:56:49 +00:00
|
|
|
ActionList _actionList;
|
2014-12-25 23:07:54 +00:00
|
|
|
};
|
2014-10-06 12:50:05 +00:00
|
|
|
|
2014-12-25 23:07:54 +00:00
|
|
|
struct RoomData {
|
2015-12-13 17:31:40 +00:00
|
|
|
uint16 _doors[4];
|
2015-12-07 07:58:46 +00:00
|
|
|
byte _transitionType;
|
2015-12-25 11:56:49 +00:00
|
|
|
ViewDataList _view[4];
|
2015-12-24 16:41:27 +00:00
|
|
|
RuleList _rules;
|
2015-12-19 00:12:42 +00:00
|
|
|
Common::String _roomMsg;
|
2014-12-25 23:07:54 +00:00
|
|
|
};
|
2014-10-06 12:50:05 +00:00
|
|
|
|
2014-12-25 23:07:54 +00:00
|
|
|
struct InventoryData {
|
2015-12-19 11:46:57 +00:00
|
|
|
uint16 _quantity;
|
2015-12-19 00:12:42 +00:00
|
|
|
Common::String _name;
|
|
|
|
Common::String _bitmapName;
|
2014-12-25 23:07:54 +00:00
|
|
|
};
|
2014-10-06 12:50:05 +00:00
|
|
|
|
2014-12-25 23:07:54 +00:00
|
|
|
struct MapData {
|
2015-12-27 00:05:43 +00:00
|
|
|
uint16 _x, _y, _pageNumber;
|
|
|
|
SpecialRoom _specialID;
|
2015-12-09 10:22:41 +00:00
|
|
|
uint32 _mapFlags;
|
2014-12-25 23:07:54 +00:00
|
|
|
};
|
2014-10-06 12:50:05 +00:00
|
|
|
|
|
|
|
} // End of namespace Lab
|
|
|
|
|
2015-12-08 10:27:34 +00:00
|
|
|
#endif // LAB_PROCESSROOM_H
|