ScummVM API documentation
noradelevator.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  * Additional copyright for this file:
8  * Copyright (C) 1995-1997 Presto Studios, Inc.
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24 
25 #ifndef PEGASUS_NEIGHBORHOOD_NORAD_NORADELEVATOR_H
26 #define PEGASUS_NEIGHBORHOOD_NORAD_NORADELEVATOR_H
27 
28 #include "pegasus/interaction.h"
29 #include "pegasus/notification.h"
30 #include "pegasus/surface.h"
31 #include "pegasus/timers.h"
32 
33 namespace Pegasus {
34 
35 class Neighborhood;
36 
38 public:
39  NoradElevator(Neighborhood *, const RoomID, const RoomID, const HotSpotID, const HotSpotID);
40  ~NoradElevator() override {}
41 
42 protected:
43  void openInteraction() override;
44  void initInteraction() override;
45  void closeInteraction() override;
46  void resetInteraction() override;
47 
48  void activateHotspots() override;
49  void clickInHotspot(const Input &, const Hotspot *) override;
50 
51  void receiveNotification(Notification *, const NotificationFlags) override;
52 
53  RoomID _upRoom;
54  RoomID _downRoom;
55  HotSpotID _upHotspot;
56  HotSpotID _downHotspot;
57  Sprite _elevatorControls;
58  TimeBase _elevatorTimer;
59  NotificationCallBack _elevatorCallBack;
60  Notification _elevatorNotification;
61  bool _timerExpired;
62 };
63 
64 } // End of namespace Pegasus
65 
66 #endif
Definition: neighborhood.h:111
Definition: elements.h:168
Definition: hotspot.h:85
Definition: timers.h:63
Definition: input.h:322
Definition: notification.h:53
Definition: interaction.h:37
Definition: timers.h:191
Definition: notification.h:83
Definition: ai_action.h:33
Definition: noradelevator.h:37