ScummVM API documentation
section1.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_BURGER_ROOMS_SECTION1_H
23 #define M4_BURGER_ROOMS_SECTION1_H
24 
25 #include "m4/burger/rooms/room.h"
26 #include "m4/burger/rooms/section.h"
27 #include "m4/burger/rooms/section1/room101.h"
28 #include "m4/burger/rooms/section1/room102.h"
29 #include "m4/burger/rooms/section1/room103.h"
30 #include "m4/burger/rooms/section1/room104.h"
31 #include "m4/burger/rooms/section1/room105.h"
32 #include "m4/burger/rooms/section1/room106.h"
33 #include "m4/burger/rooms/section1/room120.h"
34 #include "m4/burger/rooms/section1/room133_136.h"
35 #include "m4/burger/rooms/section1/room134_135.h"
36 #include "m4/burger/rooms/section1/room137.h"
37 #include "m4/burger/rooms/section1/room138.h"
38 #include "m4/burger/rooms/section1/room139_144.h"
39 #include "m4/burger/rooms/section1/room140_141.h"
40 #include "m4/burger/rooms/section1/room142.h"
41 #include "m4/burger/rooms/section1/room143.h"
42 #include "m4/burger/rooms/section1/room145.h"
43 #include "m4/burger/rooms/section1/room170.h"
44 #include "m4/burger/rooms/section1/room171.h"
45 #include "m4/burger/rooms/section1/room172.h"
46 #include "m4/burger/rooms/section1/room173.h"
47 #include "m4/burger/rooms/section1/room174.h"
48 #include "m4/burger/rooms/section1/room175.h"
49 #include "m4/burger/rooms/section1/room176.h"
50 
51 namespace M4 {
52 namespace Burger {
53 namespace Rooms {
54 
55 enum Goto1 {
56  GOTO_TOWN_HALL = 1001,
57  GOTO_OLD_BRIDGE = 1008
58 };
59 
60 class Section1 : public Rooms::Section {
61 private:
62  Room101 _room101;
63  Room102 _room102;
64  Room103 _room103;
65  Room104 _room104;
66  Room105 _room105;
67  Room106 _room106;
68  Room120 _room120;
69  Room133_136 _room133_136;
70  Room134_135 _room134_135;
71  Room137 _room137;
72  Room138 _room138;
73  Room139_144 _room139_144;
74  Room140_141 _room140_141;
75  Room142 _room142;
76  Room143 _room143;
77  Room145 _room145;
78  Room170 _room170;
79  Room171 _room171;
80  Room172 _room172;
81  Room173 _room173;
82  Room174 _room174;
83  Room175 _room175;
84  Room176 _room176;
85 
86  int _trigger = 0;
87  int _series1 = -1;
88  int _series2 = -1;
89  machine *_play = nullptr;
90  int _state1 = 0;
91 
92  void updateWalker_(int x, int y, int dir, int trigger, bool mode);
93 public:
94  Section1();
95  virtual ~Section1() {}
96 
97  void daemon() override;
98 
99  static void updateWalker(int x, int y, int dir, int trigger, bool mode = false);
100  static void updateDisablePlayer();
101  static void walk(int facing = -1, int trigger = -1);
102 };
103 
104 } // namespace Rooms
105 } // namespace Burger
106 } // namespace M4
107 
108 #endif
Definition: ws_machine.h:153
Definition: room120.h:31
Definition: room143.h:31
Definition: section.h:31
Definition: room173.h:31
Definition: room103.h:31
Definition: room170.h:31
Definition: room134_135.h:31
Definition: room140_141.h:31
Definition: room174.h:31
Definition: room104.h:31
Definition: room171.h:31
Definition: room145.h:32
Definition: room101.h:31
Definition: room142.h:32
Definition: room175.h:31
Definition: database.h:28
Definition: room105.h:31
Definition: room172.h:31
Definition: room137.h:31
Definition: room102.h:31
Definition: room133_136.h:31
Definition: room176.h:31
Definition: room106.h:32
Definition: section1.h:60
Definition: room138.h:31
Definition: room139_144.h:31