ScummVM API documentation
map12.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_MAP12_H
23 #define MM1_MAPS_MAP12_H
24 
25 #include "mm/mm1/maps/map.h"
26 
27 namespace MM {
28 namespace MM1 {
29 namespace Maps {
30 
31 class Map12 : public Map {
32  typedef void (Map12:: *SpecialFn)();
33 private:
34  int _polyIndex = 0;
35 
36  static void keyCallbackSpinPolyhedronTwo();
37  static void keyCallbackSpinPolyhedronOne(const Common::KeyState &ks);
38 
39  void special00();
40  void special01();
41  void special02();
42  void special03();
43  void special04();
44  void special05();
45  void special06();
46  void special07();
47  void special08();
48  void special09();
49  void special10();
50  void special11();
51  void special12();
52  void special13();
53  void special14();
54  void special15();
55  void special16();
56  void special17();
57  void polyhedron(unsigned char side1, unsigned char side2);
58  void setPolyhedron(int polyIndex);
59 
60  const SpecialFn SPECIAL_FN[18] = {
61  &Map12::special00,
62  &Map12::special01,
63  &Map12::special02,
64  &Map12::special03,
65  &Map12::special04,
66  &Map12::special05,
67  &Map12::special06,
68  &Map12::special07,
69  &Map12::special08,
70  &Map12::special09,
71  &Map12::special10,
72  &Map12::special11,
73  &Map12::special12,
74  &Map12::special13,
75  &Map12::special14,
76  &Map12::special15,
77  &Map12::special16,
78  &Map12::special17
79  };
80 public:
81  Map12() : Map(12, "cave8", 0x601, 1) {}
82 
86  void special() override;
87 
91  void spinPolyhedron(byte newSide);
92 };
93 
94 } // namespace Maps
95 } // namespace MM1
96 } // namespace MM
97 
98 #endif
Definition: map12.h:31
Definition: map.h:97
Definition: detection.h:27
void spinPolyhedron(byte newSide)
Definition: keyboard.h:294
void special() override