22 #ifndef TSAGE_GLOBALS_H 23 #define TSAGE_GLOBALS_H 25 #include "common/random.h" 26 #include "tsage/core.h" 27 #include "tsage/scenes.h" 28 #include "tsage/events.h" 29 #include "tsage/sound.h" 30 #include "tsage/saveload.h" 31 #include "tsage/screen.h" 32 #include "tsage/user_interface.h" 38 static void dispatchSound(
ASound *obj);
57 byte _color1, _color2, _color3;
67 int _paneRefreshFlag[2];
79 void setFlag(
int flagNum) {
80 assert((flagNum >= 0) && (flagNum < MAX_FLAGS));
81 _flags[flagNum] =
true;
83 void clearFlag(
int flagNum) {
84 assert((flagNum >= 0) && (flagNum < MAX_FLAGS));
85 _flags[flagNum] =
false;
87 bool getFlag(
int flagNum)
const {
88 assert((flagNum >= 0) && (flagNum < MAX_FLAGS));
89 return _flags[flagNum];
97 void dispatchSounds();
100 typedef bool (*SelectItemProc)(
int objectNumber);
108 SelectItemProc _onSelectItem;
113 void reset()
override;
119 #define GLOBALS (*::TsAGE::g_globals) 120 #define T2_GLOBALS (*((::TsAGE::TsAGE2Globals *)g_globals)) 121 #define BF_GLOBALS (*((::TsAGE::BlueForce::BlueForceGlobals *)g_globals)) 122 #define R2_GLOBALS (*((::TsAGE::Ringworld2::Ringworld2Globals *)g_globals)) 129 namespace BlueForce {
131 using namespace TsAGE;
135 bStartOfGame, bCalledToDomesticViolence, bArrestedGreen, bLauraToParamedics,
136 bBookedGreen, bStoppedFrankie, bBookedFrankie, bBookedFrankieEvidence,
137 bEndOfWorkDayOne, bTalkedToGrannyAboutSkipsCard, bLyleStoppedBy, bEndDayOne,
138 bInspectionDone, bCalledToDrunkStop, bArrestedDrunk, bEndDayTwo,
139 bFlashBackOne, bFlashBackTwo, bFlashBackThree, bDroppedOffLyle, bEndDayThree,
140 bDoneWithIsland, bDoneAtLyles, bEndDayFour, bInvestigateBoat, bFinishedWGreen,
141 bAmbushed, bAmbushOver, bEndOfGame
145 JAKE_FILE_COPIED, gunClean, onBike, onDuty, fShowedIdToKate, fLateToMarina,
146 fCalledBackup, fWithLyle, gunDrawn, fBackupArrived340, fBriefedBackup,
147 fGotAllSkip340, fToldToLeave340, fBackupIn350, fNetInBoat, fForbesWaiting,
148 fWithCarter, fTalkedToTony, fMugOnKate, takenWeasel, gotTrailer450,
149 showEugeneNapkin, showRapEugene, fMgrCallsWeasel, fCarterMetLyle,
150 fGunLoaded, fLoadedSpare, showEugeneID, fRandomShot350, examinedFile810,
151 shownLyleCrate1, shownLyleRapsheet, shownLyleDisk, shownLylePO,
152 fCanDrawGun, fGotAutoWeapon, fGotBulletsFromDash, fShotSuttersDesk,
153 greenTaken, fLateToDrunkStop, didDrunk, fSearchedTruck, seenFolder,
154 showMugAround, frankInJail, fTalkedCarterDay3, fDecryptedBluePrints,
155 fTalkedToDrunkInCar, fToldLyleOfSchedule, fTalkedShooterNoBkup,
156 fTalkedDriverNoBkup, fDriverOutOfTruck, readGreenRights, readFrankRights,
157 talkedToHarrisAboutDrunk, unlockBoat, fShootGoon, fBlowUpGoon,
158 fTalkedToBarry, fTalkedToLarry, fLeftTraceIn920, fLeftTraceIn900,
159 fBackupAt340, fShotNicoIn910, fGotPointsForTktBook, fGotPointsForMCard,
160 fShowedBluePrint, fGotPointsForPunch, fGotPointsForBox, fGotPointsForBank,
161 fGotPointsForCombo, fGotPointsForCoin, fGotPointsForCPU, fGotPointsForBoots,
162 fGotPointsForCrate, fGotPointsForBlackCord, fGotPointsForGeneratorPlug,
163 fGotPointsForFuseBoxPlug, fGotPointsForStartGenerator, fGotPointsForLightsOn,
164 fGotPointsForOpeningDoor, fGotPointsForClosingDoor, fGotPointsForLightsOff,
165 fGotPointsForGeneratorOff, fGotPointsForCordOnForklift, fGotPointsForCuffingNico,
166 fGotPointsForCuffingDA, fGotPointsForSearchingNico, fGotPointsForSearchingDA,
167 fLeftTraceIn910, fBookedGreenEvidence, fGotPointsForCleaningGun,
168 fGotPointsForMemo, fGotPointsForFBI, fTookTrailerAmmo, fAlertedGreen355,
169 fGotGreen355fTalkedToGrannyDay3, shownFax, beenToJRDay2, shownLyleCrate1Day1,
170 fLyleOnIsland, iWasAmbushed, fGangInCar, fArrivedAtGangStop, ticketVW,
171 f1015Marina, fCan1015Marina, f1015Frankie, fCan1015Frankie, f1015Drunk,
172 fCan1015Drunk, f1027Marina, fCan1027Marina, f1027Frankie, fCan1027Frankie,
173 f1027Drunk, fCan1027Drunk, f1035Marina, fCan1035Marina, f1035Frankie,
174 fCan1035Frankie, f1035Drunk, fCan1035Drunk, f1097Marina, fCan1097Marina,
175 f1097Frankie, fCan1097Frankie, f1097Drunk, fCan1097Drunk, f1098Marina,
176 fCan1098Marina, f1098Frankie, fCan1098Frankie, f1098Drunk, fCan1098Drunk,
177 fCuffedFrankie, fGotPointsForTrapDog, fGotPointsForUnlockGate,
178 fGotPointsForUnlockWarehouse, fGotPointsForLockWarehouse, fGotPointsForLockGate,
179 fGotPointsForFreeDog, fGotPointsForWhistleDog, fGivenNapkin, fCan1004Marina,
180 fCan1004Drunk, fHasLeftDrunk, fHasDrivenFromDrunk, fCrateOpen, fSawGuns,
193 int _safeCombination;
195 int _greenDay5TalkCtr;
199 int8 _breakerBoxStatusArr[18];
200 int _hiddenDoorStatus;
209 uint8 _subFlagBitArr1;
210 uint8 _subFlagBitArr2;
211 bool _scene410HarrisonTalkFl;
212 int _scene410Action1Count;
213 int _scene410TalkCount;
214 bool _scene410HarrisonMovedFl;
217 int _clip1Bullets, _clip2Bullets;
220 bool getHasBullets();
223 void reset()
override;
225 void set2Flags(
int flagNum);
226 bool removeFlag(
int flagNum);
231 namespace Ringworld2 {
233 #define SPEECH_TEXT 1 234 #define SPEECH_VOICE 2 246 ASoundExt _sound1, _sound2, _sound3, _sound4;
249 bool _fadePaletteFlag;
250 byte _fadePaletteMap[10][256];
251 byte _paletteMap[4096];
255 int _electromagnetChangeAmount;
256 int _electromagnetZoom;
261 int _rimTransportLocation;
263 byte _spillLocation[14];
266 byte _flubMazeEntryDirection;
267 int _maze3800SceneNumb;
268 byte _landerSuitNumber;
269 byte _desertStepsRemaining;
270 byte _desertCorrectDirection;
271 byte _desertPreviousDirection;
272 byte _desertMovements[1000];
273 int _desertWrongDirCtr;
274 byte _balloonAltitude;
275 int _scene1925CurrLevel;
276 int _walkwaySceneNumber;
277 byte _mirandaJailState;
278 byte _scientistConvIndex;
280 byte _ductMazePanel1State;
281 byte _ductMazePanel2State;
282 byte _ductMazePanel3State;
288 int _speechSubtitles;
290 byte _scannerFrequencies[4];
291 byte _stripManager_lookupList[12];
292 byte _scene1550JunkLocations[508];
300 void reset()
override;
Definition: graphics.h:57
Definition: globals.h:238
Definition: saveload.h:98
Definition: ringworld2_logic.h:467
Definition: graphics.h:257
Definition: user_interface.h:32
Definition: resources.h:167
Definition: globals.h:184
iterator begin()
Definition: list.h:227
Definition: user_interface.h:116
Definition: saveload.h:115
Definition: blueforce_dialogs.h:30
Definition: saveload.h:63
Definition: globals.h:105
Definition: globals.h:244
Definition: converse.h:38