ScummVM API documentation
puzzle_computer_pwd.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_COMPUTER_PWD_H
23 #define TETRAEDGE_GAME_PUZZLE_COMPUTER_PWD_H
24 
25 #include "tetraedge/te/te_3d_object2.h"
26 #include "tetraedge/te/te_lua_gui.h"
27 
28 namespace Tetraedge {
29 
31 public:
33 
34  void enter();
35  bool leave();
36 
37 private:
38  bool onButton0Clicked();
39  bool onButton1Clicked();
40  bool onButton2Clicked();
41  bool onButton3Clicked();
42  bool onButton4Clicked();
43  bool onButton5Clicked();
44  bool onButton6Clicked();
45  bool onButton7Clicked();
46  bool onButton8Clicked();
47  bool onButton9Clicked();
48  bool onButtonCancelClicked();
49  bool onExitButton();
50 
51  bool registerNewDigit(int digit);
52  void resetPwd();
53 
54  TeLuaGUI _gui;
55  int _nDigits;
56  int _enteredPwd[6];
57 };
58 
59 } // end namespace Tetraedge
60 
61 #endif // TETRAEDGE_GAME_PUZZLE_COMPUTER_PWD_H
Definition: detection.h:27
Definition: te_lua_gui.h:51
Definition: puzzle_computer_pwd.h:30
Definition: te_3d_object2.h:36