ScummVM API documentation
map09.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_MAP09_H
23 #define MM1_MAPS_MAP09_H
24 
25 #include "mm/mm1/maps/map.h"
26 
27 namespace MM {
28 namespace MM1 {
29 namespace Maps {
30 
31 class Map09 : public Map {
32  typedef void (Map09:: *SpecialFn)();
33 private:
34  int _portalIndex = 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 special09();
46  void special14();
47  void special18();
48  void special25();
49  void special26();
50  void special27();
51  void portal(int index);
52 
53  const SpecialFn SPECIAL_FN[28] = {
54  &Map09::special00,
55  &Map09::special01,
56  &Map09::special02,
57  &Map09::special03,
58  &Map09::special04,
59  &Map09::special05,
60  &Map09::special06,
61  &Map09::special07,
62  &Map09::special08,
63  &Map09::special09,
64  &Map09::special09,
65  &Map09::special09,
66  &Map09::special09,
67  &Map09::special09,
68  &Map09::special14,
69  &Map09::special14,
70  &Map09::special14,
71  &Map09::special14,
72  &Map09::special18,
73  &Map09::special18,
74  &Map09::special18,
75  &Map09::special18,
76  &Map09::special18,
77  &Map09::special18,
78  &Map09::special18,
79  &Map09::special25,
80  &Map09::special26,
81  &Map09::special27
82  };
83 public:
84  Map09() : Map(9, "cave5", 0x5, 1) {}
85 
89  void special() override;
90 };
91 
92 } // namespace Maps
93 } // namespace MM1
94 } // namespace MM
95 
96 #endif
void special() override
Definition: map.h:97
Definition: detection.h:27
Definition: map09.h:31