ScummVM API documentation
wsc.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_WSC_WSC_H
26 #define PEGASUS_NEIGHBORHOOD_WSC_WSC_H
27 
28 #include "pegasus/neighborhood/neighborhood.h"
29 #include "pegasus/neighborhood/wsc/moleculebin.h"
30 
31 namespace Pegasus {
32 
33 static const DisplayOrder kWSCMoleculeBinOrder = kMonitorLayer;
34 static const DisplayOrder kWSCMoleculesMovieOrder = kWSCMoleculeBinOrder + 1;
35 
36 static const RoomID kWSC01 = 0;
37 static const RoomID kWSC02Morph = 2;
38 static const RoomID kWSC02Messages = 3;
39 static const RoomID kWSC62 = 62;
40 
41 class WSC : public Neighborhood {
42 public:
44  ~WSC() override;
45 
46  void flushGameState() override;
47 
48  uint16 getDateResID() const override;
49 
50  bool okayToJump() override;
51 
52  void checkContinuePoint(const RoomID, const DirectionConstant) override;
53 
54  bool inSynthesizerGame();
55 
56  bool canSolve() override;
57  void doSolve() override;
58 
59  void setSoundFXLevel(const uint16) override;
60 
61  void prepareForAIHint(const Common::Path &) override;
62  void cleanUpAfterAIHint(const Common::Path &) override;
63 
64  void init() override;
65  void start() override;
66 
67 protected:
68  enum {
69  kWSCDraggingAntidoteFlag,
70 
71  kWSCPrivateLabMessagesOpenFlag,
72  kWSCPrivateInterruptedMorphFlag,
73  kWSCPrivateInMoleculeGameFlag,
74  kWSCPrivateSinclairOfficeOpenFlag,
75  kWSCPrivateOfficeLogOpenFlag,
76  kWSCPrivate58SouthOpenFlag,
77  kWSCPrivateClickedCatwalkCableFlag,
78  kWSCPrivateRobotHeadOpenFlag,
79 
80  kWSCPrivateSeenPeopleAt17WestFlag,
81  kWSCPrivateSeenPeopleAt19NorthFlag,
82  kWSCPrivateSeenPeopleAt21SouthFlag,
83  kWSCPrivateSeenPeopleAt24SouthFlag,
84  kWSCPrivateSeenPeopleAt34EastFlag,
85  kWSCPrivateSeenPeopleAt36WestFlag,
86  kWSCPrivateSeenPeopleAt38NorthFlag,
87  kWSCPrivateSeenPeopleAt46SouthFlag,
88  kWSCPrivateSeenPeopleAt49NorthFlag,
89  kWSCPrivateSeenPeopleAt73WestFlag,
90 
91  kWSCPrivateNeedPeopleAt17WestFlag,
92  kWSCPrivateNeedPeopleAt21SouthFlag,
93  kWSCPrivateNeedPeopleAt24SouthFlag,
94  kWSCPrivateNeedPeopleAt34EastFlag,
95  kWSCPrivateNeedPeopleAt36WestFlag,
96  kWSCPrivateNeedPeopleAt38NorthFlag,
97  kWSCPrivateNeedPeopleAt46SouthFlag,
98  kWSCPrivateNeedPeopleAt49NorthFlag,
99  kWSCPrivateNeedPeopleAt73WestFlag,
100 
101  kWSCPrivateGotRetScanChipFlag,
102  kWSCPrivateGotMapChipFlag,
103  kWSCPrivateGotOpticalChipFlag,
104 
105  kNumWSCPrivateFlags
106  };
107 
108  void arriveAt(const RoomID, const DirectionConstant) override;
109  void turnTo(const DirectionConstant) override;
110  void receiveNotification(Notification *, const NotificationFlags) override;
111  void dropItemIntoRoom(Item *, Hotspot *) override;
112  void clickInHotspot(const Input &, const Hotspot *) override;
113  TimeValue getViewTime(const RoomID, const DirectionConstant) override;
114  void getZoomEntry(const HotSpotID, ZoomTable::Entry &) override;
115  CanMoveForwardReason canMoveForward(ExitTable::Entry &entry) override;
116  void cantMoveThatWay(CanMoveForwardReason reason) override;
117  CanTurnReason canTurn(TurnDirection turn, DirectionConstant &nextDir) override;
118  void zoomTo(const Hotspot *hotspot) override;
119  void activateOneHotspot(HotspotInfoTable::Entry &, Hotspot *) override;
120  void setUpMoleculeGame();
121  void nextMoleculeGameLevel();
122  void startMoleculeGameLevel();
123  void moleculeGameClick(const HotSpotID);
124  void loadAmbientLoops() override;
125  CanOpenDoorReason canOpenDoor(DoorTable::Entry &) override;
126  void cantOpenDoor(CanOpenDoorReason) override;
127  void pickedUpItem(Item *) override;
128  void doorOpened() override;
129  void startExtraSequence(const ExtraID, const NotificationFlags, const InputBits) override;
130  void startDoorOpenMovie(const TimeValue, const TimeValue) override;
131  void getExtraEntry(const uint32, ExtraTable::Entry &) override;
132  void takeItemFromRoom(Item *item) override;
133  void checkPeopleCrossing();
134  void turnLeft() override;
135  void turnRight() override;
136  void moveForward() override;
137  Hotspot *getItemScreenSpot(Item *, DisplayElement *) override;
138  int16 getStaticCompassAngle(const RoomID, const DirectionConstant) override;
139  void getExitCompassMove(const ExitTable::Entry &exitEntry, FaderMoveSpec &compassMove) override;
140  void getExtraCompassMove(const ExtraTable::Entry &entry, FaderMoveSpec &compassMove) override;
141  void bumpIntoWall() override;
142  void spotCompleted() override;
143  void activateHotspots() override;
144  void setUpAIRules() override;
145  Common::Path getBriefingMovie() override;
146  Common::Path getEnvScanMovie() override;
147  uint getNumHints() override;
148  Common::Path getHintMovie(uint) override;
149  void closeDoorOffScreen(const RoomID, const DirectionConstant) override;
150  void setUpPoison();
151  void findSpotEntry(const RoomID, const DirectionConstant, SpotFlags, SpotTable::Entry &) override;
152  void timerExpired(const uint32) override;
153 
154  Common::Path getSoundSpotsName() override;
155  Common::Path getNavMovieName() override;
156 
158  const Hotspot *_cachedZoomSpot;
159  Hotspot _biotechImplantSpot;
160  Movie _extraMovie;
161  NotificationCallBack _extraMovieCallBack;
162  MoleculeBin _moleculeBin;
163  int32 _moleculeGameLevel, _numCorrect;
164  Movie _moleculesMovie;
165  uint32 _levelArray[6];
166  Sprite *_argonSprite;
167  Sound _welcomeSound;
168 };
169 
170 } // End of namespace Pegasus
171 
172 #endif
Definition: wsc.h:41
Definition: neighborhood.h:111
Definition: door.h:60
Definition: movie.h:40
Definition: fader.h:35
Definition: path.h:52
Definition: elements.h:168
Definition: hotspot.h:85
Definition: item.h:294
Definition: spot.h:66
Definition: input.h:322
Definition: zoom.h:49
Definition: exit.h:49
Definition: notification.h:53
Definition: elements.h:43
Definition: moleculebin.h:43
Definition: timers.h:191
Definition: pegasus.h:70
Definition: hotspotinfo.h:49
Definition: extra.h:49
Definition: sound.h:50
Definition: input.h:410
Definition: ai_action.h:33