scummvm/engines/tetraedge/game/puzzle_computer_pwd.h
2023-04-30 19:12:34 +09:00

61 lines
1.6 KiB
C++

/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef TETRAEDGE_GAME_PUZZLE_COMPUTER_PWD_H
#define TETRAEDGE_GAME_PUZZLE_COMPUTER_PWD_H
#include "tetraedge/te/te_3d_object2.h"
#include "tetraedge/te/te_lua_gui.h"
namespace Tetraedge {
class PuzzleComputerPwd : public Te3DObject2 {
public:
PuzzleComputerPwd();
void enter();
bool leave();
private:
bool onButton0Clicked();
bool onButton1Clicked();
bool onButton2Clicked();
bool onButton3Clicked();
bool onButton4Clicked();
bool onButton5Clicked();
bool onButton6Clicked();
bool onButton7Clicked();
bool onButton8Clicked();
bool onButton9Clicked();
bool onButtonCancelClicked();
bool onExitButton();
bool registerNewDigit(int digit);
void resetPwd();
TeLuaGUI _gui;
int _nDigits;
int _enteredPwd[6];
};
} // end namespace Tetraedge
#endif // TETRAEDGE_GAME_PUZZLE_COMPUTER_PWD_H