ScummVM API documentation
elevator.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 BLADERUNNER_ELEVATOR_H
23 #define BLADERUNNER_ELEVATOR_H
24 
25 #include "common/array.h"
26 
27 namespace BladeRunner {
28 
29 class BladeRunnerEngine;
30 class Shapes;
31 class VQAPlayer;
32 class UIImagePicker;
33 
34 class Elevator {
35  BladeRunnerEngine *_vm;
36  bool _isOpen;
37  VQAPlayer *_vqaPlayer;
38  int _buttonClicked;
39  Shapes *_shapes;
40  UIImagePicker *_imagePicker;
41  int _actorId;
42  int _sentenceId;
43  uint32 _timeSpeakDescriptionStart;
44 
45 public:
47  ~Elevator();
48 
49  int activate(int elevatorId);
50  void open();
51  bool isOpen() const;
52  int handleMouseUp(int x, int y);
53  int handleMouseDown(int x, int y);
54  void tick();
55  void buttonClick(int buttonId);
56  void reset();
57  void buttonFocus(int buttonId);
58  void setupDescription(int actorId, int sentenceId);
59  void resetDescription();
60  void tickDescription();
61 
62 private:
63  static void mouseInCallback(int, void *);
64  static void mouseOutCallback(int, void *);
65  static void mouseDownCallback(int, void *);
66  static void mouseUpCallback(int, void *);
67 };
68 
69 } // End of namespace BladeRunner
70 
71 #endif
Definition: actor.h:31
Definition: vqa_player.h:45
Definition: ui_image_picker.h:40
Definition: elevator.h:34
Definition: bladerunner.h:113
Definition: shape.h:61