ScummVM API documentation
puzzle_hanjie.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 TETRAEDGE_GAME_PUZZLE_HANJIE_H
23 #define TETRAEDGE_GAME_PUZZLE_HANJIE_H
24 
25 #include "tetraedge/te/te_3d_object2.h"
26 #include "tetraedge/te/te_timer.h"
27 #include "tetraedge/te/te_xml_gui.h"
28 #include "tetraedge/te/te_button_layout.h"
29 #include "tetraedge/te/te_sprite_layout.h"
30 
31 namespace Tetraedge {
32 
33 class PuzzleHanjie : public Te3DObject2 {
34 public:
35  PuzzleHanjie();
36 
37  void wakeUp();
38  void sleep();
39 
40 private:
41  bool isSolved();
42  bool onExitButton();
43  bool onWinTimer();
44  bool onMouseUp(const Common::Point &pt);
45 
46  TeTimer _timer;
47  TeXmlGui _gui;
48 
49  TeButtonLayout *_exitButton;
50  TeSpriteLayout *_sprites[49];
51  TeSpriteLayout *_foregroundSprite;
52  int _backgroundNo;
53  bool _entered;
54  Common::Path _bgImg;
55  Common::String _soundBegin;
56  TeSpriteLayout _bgSprite;
57  bool _expectedVals[49];
58 
59 };
60 
61 } // end namespace Tetraedge
62 
63 #endif // TETRAEDGE_GAME_PUZZLE_HANJIE_H
Definition: str.h:59
Definition: detection.h:27
Definition: path.h:52
Definition: te_timer.h:33
Definition: te_button_layout.h:38
Definition: te_3d_object2.h:36
Definition: puzzle_hanjie.h:33
Definition: rect.h:45
Definition: te_xml_gui.h:34
Definition: te_sprite_layout.h:30