ScummVM API documentation
globals_phantom.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_PHANTOM_H
23 #define MADS_GLOBALS_PHANTOM_H
24 
25 #include "mads/game.h"
26 #include "mads/resources.h"
27 
28 namespace MADS {
29 namespace Phantom {
30 
31 enum GlobalId {
32  // Global variables
33 
34  kWalkerTiming = 0,
35  kWalkerTiming2 = 1,
36  kStopWalkerDisabled = 2, // disable walker idle animations
37  kTempInterface = 3,
38  kWalkerConverse = 4, // conversation started with an NPC
39  kWalkerConverseState = 5,
40  kWalkerConverseNow = 6,
41 
42  kCurrentYear = 10, // current year (1881 or 1993)
43  kMusicSelected = 11,
44  kPlayerScore = 12,
45  kPlayerScoreFlags = 13,
46  kDoneBrieConv203 = 14,
47  kLanternStatus = 15,
48 
49  // Section #1 variables
50  kLeaveAngelMusicOn = 19,
51  kTrapDoorStatus = 20,
52  kChristineDoorStatus = 21,
53  kSandbagStatus = 22,
54  kChrisFStatus = 23,
55  kBrieTalkStatus = 24,
56  kJuliesDoor = 25,
57  kPrompterStandStatus = 26,
58  kChrisDStatus = 27,
59  kJulieNameIsKnown = 28,
60  kChrisKickedRaoulOut = 29,
61  kJacquesNameIsKnown = 30,
62  kJacquesStatus = 31,
63  kFlorentNameIsKnown = 32,
64  kCharlesNameIsKnown = 33,
65  kRoom103104Transition = 34,
66  kObservedPhan104 = 35,
67  kDeathLocation = 36,
68  kMakeBrieLeave203 = 37,
69  kHintThatDaaeIsHome1 = 38,
70  kHintThatDaaeIsHome2 = 39,
71 
72  // Section #2 variables
73  kChristineToldEnvelope = 40,
74  kReadBook = 41,
75  kScannedBookcase = 42,
76  kRanConvIn205 = 43,
77  kDoorsIn205 = 44,
78  kPanelIn206 = 45,
79  kMadameNameIsKnown = 46,
80  kMadameGiryLocation = 47,
81  kLookedAtCase = 48,
82  kMadameGiryShowsUp = 49,
83  kDoneRichConv203 = 50,
84  kCameFromFade = 51,
85  kTicketPeoplePresent = 52,
86  kDegasNameIsKnown = 53,
87  kTempVar = 54,
88  kFlickedLever1 = 55,
89  kFlickedLever2 = 56,
90  kFlickedLever3 = 57,
91  kFlickedLever4 = 58,
92 
93  // Section #3 Variables
94  kTopFloorLocked = 60,
95 
96  // Section #4 Variables
97  kCatacombsRoom = 80,
98  kCatacombsMisc = 81,
99  kCatacombsFlag = 82,
100  kCatacombsFrom = 83,
101  kCatacombs309 = 84,
102  kCatacombs409a = 85,
103  kCatacombs409b = 86,
104  kCatacombs501 = 87,
105  kCatacombs309From = 88,
106  kCatacombs409aFrom = 89,
107  kCatacombs409bFrom = 90,
108  kCatacombs501From = 91,
109  kCatacombsNextRoom = 92,
110  kDoorIn409IsOpen = 93,
111  kPriestPistonPuke = 94,
112  kCobwebIsCut = 95,
113 
114  // Section #5 Variables
115  kChristineIsInBoat = 100,
116  kChrisWillTakeSeat = 101,
117  kRightDoorIsOpen504 = 102,
118  kCoffinStatus = 103,
119  kChrisLeft505 = 104,
120  kKnockedOverHead = 105,
121  kFightStatus = 106,
122  kHeListened = 107,
123  kCanFindBookInLibrary = 108,
124  kRingIsOnFinger = 109,
125  kLookedAtSkullFace = 110,
126  kCableHookWasSeparate = 111,
127  kMakeRichLeave203 = 112
128 };
129 
130 class PhantomGlobals : public Globals {
131 public:
132  SynchronizedList _spriteIndexes;
133  SynchronizedList _sequenceIndexes;
134  SynchronizedList _animationIndexes;
135 public:
139  PhantomGlobals();
140 
144  virtual void synchronize(Common::Serializer &s);
145 };
146 
147 } // End of namespace Phantom
148 } // End of namespace MADS
149 
150 #endif
virtual void synchronize(Common::Serializer &s)
Definition: resources.h:78
Definition: serializer.h:79
Definition: globals.h:32
Definition: action.h:28
Definition: globals_phantom.h:130