ScummVM API documentation
norad.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_NORAD_H
26 #define PEGASUS_NEIGHBORHOOD_NORAD_NORAD_H
27 
28 #include "pegasus/neighborhood/neighborhood.h"
29 
30 namespace Pegasus {
31 
32 // This is the code common to both Norad Alpha and Norad Delta
33 
34 class Norad : public Neighborhood {
35 public:
36  Norad(InputHandler *, PegasusEngine *owner, const Common::String &resName, const NeighborhoodID);
37  ~Norad() override {}
38 
39  void flushGameState() override;
40 
41  void start() override;
42 
43  virtual void getClawInfo(HotSpotID &outSpotID, HotSpotID &prepSpotID,
44  HotSpotID &clawControlSpotID, HotSpotID &pinchClawSpotID,
45  HotSpotID &moveClawDownSpotID, HotSpotID &moveClawRightSpotID,
46  HotSpotID &moveClawLeftSpotID,HotSpotID &moveClawUpSpotID,
47  HotSpotID &clawCCWSpotID, HotSpotID &clawCWSpotID, uint32 &, const uint32 *&) = 0;
48  void checkAirMask() override;
49 
50  uint16 getDateResID() const override;
51 
52  GameInteraction *makeInteraction(const InteractionID) override;
53 
54  Common::Path getBriefingMovie() override;
55 
56  void pickedUpItem(Item *) override;
57 
58  virtual void playClawMonitorIntro() {}
59 
60  void doneWithPressureDoor();
61 
62 protected:
63  CanOpenDoorReason canOpenDoor(DoorTable::Entry &) override;
64  void cantOpenDoor(CanOpenDoorReason) override;
65  int16 getStaticCompassAngle(const RoomID, const DirectionConstant) override;
66  void startExitMovie(const ExitTable::Entry &) override;
67  void startZoomMovie(const ZoomTable::Entry &) override;
68  void upButton(const Input &) override;
69  void activateHotspots() override;
70 
71  void arriveAt(const RoomID, const DirectionConstant) override;
72  virtual void arriveAtNoradElevator();
73  virtual void arriveAtUpperPressureDoorRoom();
74  virtual void arriveAtLowerPressureDoorRoom();
75  virtual void arriveAtSubPlatformRoom();
76  virtual void arriveAtSubControlRoom();
77  void setUpAirMask();
78  void receiveNotification(Notification *, const NotificationFlags) override;
79  virtual bool playingAgainstRobot() { return false; }
80 
81  Notification _noradNotification;
82  bool _doneWithPressureDoor;
83 
84  RoomID _elevatorUpRoomID;
85  RoomID _elevatorDownRoomID;
86  HotSpotID _elevatorUpSpotID;
87  HotSpotID _elevatorDownSpotID;
88 
89  TimeBase _airMaskTimer;
90  NotificationCallBack _airMaskCallBack;
91 
92  RoomID _subRoomEntryRoom1;
93  DirectionConstant _subRoomEntryDir1;
94  RoomID _subRoomEntryRoom2;
95  DirectionConstant _subRoomEntryDir2;
96  RoomID _upperPressureDoorRoom;
97  RoomID _lowerPressureDoorRoom;
98 
99  HotSpotID _upperPressureDoorUpSpotID;
100  HotSpotID _upperPressureDoorDownSpotID;
101  HotSpotID _upperPressureDoorAbortSpotID;
102 
103  HotSpotID _lowerPressureDoorUpSpotID;
104  HotSpotID _lowerPressureDoorDownSpotID;
105  HotSpotID _lowerPressureDoorAbortSpotID;
106 
107  TimeValue _pressureSoundIn;
108  TimeValue _pressureSoundOut;
109  TimeValue _equalizeSoundIn;
110  TimeValue _equalizeSoundOut;
111  TimeValue _accessDeniedIn;
112  TimeValue _accessDeniedOut;
113 
114  RoomID _platformRoom;
115  RoomID _subControlRoom;
116 };
117 
118 } // End of namespace Pegasus
119 
120 #endif
Definition: neighborhood.h:111
Definition: str.h:59
Definition: door.h:60
Definition: norad.h:34
Definition: path.h:52
Definition: timers.h:63
Definition: item.h:294
Definition: input.h:322
Definition: zoom.h:49
Definition: exit.h:49
Definition: notification.h:53
Definition: interaction.h:37
Definition: timers.h:191
Definition: pegasus.h:70
Definition: input.h:410
Definition: ai_action.h:33