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