1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
/* 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.
*
* 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.
*
* 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, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef M4_RIDDLE_ROOMS_SECTION2_ROOM201_H
#define M4_RIDDLE_ROOMS_SECTION2_ROOM201_H
#include "m4/riddle/rooms/section2/section2_room.h"
namespace M4 {
namespace Riddle {
namespace Rooms {
class Room201 : public Section2Room {
private:
bool _flag1 = false;
bool _flag2 = false;
bool _flag3 = false;
int32 _travelDest = 0;
int _val1 = 0;
int32 _givenYuan = 0;
const char *_itemDigi = nullptr;
const char *_itemDigi2 = nullptr;
const char *_itemDigi3 = nullptr;
const char *_itemDigi4 = nullptr;
const char *_itemDigi5 = nullptr;
int _val4 = 0;
int _meiMode = 0;
int _meiShould = 0;
int _val8 = 0;
int _val9 = 0;
int _agentShould = 0;
int _ripleyShould = 0;
int _nod = 0;
int _guyWriting = 0;
int _guyParcel = 0;
int _guyPassForm = 0;
int _guyBow = 0;
int _guySeries1 = 0;
int _series1 = -1;
int _series2 = -2;
int _series3 = -1;
int _series4 = -1;
int _series5 = -1;
int _series6 = -2;
int _series7 = -1;
int _series8 = -1;
machine *_mei0 = nullptr;
machine *_mei1 = nullptr;
machine *_mei2 = nullptr;
machine *_ripley = nullptr;
machine *_doc = nullptr;
machine *_shadow3 = nullptr;
machine *_agent = nullptr;
int _meiHandHip = 0;
int _meiTalker = 0;
int _meiWalk = 0;
int _meiHeadTurn = 0;
int _meiTalkLoop = 0;
int _ripHandChin = -1;
int _ripTalk = -1;
int _ripleyMode = 0;
int _num2 = 0;
int _agentMode = 0;
int _trigger1 = -1;
int _trigger2 = -1;
int _trigger3 = -1;
int _trigger4 = -1;
int _trigger5 = -1;
int _trigger6 = -1;
int _trigger7 = -1;
int _trigger8 = -1;
int _trigger9 = -1;
int _trigger10 = -1;
int _trigger11 = -1;
int _trigger12 = -1;
int _items[12];
int32 _itemFlags[12];
int _totalItems = 0;
int32 _hasKeyItems = 0;
int _ctr1 = 0;
int _ctr2 = 0;
void setupMei();
void conv201a();
void animateRipley();
void checkFlags();
bool buildKeyItemsArray();
public:
Room201();
~Room201() override {}
void init() override;
void daemon() override;
void parser() override;
};
} // namespace Rooms
} // namespace Riddle
} // namespace M4
#endif
|