ScummVM API documentation
ringworld_scenes4.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_RINGWORLD_SCENES4_H
23 #define TSAGE_RINGWORLD_SCENES4_H
24 
25 #include "common/scummsys.h"
26 #include "tsage/core.h"
27 #include "tsage/converse.h"
28 #include "tsage/ringworld/ringworld_logic.h"
29 #include "tsage/ringworld/ringworld_speakers.h"
30 
31 namespace TsAGE {
32 
33 namespace Ringworld {
34 
35 using namespace TsAGE;
36 
37 class Scene3500 : public Scene {
38  /* Actions */
39  class Action1 : public Action {
40  public:
41  void signal() override;
42  };
43  class Action2 : public Action {
44  public:
45  void signal() override;
46  };
47 public:
48  SpeakerSText _speakerSText;
49  SpeakerMText _speakerMText;
50  SpeakerQText _speakerQText;
51  Action1 _action1;
52  Action2 _action2;
53 
54  void postInit(SceneObjectList *OwnerList = NULL) override;
55 };
56 
57 class Scene3700 : public Scene {
58  /* Custom classes */
59  class Viewer : public SceneObject {
60  public:
61  Visage _images1;
62  Visage _images2;
63 
64  int _frameList[4];
65  int _percentList[4];
66  bool _active;
67  int _countdownCtr;
68 
69  Viewer();
70  Common::String getClassName() override { return "Viewer"; }
71  void synchronize(Serializer &s) override;
72  void dispatch() override;
73  void reposition() override;
74  void draw() override;
75  };
76 
77  /* Actions */
78  class Action1 : public Action {
79  public:
80  void signal() override;
81  };
82 public:
83  Viewer _viewer;
84  Action1 _action1;
85  SceneObject _hotspot1, _hotspot2;
86  SpeakerSText _speakerSText;
87  SpeakerMText _speakerMText;
88  SpeakerMR _speakerMR;
89  ASound _soundHandler;
90 
91  void postInit(SceneObjectList *OwnerList = NULL) override;
92 };
93 
94 } // End of namespace Ringworld
95 
96 } // End of namespace TsAGE
97 
98 #endif
Definition: str.h:59
Definition: core.h:736
Definition: core.h:134
Definition: sound.h:366
Definition: ringworld_speakers.h:86
Definition: ringworld_scenes4.h:37
Definition: core.h:472
Definition: ringworld_scenes4.h:57
Definition: ringworld_speakers.h:236
Definition: blueforce_dialogs.h:30
Definition: saveload.h:63
Definition: ringworld_speakers.h:100
Definition: scenes.h:33
Definition: core.h:519
Definition: ringworld_speakers.h:93