ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
globals_dragonsphere.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 #ifdef ENABLE_MADSV2
23 
24 #ifndef MADS_GLOBALS_DRAGONSPHERE_H
25 #define MADS_GLOBALS_DRAGONSPHERE_H
26 
27 #include "mads/game.h"
28 #include "mads/resources.h"
29 
30 namespace MADS {
31 
32 namespace Dragonsphere {
33 
34 enum GlobalId {
35  // Global variables
36 
37  kWalkerTiming = 0,
38  kWalkerTiming2 = 1,
39  kPlayerPersona = 10,
40  kPlayerScore = 11,
41  kDragonHighScene = 12,
42  kDragonMyScene = 13,
43  kNoLoadWalker = 14,
44  kPlayerScoreFlags = 15,
45  kSorcerorDefeated = 16,
46  kPreRoom = 17,
47  kPerformDisplacements = 18,
48 
49  kKingStatus = 20,
50  kWardStatus = 21,
51  kTalkedToSoptus = 22,
52  kTalkedToShifter = 23,
53  kAmuletStatus = 24,
54  kBooksStatus = 25,
55  kTapestryStatus = 26,
56  kTalkedToMerchant = 27,
57  kCanViewCrownHole = 28,
58  kTalkedToStatus = 29,
59 
60  kGuardPidStatus = 30,
61  kCrawledOutOfBed101 = 31,
62  kStatueIsOnStairway114 = 32,
63  kDogIsAsleep = 33,
64  kCrystalBallDead = 34,
65  kThrewBone = 35,
66  kWoodenDoorOpen = 36,
67  kKingIsInStairwell = 37,
68  kLlanieStatus = 38,
69  kNoTalkToGuard = 39,
70 
71  kObjectGiven201 = 40,
72  kKingGotStabbed = 41,
73  kGivenObjectBefore = 42,
74  kGuardsAreAsleep = 43,
75  kDomeUp = 44,
76  kTalkedToWise = 45,
77  kDollGiven = 46,
78  kResetConv = 47,
79  kTalkedToGreta = 48,
80  kSlimeHealed = 49,
81 
82  kDanceMusicOn = 50,
83  kPlayerIsSeal = 51,
84  kVinesHavePlayer = 52,
85  kEndOfGame = 53,
86  kResetConv2 = 54,
87  kInvokedFrom111 = 55,
88 
89  kSaveWinsInDesert = 60,
90  kBubblesUpIn301 = 61,
91  kBubbleWontAttack = 62,
92  kPidLookedAtDoll = 63,
93 
94  kOasis = 80,
95  kFireHoles = 81,
96  kDesertRoom = 82,
97  kFromDirection = 83,
98  kDesertCounter = 84,
99  kMoveDirection409 = 85,
100  kHealVerbsVisible = 86,
101  kGrapesHaveGrown = 87,
102  kPidTalkShamon = 88,
103  kPidJustDied = 89,
104 
105  kGrapesAreDead = 90,
106  kRocIsChewingDates = 91,
107  kWinsInDesert = 92,
108  kWinsTillPrize = 93,
109  kPidHasBeenHealedSop = 94,
110  kGamePoints = 95,
111  kDancePoints = 96,
112  kCluePoints = 97,
113  kPrizesOwedToPlayer = 98,
114  kObjectFlags = 99,
115 
116  kWaterfallDiverted = 100,
117  kShakStatus = 101,
118  kMaxGridValue = 102,
119  kMoveDirection510 = 103,
120  kShak506Angry = 104,
121  kMonsterIsDead = 105,
122  kDoneTalkingLani502 = 106,
123  kFoundLani504 = 107,
124  kSaidUseSwordShak = 108,
125  kGobletFilledSoporific = 109,
126 
127  kBeenIn504AsPid = 110,
128  kSeenLaniDeadFirstTime = 111,
129  kSaidPoemIn504 = 112,
130  kTriedToHealLlanie504 = 113,
131  kPutBundleOnLlanie504 = 114,
132  kMake504Empty = 115,
133  kHasTakenMud = 116,
134  kPlatformClicked606 = 117,
135  kHadSpiritBundle = 118,
136 
137  kMudIsInEye603 = 120,
138  kRopeIsAlive = 121,
139  kRatCageIsOpen = 122,
140  kFlaskOnPlate = 123,
141  kFluidIsDripping = 124,
142  kHoleIsIn607 = 125,
143  kRopeIsHangingIn607 = 126,
144  kObjectIsInFreezer605 = 127,
145  kObjectImitated = 128,
146  kHasRed = 129,
147 
148  kHasYellow = 130,
149  kHasBlue = 131,
150  kWizardDead = 132,
151  kVineWillGrab = 133,
152  kFloorIsCool = 134,
153  kRatMelted = 135,
154  kDoorIsCool = 136,
155  kUsedElevator = 137,
156  kBeenOnTopFloor = 138,
157  kTorchIsIn609 = 139,
158 
159  kGridPosition = 140
160  };
161 
162 class DragonsphereGlobals : public Globals {
163 public:
164  SynchronizedList _spriteIndexes;
165  SynchronizedList _sequenceIndexes;
166  SynchronizedList _animationIndexes;
167 public:
171  DragonsphereGlobals();
172 
176  virtual void synchronize(Common::Serializer &s);
177 };
178 
179 } // End of namespace Dragonsphere
180 
181 } // End of namespace MADS
182 
183 #endif /* MADS_GLOBALS_DRAGONSPHERE_H */
184 
185 #endif
Definition: serializer.h:79
Definition: action.h:28