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