ScummVM API documentation
map08.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_MAP08_H
23 #define MM1_MAPS_MAP08_H
24 
25 #include "mm/mm1/maps/map.h"
26 
27 namespace MM {
28 namespace MM1 {
29 namespace Maps {
30 
31 class Map08 : public Map {
32  typedef void (Map08:: *SpecialFn)();
33 private:
34  void special00();
35  void special01();
36  void special02();
37  void special04();
38  void special05();
39  void special06();
40  void special08();
41  void special20();
42  void addTreasure();
43 
44  const SpecialFn SPECIAL_FN[24] = {
45  &Map08::special00,
46  &Map08::special01,
47  &Map08::special02,
48  &Map08::special02,
49  &Map08::special04,
50  &Map08::special05,
51  &Map08::special06,
52  &Map08::special06,
53  &Map08::special08,
54  &Map08::special08,
55  &Map08::special08,
56  &Map08::special08,
57  &Map08::special06,
58  &Map08::special06,
59  &Map08::special06,
60  &Map08::special06,
61  &Map08::special06,
62  &Map08::special06,
63  &Map08::special06,
64  &Map08::special06,
65  &Map08::special20,
66  &Map08::special20,
67  &Map08::special20,
68  &Map08::special20
69  };
70 
74  void correctCode();
75 
79  void incorrectCode();
80 
81 public:
82  Map08() : Map(8, "cave4", 0x202, 1) {}
83 
87  void special() override;
88 
92  void codeEntered(const Common::String &code);
93 };
94 
95 } // namespace Maps
96 } // namespace MM1
97 } // namespace MM
98 
99 #endif
void codeEntered(const Common::String &code)
void special() override
Definition: str.h:59
Definition: map08.h:31
Definition: map.h:97
Definition: detection.h:27