ScummVM API documentation
room501.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef M4_RIDDLE_ROOMS_SECTION5_ROOM501_H
23 #define M4_RIDDLE_ROOMS_SECTION5_ROOM501_H
24 
25 #include "m4/riddle/rooms/room.h"
26 
27 namespace M4 {
28 namespace Riddle {
29 namespace Rooms {
30 
31 class Room501 : public Room {
32 private:
33  machine *_ripley = nullptr;
34  machine *_shadow = nullptr;
35  machine *_agent = nullptr;
36  machine *_clock = nullptr;
37  machine *_paper = nullptr;
38  machine *_deltaPuffinMachine = nullptr;
39  int _agentTalkLoop = 0;
40  int _agentStridesForward = 0;
41  int _puffinExchange = 0;
42  const char *_digiName = nullptr;
43  int _convEntry = 0;
44  bool _flag = false;
45  int _ripTalkLoop = 0;
46  int _ripSeries1 = 0;
47  int _ripParcelExchange = 0;
48  int _ripMoneyExchange = 0;
49  int _ripSignsPaper = 0;
50  int _agentShould = 0;
51  int _val2 = 0;
52  int _ripleyShould = 0;
53  int _val4 = 0;
54  int _val5 = 0;
55  int _val6 = 0;
56  int _val7 = 0;
57  int _val8 = 0;
58  int _ripleyMode = 0;
59  int _xyzzy1 = 0;
60  int _xyzzy2 = 0;
61  int _xyzzy3 = 0;
62  int _xyzzy4 = 0;
63  int _xyzzy5 = 0;
64  int _xyzzy6 = 0;
65  int _xyzzy7 = 0;
66  int _agentMode = 0;
67  int _xyzzy9 = 0;
68  int _xyzzy10 = 0;
69  int _itemsCount = 0;
70  int _items[12];
71  int32 _hasItems = 0;
72  int32 _hasLetter = 0;
73  int32 _hasCrystalSkull = 0;
74  int32 _hasStickAndShellMap = 0;
75  int32 _hasWheeledToy = 0;
76  int32 _hasRebusAmulet = 0;
77  int32 _hasShrunkenHead = 0;
78  int32 _hasSilverButterfly = 0;
79  int32 _hasPostageStamp = 0;
80  int32 _hasGermanBanknote = 0;
81  int32 _hasWhaleBoneHorn = 0;
82  int32 _hasChisel = 0;
83  int32 _hasIncenseBurner = 0;
84  int32 _hasRomanovEmerald = 0;
85  const char *_queuedDigi[4];
86  int _ripSketching = 0;
87 
88  void conv501a();
89 
95  bool updateItems();
96 
97 public:
98  Room501();
99  ~Room501() override {}
100 
101  void init() override;
102  void daemon() override;
103  void parser() override;
104 };
105 
106 } // namespace Rooms
107 } // namespace Riddle
108 } // namespace M4
109 
110 #endif
Definition: ws_machine.h:153
Definition: database.h:28
Definition: room.h:39
Definition: room501.h:31