ScummVM API documentation
blueforce_scenes0.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 TSAGE_BLUEFORCE_SCENES0_H
23 #define TSAGE_BLUEFORCE_SCENES0_H
24 
25 #include "common/scummsys.h"
26 #include "tsage/blue_force/blueforce_logic.h"
27 #include "tsage/blue_force/blueforce_speakers.h"
28 #include "tsage/converse.h"
29 #include "tsage/events.h"
30 #include "tsage/core.h"
31 #include "tsage/scenes.h"
32 #include "tsage/globals.h"
33 #include "tsage/sound.h"
34 
35 namespace TsAGE {
36 
37 namespace BlueForce {
38 
39 using namespace TsAGE;
40 
41 class Scene20 : public SceneExt {
42  /* Actions */
43  class Action1 : public Action {
44  private:
45  ASoundExt _sound;
46  public:
47  void signal() override;
48  };
49 public:
50  Action1 _action1;
51  ScenePalette _scenePalette;
52  SceneObject _tsunamiWave, _letterT, _letterS, _letterU;
53  SceneObject _letterN, _letterA, _letterM, _letterI;
54 
55  void postInit(SceneObjectList *OwnerList = NULL) override;
56 };
57 
58 class Scene50: public SceneExt {
59  class Tooltip: public SavedObject {
60  public:
61  Rect _bounds;
62  Common::String _msg;
63  int _newSceneNumber;
64  int _locationId;
65  public:
66  Tooltip();
67  void set(const Rect &bounds, int sceneNum, const Common::String &msg, int locationId);
68  void update();
69  void highlight(bool btnDown);
70 
71  Common::String getClassName() override { return "Scene50_Tooltip"; }
72  void synchronize(Serializer &s) override;
73  };
74  class Tooltip2: public Action {
75  public:
76  Tooltip2(): Action() {}
77 
78  Common::String getClassName() override { return "Scene50_Tooltip2"; }
79  void signal() override;
80  void dispatch() override;
81  };
82 public:
83  int _sceneNumber;
84  SceneText _text;
85  SceneItemType2 _item;
86  Tooltip _location1, _location2, _location3, _location4, _location5;
87  Tooltip _location6, _location7, _location8, _location9;
88  Timer _timer;
89 public:
90  Scene50();
91 
92  Common::String getClassName() override { return "Scene50"; }
93  void synchronize(Serializer &s) override;
94 
95  void postInit(SceneObjectList *OwnerList = NULL) override;
96  void remove() override;
97  void signal() override;
98  void process(Event &event) override;
99 };
100 
101 class Scene60 : public SceneExt {
102  /* Items */
103  class Ignition: public NamedHotspot {
104  private:
105  bool check1();
106  bool check2();
107  public:
108  bool startAction(CursorType action, Event &event) override;
109  };
110  class Item3: public NamedHotspot {
111  public:
112  bool startAction(CursorType action, Event &event) override;
113  };
114  class Radio: public NamedHotspot {
115  public:
116  bool startAction(CursorType action, Event &event) override;
117  };
118  class Compartment: public NamedHotspot {
119  public:
120  bool startAction(CursorType action, Event &event) override;
121  };
122 
123  /* Objects */
124  class MirandaCard: public NamedObject {
125  public:
126  bool startAction(CursorType action, Event &event) override;
127  };
128  class TicketBook: public NamedObject {
129  public:
130  bool startAction(CursorType action, Event &event) override;
131  };
132  class CompartmentDoor: public NamedObject {
133  public:
134  bool _flag;
135  bool startAction(CursorType action, Event &event) override;
136  };
137 
138  /* Actions */
139  class Action1: public ActionExt {
140  private:
141  int useRadio();
142  public:
143  void signal() override;
144  };
145  class Action2: public Action {
146  public:
147  void signal() override;
148  };
149  class Action3: public Action {
150  public:
151  void signal() override;
152  };
153 public:
154  SequenceManager _sequenceManager;
155  Action1 _action1;
156  Action2 _action2;
157  Action3 _action3;
158  NamedObject _object1;
159  MirandaCard _mirandaCard;
160  TicketBook _ticketBook;
161  CompartmentDoor _compartmentDoor;
162  SceneObject _dashboard;
164  NamedHotspot _item1;
165  Ignition _ignition;
166  Item3 _item3;
167  Radio _radio;
168  Compartment _compartment;
169  SpeakerGameText _gameTextSpeaker;
170  SpeakerJakeRadio _jakeRadioSpeaker;
171  ASound _sound;
172  int _newScene;
173  int _sceneNumber;
174  int _visage;
175  CursorType _cursorId;
176 
177  Scene60();
178  void synchronize(Serializer &s) override;
179  void postInit(SceneObjectList *OwnerList = NULL) override;
180  void remove() override;
181  void signal() override;
182  void dispatch() override;
183 };
184 
185 
186 } // End of namespace BlueForce
187 
188 } // End of namespace TsAGE
189 
190 #endif
Definition: blueforce_scenes0.h:101
Definition: str.h:59
Definition: saveload.h:98
Definition: core.h:736
Definition: core.h:355
Definition: blueforce_speakers.h:57
Definition: core.h:134
Definition: sound.h:366
Definition: blueforce_logic.h:330
Definition: sound.h:405
Definition: core.h:614
Definition: blueforce_scenes0.h:58
Definition: blueforce_scenes0.h:41
Definition: events.h:47
Definition: blueforce_logic.h:72
Definition: blueforce_dialogs.h:30
Definition: blueforce_logic.h:194
Definition: saveload.h:63
Definition: blueforce_speakers.h:142
Definition: core.h:163
Definition: core.h:519
Definition: graphics.h:40
Definition: blueforce_logic.h:114
Definition: core.h:625
Definition: converse.h:38
Definition: blueforce_logic.h:119