ScummVM API documentation
bombpuzzle.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 NANCY_ACTION_BOMBPUZZLE_H
23 #define NANCY_ACTION_BOMBPUZZLE_H
24 
25 #include "engines/nancy/action/actionrecord.h"
26 
27 namespace Nancy {
28 namespace Action {
29 
31 public:
33  virtual ~BombPuzzle() {}
34 
35  void init() override;
36  void updateGraphics() override;
37 
38  void readData(Common::SeekableReadStream &stream) override;
39  void execute() override;
40  void handleInput(NancyInput &input) override;
41 
42 protected:
43  Common::String getRecordTypeName() const override { return "BombPuzzle"; }
44  bool isViewportRelative() const override { return true; }
45 
46  Common::Path _imageName;
48  Common::Array<Common::Rect> _wireDests;
49  Common::Array<Common::Rect> _digitSrcs;
50  Common::Array<Common::Rect> _digitDests;
51  Common::Rect _colonSrc;
52  Common::Rect _colonDest;
53  Common::Rect _displayBounds;
54  Common::Array<byte> _solveOrder;
55  SoundDescription _snipSound;
56  SoundDescription _noToolSound;
57  uint16 _toolID = 0;
58  SceneChangeWithFlag _solveSceneChange;
59  SoundDescription _solveSound;
60  SceneChangeWithFlag _failSceneChange;
61  SoundDescription _failSound;
62 
64  Common::Array<byte> _playerOrder;
65 
66  Time _timerTotalTime;
67  Time _timerBlinkTime;
68  Time _nextBlinkTime;
69  bool _isBlinking = false;
70  uint _lastDrawnTime = 0;
71 
72  bool _failed = false;
73 };
74 
75 } // End of namespace Action
76 } // End of namespace Nancy
77 
78 #endif // NANCY_ACTION_BOMBPUZZLE_H
Definition: managed_surface.h:51
Definition: str.h:59
Definition: time.h:30
Definition: rect.h:144
Definition: path.h:52
Definition: stream.h:745
Definition: input.h:41
Definition: commontypes.h:171
Definition: actionrecord.h:149
Definition: commontypes.h:254
Definition: bombpuzzle.h:30
Definition: actionmanager.h:32