ScummVM API documentation
noradalpha.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_ALPHA_NORADALPHA_H
26 #define PEGASUS_NEIGHBORHOOD_NORAD_ALPHA_NORADALPHA_H
27 
28 #include "pegasus/neighborhood/norad/norad.h"
29 
30 namespace Pegasus {
31 
32 class Item;
33 class SubChase;
34 
35 class NoradAlpha : public Norad {
36 friend class SubChase;
37 public:
39  ~NoradAlpha() override;
40 
41  void init() override;
42  void start() override;
43 
44  bool okayToJump() override;
45 
46  void playClawMonitorIntro() override;
47 
48  void getExtraCompassMove(const ExtraTable::Entry &, FaderMoveSpec &) override;
49 
50  void turnOnFillingStation();
51  void turnOffFillingStation();
52  Item *getFillingItem() { return _fillingStationItem; }
53  bool gasCanisterIntake();
54 
55  void takeItemFromRoom(Item *) override;
56  void dropItemIntoRoom(Item *, Hotspot *) override;
57 
58  GameInteraction *makeInteraction(const InteractionID) override;
59 
60  void getClawInfo(HotSpotID &outSpotID, HotSpotID &prepSpotID, HotSpotID &clawControlSpotID,
61  HotSpotID &pinchClawSpotID, HotSpotID &moveClawDownSpotID, HotSpotID &moveClawRightSpotID,
62  HotSpotID &moveClawLeftSpotID, HotSpotID &moveClawUpSpotID, HotSpotID &clawCCWSpotID,
63  HotSpotID &clawCWSpotID, uint32 &, const uint32 *&) override;
64 
65  void loadAmbientLoops() override;
66 
67  Common::Path getEnvScanMovie() override;
68  uint getNumHints() override;
69  Common::Path getHintMovie(uint) override;
70  void setUpAIRules() override;
71 
72  void setSubPrepFailed(bool value) { _subPrepFailed = value; }
73  bool getSubPrepFailed() { return _subPrepFailed; }
74 
75  void closeDoorOffScreen(const RoomID, const DirectionConstant) override;
76  void findSpotEntry(const RoomID, const DirectionConstant, SpotFlags, SpotTable::Entry &) override;
77  void clickInHotspot(const Input &, const Hotspot *) override;
78 
79  void checkContinuePoint(const RoomID, const DirectionConstant) override;
80 
81  void setSoundFXLevel(const uint16) override;
82 
83  bool canSolve() override;
84  void doSolve() override;
85 
86 protected:
87  static const uint32 _noradAlphaClawExtras[22];
88 
89  virtual void arriveAtNorad01();
90  virtual void arriveAtNorad01East();
91  virtual void arriveAtNorad01West();
92  virtual void arriveAtNorad04();
93  virtual void arriveAtNorad22();
94 
95  void arriveAt(const RoomID, const DirectionConstant) override;
96  void turnTo(const DirectionConstant) override;
97 
98  void startExtraSequence(const ExtraID, const NotificationFlags, const InputBits) override;
99 
100  void getZoomEntry(const HotSpotID, ZoomTable::Entry &) override;
101  TimeValue getViewTime(const RoomID, const DirectionConstant) override;
102 
103  void receiveNotification(Notification *, const NotificationFlags) override;
104 
105  void activateHotspots() override;
106 
107  Hotspot *getItemScreenSpot(Item *, DisplayElement *) override;
108 
109  void bumpIntoWall() override;
110 
111  Hotspot _thermalScanSpot;
112 
113  Movie _extraMovie;
114  NotificationCallBack _extraMovieCallBack;
115 
116  Item *_fillingStationItem;
117 
118  bool _subPrepFailed;
119 
120  Common::Path getSoundSpotsName() override;
121  Common::Path getNavMovieName() override;
122 };
123 
124 } // End of namespace Pegasus
125 
126 #endif
Definition: subchase.h:60
Definition: noradalpha.h:35
Definition: movie.h:40
Definition: fader.h:35
Definition: norad.h:34
Definition: path.h:52
Definition: hotspot.h:85
Definition: item.h:294
Definition: spot.h:66
Definition: input.h:322
Definition: zoom.h:49
Definition: notification.h:53
Definition: elements.h:43
Definition: interaction.h:37
Definition: timers.h:191
Definition: pegasus.h:70
Definition: extra.h:49
Definition: input.h:410
Definition: ai_action.h:33