ScummVM API documentation
freescape.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 FREESCAPE_H
23 #define FREESCAPE_H
24 
25 #include "common/bitarray.h"
26 #include "common/events.h"
27 #include "engines/advancedDetector.h"
28 #include "graphics/managed_surface.h"
29 #include "graphics/surface.h"
30 
31 #include "audio/decoders/wave.h"
32 #include "audio/mixer.h"
33 #include "audio/softsynth/pcspk.h"
34 #include "graphics/framelimiter.h"
35 
36 #include "freescape/area.h"
37 #include "freescape/font.h"
38 #include "freescape/gfx.h"
39 #include "freescape/objects/entrance.h"
40 #include "freescape/objects/geometricobject.h"
41 #include "freescape/objects/sensor.h"
42 #include "freescape/sound.h"
43 
44 namespace Common {
45 class RandomSource;
46 }
47 
48 namespace Freescape {
49 
50 class Renderer;
51 
52 #define FREESCAPE_DATA_BUNDLE "freescape.dat"
53 
54 enum CameraMovement {
55  kForwardMovement,
56  kBackwardMovement,
57  kLeftMovement,
58  kRightMovement
59 };
60 
61 enum FreescapeAction {
62  kActionNone,
63  kActionEscape,
64  kActionSave,
65  kActionLoad,
66  kActionToggleSound,
67  kActionMoveUp,
68  kActionMoveDown,
69  kActionMoveLeft,
70  kActionMoveRight,
71  kActionShoot,
72  kActionChangeAngle,
73  kActionChangeStepSize,
74  kActionToggleRiseLower,
75  kActionRiseOrFlyUp,
76  kActionLowerOrFlyDown,
77  kActionChangeMode,
78  kActionSkip,
79  kActionFaceForward,
80  kActionRotateUp,
81  kActionRotateDown,
82  kActionRotateLeft,
83  kActionRotateRight,
84  kActionTurnBack,
85  kActionInfoMenu,
86  kActionIncreaseStepSize,
87  kActionDecreaseStepSize,
88  kActionToggleFlyMode,
89  kActionToggleClipMode,
90  // Driller
91  kActionDeployDrillingRig,
92  kActionCollectDrillingRig,
93  // Total Eclipse
94  kActionRest,
95  // Castle
96  kActionRunMode,
97  kActionWalkMode,
98  kActionCrawlMode,
99  kActionSelectPrince,
100  kActionSelectPrincess,
101 };
102 
103 typedef Common::HashMap<uint16, Area *> AreaMap;
104 typedef Common::Array<byte *> ColorMap;
105 typedef Common::HashMap<uint16, int32> StateVars;
106 
107 enum {
108  kFreescapeDebugMove = 1 << 0,
109  kFreescapeDebugParser = 1 << 1,
110  kFreescapeDebugCode = 1 << 2,
111  kFreescapeDebugMedia = 1 << 4,
112  kFreescapeDebugGroup = 1 << 5,
113 };
114 
115 enum {
116  kFreescapeDefaultVolume = 192,
117 };
118 
119 enum GameStateControl {
120  kFreescapeGameStateStart,
121  kFreescapeGameStatePlaying,
122  kFreescapeGameStateDemo,
123  kFreescapeGameStateEnd,
124  kFreescapeGameStateRestart,
125 };
126 
128  int areaId;
129  byte *palette;
130 };
131 
132 extern Common::String shiftStr(const Common::String &str, int shift);
133 
135 public:
137  // EventManager API
138  bool pollEvent(Common::Event &event);
139  void purgeKeyboardEvents();
140  void purgeMouseEvents();
141  void pushEvent(Common::Event &event);
142  void clearExitEvents();
143 
144 private:
145  // for continuous events (keyDown)
146  enum {
147  kKeyRepeatInitialDelay = 400,
148  kKeyRepeatSustainDelay = 100
149  };
150 
151  Common::EventManager *_delegate;
152 
153  Common::KeyState _currentKeyDown;
154  Common::CustomEventType _currentActionDown;
155  uint32 _keyRepeatTime;
156 };
157 
158 class FreescapeEngine : public Engine {
159 
160 public:
161  FreescapeEngine(OSystem *syst, const ADGameDescription *gd);
162  ~FreescapeEngine();
163 
164  const ADGameDescription *_gameDescription;
165  GameStateControl _gameStateControl;
166  bool isDemo() const;
167 
168  // Game selection
169  uint32 _variant;
170  Common::Language _language;
171  bool isSpaceStationOblivion() { return _targetName.hasPrefix("spacestationoblivion"); }
172  bool isDriller() { return _targetName.hasPrefix("driller") || _targetName.hasPrefix("spacestationoblivion"); }
173  bool isDark() { return _targetName.hasPrefix("darkside"); }
174  bool isEclipse() { return _targetName.hasPrefix("totaleclipse"); } // This will match Total Eclipse 1 and 2.
175  bool isEclipse2() { return _targetName.hasPrefix("totaleclipse2"); }
176  bool isCastle() { return _targetName.hasPrefix("castle"); }
177  bool isAmiga() { return _gameDescription->platform == Common::kPlatformAmiga; }
178  bool isAtariST() { return _gameDescription->platform == Common::kPlatformAtariST; }
179  bool isDOS() { return _gameDescription->platform == Common::kPlatformDOS; }
180  bool isSpectrum() { return _gameDescription->platform == Common::kPlatformZX; }
181  bool isCPC() { return _gameDescription->platform == Common::kPlatformAmstradCPC; }
182  bool isC64() { return _gameDescription->platform == Common::kPlatformC64; }
183 
184  Common::Error run() override;
185 
186  // UI
187  Common::Rect _viewArea;
188  Common::Rect _fullscreenViewArea;
189  void centerCrossair();
190 
191  virtual void borderScreen();
192  virtual void titleScreen();
193 
194  void drawFullscreenSurface(Graphics::Surface *surface);
195  virtual void loadBorder();
196  virtual void processBorder();
197  void waitInLoop(int maxWait);
198  void drawBorder();
199  void drawTitle();
200  virtual void drawBackground();
201  void clearBackground();
202  virtual void drawUI();
203  virtual void drawInfoMenu();
204  void drawBorderScreenAndWait(Graphics::Surface *surface, int maxWait = INT_MAX);
205 
206  virtual void drawCrossair(Graphics::Surface *surface);
207  Graphics::ManagedSurface *_border;
208  Graphics::ManagedSurface *_title;
209  Graphics::ManagedSurface *_background;
210 
211  Texture *_borderTexture;
212  Texture *_titleTexture;
213  Texture *_uiTexture;
214  Texture *_skyTexture;
215 
217  Common::HashMap<uint16, Texture *> _borderCGAByArea;
218  Common::HashMap<uint16, byte *> _paletteCGAByArea;
219 
220  // Parsing assets
221  uint8 _binaryBits;
222  virtual void loadAssets();
223  virtual void loadAssetsDemo();
224  virtual void loadAssetsFullGame();
225 
226  virtual void loadAssetsAtariFullGame();
227  virtual void loadAssetsAtariDemo();
228 
229  virtual void loadAssetsAmigaFullGame();
230  virtual void loadAssetsAmigaDemo();
231 
232  virtual void loadAssetsDOSFullGame();
233  virtual void loadAssetsDOSDemo();
234 
235  virtual void loadAssetsZXFullGame();
236  virtual void loadAssetsZXDemo();
237 
238  virtual void loadAssetsCPCFullGame();
239  virtual void loadAssetsCPCDemo();
240 
241  virtual void loadAssetsC64FullGame();
242  virtual void loadAssetsC64Demo();
243 
244  virtual void drawDOSUI(Graphics::Surface *surface);
245  virtual void drawZXUI(Graphics::Surface *surface);
246  virtual void drawCPCUI(Graphics::Surface *surface);
247  virtual void drawC64UI(Graphics::Surface *surface);
248  virtual void drawAmigaAtariSTUI(Graphics::Surface *surface);
249 
250  Common::Archive *_dataBundle;
251  void loadDataBundle();
252  Graphics::Surface *loadBundledImage(const Common::String &name, bool appendRenderMode = true);
253  byte *getPaletteFromNeoImage(Common::SeekableReadStream *stream, int offset);
254  Graphics::ManagedSurface *loadAndConvertNeoImage(Common::SeekableReadStream *stream, int offset, byte *palette = nullptr);
255  Graphics::ManagedSurface *loadAndCenterScrImage(Common::SeekableReadStream *stream);
256  void loadPalettes(Common::SeekableReadStream *file, int offset);
257  byte *loadPalette(Common::SeekableReadStream *file);
258  void swapPalette(uint16 areaID);
259  virtual byte *findCGAPalette(uint16 levelID);
260  Common::HashMap<uint16, byte *> _paletteByArea;
261  void loadColorPalette();
262 
263  // Demo
264  Common::Array<byte> _demoData;
265  int _demoIndex;
266  int _currentDemoInputCode;
267  int _currentDemoInputRepetition;
268  Common::Array<Common::Event> _demoEvents;
269  Common::Point _currentDemoMousePosition;
270  void loadDemoData(Common::SeekableReadStream *file, int offset, int size);
271  int decodeAmigaAtariKey(int code);
272  int decodeDOSKey(int code);
273  Common::Event decodeDOSMouseEvent(int code, int repetition);
274 
275  uint16 readField(Common::SeekableReadStream *file, int nbits);
276  uint16 readPtr(Common::SeekableReadStream *file);
277  Common::Array<uint16> readArray(Common::SeekableReadStream *file, int size);
278 
279  // 8-bit
280  void load8bitBinary(Common::SeekableReadStream *file, int offset, int ncolors);
281  Area *load8bitArea(Common::SeekableReadStream *file, uint16 ncolors);
282  Object *load8bitObject(Common::SeekableReadStream *file);
283  Group *load8bitGroup(Common::SeekableReadStream *file, byte rawFlagsAndType);
284  Group *load8bitGroupV1(Common::SeekableReadStream *file, byte rawFlagsAndType);
285  Group *load8bitGroupV2(Common::SeekableReadStream *file, byte rawFlagsAndType);
286 
287  void loadGlobalObjects(Common::SeekableReadStream *file, int offset, int size);
288  void renderPixels8bitBinImage(Graphics::ManagedSurface *surface, int row, int column, int bit, int count);
289 
290  void renderPixels8bitBinCGAImage(Graphics::ManagedSurface *surface, int &i, int &j, uint8 pixels, int color);
291  void renderPixels8bitBinEGAImage(Graphics::ManagedSurface *surface, int &i, int &j, uint8 pixels, int color);
292 
293  Graphics::ManagedSurface *load8bitBinImage(Common::SeekableReadStream *file, int offset);
294  void load8bitBinImageRow(Common::SeekableReadStream *file, Graphics::ManagedSurface *surface, int row);
295  void load8bitBinImageRowIteration(Common::SeekableReadStream *file, Graphics::ManagedSurface *surface, int row, int bit);
296  int execute8bitBinImageCommand(Common::SeekableReadStream *file, Graphics::ManagedSurface *surface, int row, int pixels, int bit);
297  int execute8bitBinImageSingleCommand(Common::SeekableReadStream *file, Graphics::ManagedSurface *surface, int row, int pixels, int bit, int count);
298  int execute8bitBinImageMultiCommand(Common::SeekableReadStream *file, Graphics::ManagedSurface *surface, int row, int pixels, int bit, int count);
299 
300  void parseAmigaAtariHeader(Common::SeekableReadStream *file);
301  Common::SeekableReadStream *decryptFileAmigaAtari(const Common::Path &packed, const Common::Path &unpacker, uint32 unpackArrayOffset);
302 
303  // Areas
304  uint16 _startArea;
305  uint16 _endArea;
306  AreaMap _areaMap;
307  Area *_currentArea;
308  bool _gotoExecuted;
309  Math::Vector3d _scale;
310 
311  virtual void gotoArea(uint16 areaID, int entranceID);
312  // Entrance
313  uint16 _startEntrance;
314  uint16 _endEntrance;
316 
317  // Input
318  bool _demoMode;
319  bool _disableDemoMode;
320  bool _flyMode;
321  bool _shootMode;
322  bool _noClipMode;
323  bool _invertY;
324  virtual void initKeymaps(Common::Keymap *engineKeyMap, Common::Keymap *infoScreenKeyMap, const char *target);
325  EventManagerWrapper *_eventManager;
326  void processInput();
327  void resetInput();
328  void generateDemoInput();
329  virtual void pressedKey(const int keycode);
330  virtual void releasedKey(const int keycode);
331  Common::Point getNormalizedPosition(Common::Point position);
332  virtual bool onScreenControls(Common::Point mouse);
333  void move(CameraMovement direction, uint8 scale, float deltaTime);
334  void resolveCollisions(Math::Vector3d newPosition);
335  virtual void checkIfStillInArea();
336  void changePlayerHeight(int index);
337  void increaseStepSize();
338  void decreaseStepSize();
339  void changeStepSize();
340 
341  void changeAngle();
342  bool rise();
343  void lower();
344  bool checkFloor(Math::Vector3d currentPosition);
345  bool tryStepUp(Math::Vector3d currentPosition);
346  bool tryStepDown(Math::Vector3d currentPosition);
347  bool _hasFallen;
348  int _maxFallingDistance;
349  int _maxShield;
350  int _maxEnergy;
351 
352  void rotate(float xoffset, float yoffset);
353  // Input state
354  float _lastFrame;
355 
356  // Interaction
357  void activate();
358  void shoot();
359  void traverseEntrance(uint16 entranceID);
360 
361  // Euler Angles
362  float _yaw;
363  float _pitch;
364  int _angleRotationIndex;
365  Common::Array<float> _angleRotations;
366 
367  Math::Vector3d directionToVector(float pitch, float heading, bool useTable);
368  void updateCamera();
369 
370  // Camera options
371  Common::Point _crossairPosition;
372  float _mouseSensitivity;
373  Math::Vector3d _upVector; // const
374  Math::Vector3d _cameraFront, _cameraRight;
375  // Spacial attributes
376  Math::Vector3d _position, _rotation, _velocity;
377  Math::Vector3d _lastPosition;
378  int _playerHeightNumber;
379  int _playerHeightMaxNumber;
380  uint16 _playerHeight;
381  uint16 _playerWidth;
382  uint16 _playerDepth;
383  uint16 _stepUpDistance;
384 
385  int _playerStepIndex;
386  Common::Array<int> _playerSteps;
387 
388  Common::Point crossairPosToMousePos(const Common::Point crossairPos);
389  Common::Point mousePosToCrossairPos(const Common::Point mousePos);
390  void warpMouseToCrossair(void);
391 
392  // Effects
393  Common::Array<Common::String> _conditionSources;
395 
396  bool runCollisionConditions(Math::Vector3d const lastPosition, Math::Vector3d const newPosition);
397  Math::Vector3d _objExecutingCodeSize;
398  bool _executingGlobalCode;
399  virtual void executeMovementConditions();
400  bool executeObjectConditions(GeometricObject *obj, bool shot, bool collided, bool activated);
401  void executeEntranceConditions(Entrance *entrance);
402  void executeLocalGlobalConditions(bool shot, bool collided, bool timer);
403  bool executeCode(FCLInstructionVector &code, bool shot, bool collided, bool timer, bool activated);
404 
405  // Instructions
406  bool checkConditional(FCLInstruction &instruction, bool shot, bool collided, bool timer, bool activated);
407  bool checkIfGreaterOrEqual(FCLInstruction &instruction);
408  bool checkIfLessOrEqual(FCLInstruction &instruction);
409  void executeExecute(FCLInstruction &instruction, bool shot, bool collided, bool activated);
410  void executeIncrementVariable(FCLInstruction &instruction);
411  void executeDecrementVariable(FCLInstruction &instruction);
412  void executeSetVariable(FCLInstruction &instruction);
413  void executeGoto(FCLInstruction &instruction);
414  void executeIfThenElse(FCLInstruction &instruction);
415  virtual void executeMakeInvisible(FCLInstruction &instruction);
416  void executeMakeVisible(FCLInstruction &instruction);
417  void executeToggleVisibility(FCLInstruction &instruction);
418  virtual void executeDestroy(FCLInstruction &instruction);
419  virtual void executeRedraw(FCLInstruction &instruction);
420  void executeSound(FCLInstruction &instruction);
421  void executeDelay(FCLInstruction &instruction);
422  bool executeEndIfNotEqual(FCLInstruction &instruction);
423  void executeSetBit(FCLInstruction &instruction);
424  void executeClearBit(FCLInstruction &instruction);
425  void executeToggleBit(FCLInstruction &instruction);
426  bool executeEndIfBitNotEqual(FCLInstruction &instruction);
427  bool executeEndIfVisibilityIsEqual(FCLInstruction &instruction);
428  void executeSwapJet(FCLInstruction &instruction);
429  virtual void executePrint(FCLInstruction &instruction);
430  void executeSPFX(FCLInstruction &instruction);
431  void executeStartAnim(FCLInstruction &instruction);
432 
433  // Sound
434  Audio::SoundHandle _soundFxHandle;
435  Audio::SoundHandle _musicHandle;
436  Freescape::SizedPCSpeaker *_speaker;
437 
438  bool _syncSound;
439  bool _firstSound;
440  bool _usePrerecordedSounds;
441  void waitForSounds();
442  void stopAllSounds();
443  bool isPlayingSound();
444  void playSound(int index, bool sync);
445  void playWav(const Common::Path &filename);
446  void playMusic(const Common::Path &filename);
447  void queueSoundConst(double hzFreq, int duration);
448  void playSilence(int duration, bool sync);
449  void playSoundConst(double hzFreq, int duration, bool sync);
450  void playSoundSweepIncWL(double hzFreq1, double hzFreq2, double wlStepPerMS, int resolution, bool sync);
451  uint16 playSoundDOSSpeaker(uint16 startFrequency, soundSpeakerFx *speakerFxInfo);
452  void playSoundDOS(soundSpeakerFx *speakerFxInfo, bool sync);
453 
454  virtual void playSoundFx(int index, bool sync);
455  virtual void loadSoundsFx(Common::SeekableReadStream *file, int offset, int number);
457  void loadSpeakerFxDOS(Common::SeekableReadStream *file, int offsetFreq, int offsetDuration);
458  void loadSpeakerFxZX(Common::SeekableReadStream *file, int sfxTable, int sfxData);
460 
461  void playSoundZX(Common::Array<soundUnitZX> *data);
463  int _soundIndexShoot;
464  int _soundIndexCollide;
465  int _soundIndexFall;
466  int _soundIndexClimb;
467  int _soundIndexMenu;
468  int _soundIndexStart;
469  int _soundIndexAreaChange;
470  int _soundIndexHit;
471 
472  int _soundIndexNoShield;
473  int _soundIndexNoEnergy;
474  int _soundIndexFallen;
475  int _soundIndexTimeout;
476  int _soundIndexForceEndGame;
477  int _soundIndexCrushed;
478  int _soundIndexMissionComplete;
479 
480  // Rendering
481  int _screenW, _screenH;
482  Renderer *_gfx;
483  Graphics::FrameLimiter *_frameLimiter;
484  bool _vsyncEnabled;
485  Common::RenderMode _renderMode;
486  ColorMap _colorMap;
487  int _underFireFrames;
488  int _avoidRenderingFrames;
489  int _shootingFrames;
490  GeometricObject *_delayedShootObject;
491  void drawFrame();
492  void flashScreen(int backgroundColor);
493  uint8 _colorNumber;
494  Math::Vector3d _scaleVector;
495  float _nearClipPlane;
496  float _farClipPlane;
497 
498  // Text messages and Fonts
499  void insertTemporaryMessage(const Common::String message, int deadline);
500  void getLatestMessages(Common::String &message, int &deadline);
501  void clearTemporalMessages();
502  Common::StringArray _temporaryMessages;
503  Common::Array<int> _temporaryMessageDeadlines;
504  Common::StringArray _messagesList;
505  Common::String _noShieldMessage;
506  Common::String _noEnergyMessage;
507  Common::String _fallenMessage;
508  Common::String _timeoutMessage;
509  Common::String _forceEndGameMessage;
510  Common::String _crushedMessage;
511  Common::String _outOfReachMessage;
512  Common::String _noEffectMessage;
513 
514  void loadMessagesFixedSize(Common::SeekableReadStream *file, int offset, int size, int number);
515  virtual void loadMessagesVariableSize(Common::SeekableReadStream *file, int offset, int number);
516  void drawFullscreenMessageAndWait(Common::String message);
517  void drawFullscreenMessage(Common::String message, uint32 front, Graphics::Surface *surface);
518 
519  // Font loading and rendering
520  void loadFonts(Common::SeekableReadStream *file, int offset);
521  void loadFonts(byte *font, int charNumber);
522  Common::Array<Graphics::ManagedSurface *> getChars(Common::SeekableReadStream *file, int offset, int charsNumber);
523  Common::Array<Graphics::ManagedSurface *> getCharsAmigaAtariInternal(int sizeX, int sizeY, int additional, int m1, int m2, Common::SeekableReadStream *file, int offset, int charsNumber);
524  Common::Array<Graphics::ManagedSurface *> getCharsAmigaAtari(Common::SeekableReadStream *file, int offset, int charsNumber);
525  Common::StringArray _currentAreaMessages;
526  Common::StringArray _currentEphymeralMessages;
527  Font _font;
528  bool _fontLoaded;
529  virtual void drawStringInSurface(const Common::String &str, int x, int y, uint32 fontColor, uint32 backColor, Graphics::Surface *surface, int offset = 0);
530  virtual void drawStringInSurface(const Common::String &str, int x, int y, uint32 primaryFontColor, uint32 secondaryFontColor, uint32 backColor, Graphics::Surface *surface, int offset = 0);
531  Graphics::Surface *drawStringsInSurface(const Common::Array<Common::String> &lines, Graphics::Surface *surface);
532 
533  // Game state
534  virtual void initGameState();
535  void setGameBit(int index);
536  void clearGameBit(int index);
537  void toggleGameBit(int index);
538  uint16 getGameBit(int index);
539 
540  StateVars _gameStateVars;
541  uint32 _gameStateBits;
542  void checkIfPlayerWasCrushed();
543  virtual bool checkIfGameEnded();
544  virtual void endGame();
545  int _endGameDelayTicks;
546  bool _endGameKeyPressed;
547  bool _endGamePlayerEndArea;
548  bool _forceEndGame;
549  bool _playerWasCrushed;
550  Common::HashMap<uint16, bool> _exploredAreas;
551  ObjectArray _sensors;
552  virtual void checkSensors();
553  virtual void drawSensorShoot(Sensor *sensor);
554  void takeDamageFromSensor();
555 
556  bool hasFeature(EngineFeature f) const override;
557  bool canLoadGameStateCurrently(Common::U32String *msg = nullptr) override { return true; }
558  bool canSaveAutosaveCurrently() override { return false; }
559  bool canSaveGameStateCurrently(Common::U32String *msg = nullptr) override { return _gameStateControl == kFreescapeGameStatePlaying && _currentArea; }
560  Common::Error loadGameStream(Common::SeekableReadStream *stream) override;
561  Common::Error saveGameStream(Common::WriteStream *stream, bool isAutosave = false) override;
562  virtual Common::Error saveGameStreamExtended(Common::WriteStream *stream, bool isAutosave = false);
563  virtual Common::Error loadGameStreamExtended(Common::SeekableReadStream *stream);
564  Graphics::Surface *_savedScreen;
565 
566  void pauseEngineIntern(bool pause) override;
567 
568  // Timers
569  bool startCountdown(uint32 delay);
570  void removeTimers();
571  bool _timerStarted;
572  int _initialCountdown;
573  int _countdown;
574  int _ticks;
575  int _ticksFromEnd;
576  int _lastTick;
577  int _lastMinute;
578 
579  void getTimeFromCountdown(int &seconds, int &minutes, int &hours);
580  virtual void updateTimeVariables();
581 
582  // Cheats
583  bool _useExtendedTimer;
584  bool _disableSensors;
585  bool _disableFalling;
586 
587  // Random
588  Common::RandomSource *_rnd;
589 };
590 
591 enum GameReleaseFlags {
592  GF_AMIGA_RETAIL = (1 << 0),
593  GF_AMIGA_BUDGET = (1 << 1),
594  GF_ZX_RETAIL = (1 << 2),
595  GF_ZX_BUDGET = (1 << 3),
596  GF_ZX_DISC = (1 << 4),
597  GF_CPC_RETAIL = (1 << 5),
598  GF_CPC_RETAIL_ALT = (1 << 6),
599  GF_CPC_BUDGET = (1 << 7),
600  GF_CPC_VIRTUALWORLDS = (1 << 8),
601  GF_ATARI_RETAIL = (1 << 9),
602  GF_ATARI_BUDGET = (1 << 10)
603 };
604 
605 extern FreescapeEngine *g_freescape;
606 
607 } // namespace Freescape
608 
609 #endif // FREESCAPE_H
Definition: geometricobject.h:34
Definition: managed_surface.h:51
Definition: group.h:40
Definition: sound.h:45
Definition: framelimiter.h:37
Definition: keymap.h:66
Definition: str.h:59
Definition: surface.h:67
EngineFeature
Definition: engine.h:253
Definition: stream.h:77
Definition: error.h:84
bool canSaveAutosaveCurrently() override
Definition: freescape.h:558
Definition: area.h:36
Definition: freescape.h:134
Definition: advancedDetector.h:163
Definition: random.h:44
RenderMode
Definition: rendermode.h:48
Definition: rect.h:144
Definition: area.h:40
Definition: path.h:52
uint32 CustomEventType
Definition: events.h:193
Definition: stream.h:745
Definition: archive.h:141
Definition: freescape.h:158
bool canSaveGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: freescape.h:559
Definition: mixer.h:49
Definition: gfx.h:60
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: sensor.h:34
Definition: ustr.h:57
Definition: events.h:199
Definition: algorithm.h:29
Definition: rect.h:45
Definition: entrance.h:34
Out move(In first, In last, Out dst)
Definition: algorithm.h:109
Definition: font.h:32
Definition: keyboard.h:294
bool canLoadGameStateCurrently(Common::U32String *msg=nullptr) override
Definition: freescape.h:557
Definition: object.h:56
Definition: sound.h:54
Definition: system.h:161
Definition: instruction.h:36
Definition: freescape.h:127
Common::Platform platform
Definition: advancedDetector.h:198
Definition: events.h:472
Definition: engine.h:144
Definition: gfx.h:47
Language
Definition: language.h:45