ScummVM API documentation
puzzles.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 ASYLUM_PUZZLES_PUZZLES_H
23 #define ASYLUM_PUZZLES_PUZZLES_H
24 
25 #include "common/serializer.h"
26 
27 #include "asylum/console.h"
28 #include "asylum/shared.h"
29 
30 namespace Asylum {
31 
32 class EventHandler;
33 class Puzzle;
34 
35 class Puzzles : public Common::Serializable {
36 public:
37  Puzzles(AsylumEngine *engine);
38  ~Puzzles();
39 
43  void reset();
44 
52  EventHandler *getPuzzle(uint32 index) const;
53 
54  // Serializable
55  void saveLoadWithSerializer(Common::Serializer &s);
56 
57 private:
58  AsylumEngine *_vm;
59  Puzzle *_puzzles[17];
60 
64  void initPuzzles();
65 
66  // Debug
67  friend class Console;
68 };
69 
70 } // End of namespace Asylum
71 
72 #endif // ASYLUM_PUZZLES_PUZZLES_H
Definition: asylum.h:53
Definition: serializer.h:79
Definition: puzzles.h:35
Definition: eventhandler.h:61
Definition: asylum.h:70
Definition: console.h:55
Definition: puzzle.h:41
Definition: serializer.h:308
EventHandler * getPuzzle(uint32 index) const