ScummVM API documentation
map11.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 MM1_MAPS_MAP11_H
23 #define MM1_MAPS_MAP11_H
24 
25 #include "mm/mm1/maps/map.h"
26 
27 namespace MM {
28 namespace MM1 {
29 namespace Maps {
30 
31 class Map11 : public Map {
32  typedef void (Map11:: *SpecialFn)();
33 private:
34  int _dialIndex = 0;
35 
36  void special00();
37  void special01();
38  void special02();
39  void special03();
40  void special04();
41  void special05();
42  void special06();
43  void special07();
44  void special08();
45  void pit();
46  void selectDial(int dialIndex);
47 
48  const SpecialFn SPECIAL_FN[14] = {
49  &Map11::special00,
50  &Map11::special01,
51  &Map11::special02,
52  &Map11::special03,
53  &Map11::special04,
54  &Map11::special05,
55  &Map11::special06,
56  &Map11::special07,
57  &Map11::special08,
58  &Map11::special08,
59  &Map11::special08,
60  &Map11::special02,
61  &Map11::special02,
62  &Map11::special02
63  };
64 public:
65  Map11() : Map(11, "cave7", 0x212, 1) {}
66 
70  void special() override;
71 
75  void challenge();
76 
80  void setDialChar(char c);
81 
85  void clue();
86 
90  void riddleAnswer(const Common::String &answer);
91 };
92 
93 } // namespace Maps
94 } // namespace MM1
95 } // namespace MM
96 
97 #endif
Definition: str.h:59
void special() override
void setDialChar(char c)
Definition: map.h:97
Definition: detection.h:27
void riddleAnswer(const Common::String &answer)
Definition: map11.h:31