ScummVM API documentation
Hypno::BoyzEngine Class Reference
Inheritance diagram for Hypno::BoyzEngine:
Hypno::HypnoEngine Engine

Public Member Functions

 BoyzEngine (OSystem *syst, const ADGameDescription *gd)
 
void loadAssets () override
 
void runCode (Code *code) override
 
Common::String findNextLevel (const Common::String &level) override
 
Common::String findNextLevel (const Transition *trans) override
 
void resetSceneState () override
 
void runMenu (Hotspots *hs, bool only_menu=false) override
 
bool hoverHotspot (Common::Point) override
 
void runBeforeArcade (ArcadeShooting *arc) override
 
void runAfterArcade (ArcadeShooting *arc) override
 
void pressedKey (const int keycode) override
 
int detectTarget (const Common::Point &mousePos) override
 
void drawCursorArcade (const Common::Point &mousePos) override
 
bool shoot (const Common::Point &mousePos, ArcadeShooting *arc, bool secondary) override
 
bool clickedSecondaryShoot (const Common::Point &mousePos) override
 
void showCredits () override
 
void showArcadeStats (int territory, const ArcadeStats &data)
 
void missedTarget (Shoot *s, ArcadeShooting *arc) override
 
void drawHealth () override
 
void drawAmmo () override
 
void drawShoot (const Common::Point &target) override
 
void hitPlayer () override
 
void drawPlayer () override
 
void findNextSegment (ArcadeShooting *arc) override
 
void initSegment (ArcadeShooting *arc) override
 
bool checkTransition (ArcadeTransitions &transitions, ArcadeShooting *arc) override
 
void drawString (const Filename &name, const Common::String &str, int x, int y, int w, uint32 c) override
 
Common::Error saveGameStream (Common::WriteStream *stream, bool isAutosave=false) override
 
Common::Error loadGameStream (Common::SeekableReadStream *stream) override
 
Common::StringArray listProfiles ()
 
bool loadProfile (const Common::String &name)
 
void saveProfile (const Common::String &name, int levelId)
 
- Public Member Functions inherited from Hypno::HypnoEngine
 HypnoEngine (OSystem *syst, const ADGameDescription *gd)
 
bool isDemo () const
 
Common::Error run () override
 
bool checkSceneCompleted ()
 
bool checkLevelWon ()
 
void runLevel (Common::String &name)
 
void runScene (Scene *scene)
 
void runArcade (ArcadeShooting *arc)
 
void runTransition (Transition *trans)
 
void restartGame ()
 
void clearAreas ()
 
void initializePath (const Common::FSNode &gamePath) override
 
void splitArcadeFile (const Common::String &filename, Common::String &arc, Common::String &list)
 
void parseArcadeShooting (const Common::String &prefix, const Common::String &name, const Common::String &data)
 
SegmentShootsSequence parseShootList (const Common::String &name, const Common::String &data)
 
void loadArcadeLevel (const Common::String &current, const Common::String &nextWin, const Common::String &nextLose, const Common::String &prefix)
 
void loadSceneLevel (const Common::String &current, const Common::String &next, const Common::String &prefix)
 
void loadSceneLevel (const char *buf, const Common::String &name, const Common::String &next, const Common::String &prefix)
 
LibFileloadLib (const Common::Path &prefix, const Common::Path &filename, bool encrypted)
 
void clickedHotspot (Common::Point)
 
bool cursorPauseMovie (Common::Point)
 
bool cursorExit (Common::Point)
 
bool cursorMask (Common::Point)
 
virtual void loadGame (const Common::String &nextLevel, int score, int puzzleDifficulty, int combatDifficulty)
 
bool canLoadGameStateCurrently (Common::U32String *msg=nullptr) override
 
bool canSaveAutosaveCurrently () override
 
bool canSaveGameStateCurrently (Common::U32String *msg=nullptr) override
 
Common::Path convertPath (const Common::String &)
 
void playVideo (MVideo &video)
 
void skipVideo (MVideo &video)
 
Graphics::SurfacedecodeFrame (const Common::String &name, int frame, byte **palette=nullptr)
 
Frames decodeFrames (const Common::String &name)
 
void loadImage (const Common::String &file, int x, int y, bool transparent, bool palette=false, int frameNumber=0)
 
void drawImage (Graphics::Surface &image, int x, int y, bool transparent)
 
void loadPalette (const Common::String &fname)
 
void loadPalette (const byte *palette, uint32 offset, uint32 size)
 
byte * getPalette (uint32 idx)
 
void disableCursor ()
 
void defaultCursor ()
 
virtual void changeCursor (const Common::String &cursor, uint32 n, bool centerCursor=false)
 
virtual void changeCursor (const Common::String &cursor)
 
virtual void changeCursor (const Graphics::Surface &entry, byte *palette, bool centerCursor=false)
 
void runBackground (Background *a)
 
void runOverlay (Overlay *a)
 
void runMice (Mice *a)
 
void runEscape ()
 
void runSave (Save *a)
 
void runLoad (Load *a)
 
void runLoadCheckpoint (LoadCheckpoint *a)
 
void runTimer (Timer *a)
 
void runQuit (Quit *a)
 
void runCutscene (Cutscene *a)
 
void runIntro (Intro *a)
 
void runPlay (Play *a)
 
void runSound (Sound *a)
 
void runPalette (Palette *a)
 
void runAmbient (Ambient *a)
 
void runWalN (WalN *a)
 
bool runGlobal (Global *a)
 
void runTalk (Talk *a)
 
void runSwapPointer (SwapPointer *a)
 
void runChangeLevel (ChangeLevel *a)
 
virtual void drawBackToMenu (Hotspot *h)
 
void changeScreenMode (const Common::String &mode)
 
void updateScreen (MVideo &video)
 
void updateVideo (MVideo &video)
 
void drawScreen ()
 
void runIntro (MVideo &video)
 
void runIntros (Videos &videos)
 
void playSound (const Filename &filename, uint32 loops, uint32 sampleRate=22050, bool stereo=false)
 
void stopSound ()
 
virtual bool availableObjectives ()
 
virtual bool checkArcadeObjectives ()
 
virtual Common::Point getPlayerPosition (bool needsUpdate)
 
virtual Common::Point computeTargetPosition (const Common::Point &mousePos)
 
virtual bool clickedPrimaryShoot (const Common::Point &mousePos)
 
virtual void missNoTarget (ArcadeShooting *arc)
 
virtual byte * getTargetColor (Common::String name, int levelId)
 
void resetStatistics ()
 
void incLivesUsed ()
 
void incShotsFired ()
 
void incEnemyHits ()
 
void incEnemyTargets ()
 
void incTargetsDestroyed ()
 
void incTargetsMissed ()
 
void incFriendliesEncountered ()
 
void incInfoReceived ()
 
void incScore (int inc)
 
void incBonus (int inc)
 
uint32 killRatio ()
 
uint32 accuracyRatio ()
 
virtual void loadFonts (const Common::String prefix="")
 
virtual void showConversation ()
 
virtual void endConversation ()
 
virtual void rightClickedConversation (const Common::Point &mousePos)
 
virtual void leftClickedConversation (const Common::Point &mousePos)
 
virtual bool hoverConversation (const Common::Point &mousePos)
 
bool startAlarm (uint32, Common::String *)
 
bool startCountdown (uint32)
 
void removeTimers ()
 
- Public Member Functions inherited from Engine
MetaEnginegetMetaEngine () const
 
void setMetaEngine (MetaEngine *metaEngine)
 
PauseToken pauseEngine ()
 
bool isPaused () const
 
void openMainMenuDialog ()
 
uint32 getTotalPlayTime () const
 
void setTotalPlayTime (uint32 time=0)
 
Common::TimerManagergetTimerManager ()
 
Common::EventManagergetEventManager ()
 
Common::SaveFileManagergetSaveFileManager ()
 
bool existExtractedCDAudioFiles (uint track=1)
 
bool isDataAndCDAudioReadFromSameCD ()
 
void warnMissingExtractedCDAudio ()
 
void handleAutoSave ()
 
void saveAutosaveIfEnabled ()
 
virtual int getAutosaveSlot () const
 
 Engine (OSystem *syst)
 
virtual ~Engine ()
 
virtual void errorString (const char *buf_input, char *buf_output, int buf_output_size)
 
virtual GUI::DebuggergetDebugger () final
 
void setDebugger (GUI::Debugger *debugger)
 
GUI::DebuggergetOrCreateDebugger ()
 
bool enhancementEnabled (int32 cls)
 
virtual void syncSoundSettings ()
 
virtual void applyGameSettings ()
 
virtual void flipMute ()
 
virtual Common::String getSaveStateName (int slot) const
 
virtual Common::Error loadGameState (int slot)
 
void setGameToLoadSlot (int slot)
 
virtual Common::Error saveGameState (int slot, const Common::String &desc, bool isAutosave=false)
 
bool saveGameDialog ()
 
bool loadGameDialog ()
 

Public Attributes

Common::String _name
 
Common::Array< int > _ids
 
int _lastLevel
 
bool _flashbackMode
 
ArcadeStats _lastStats
 
ArcadeStats _globalStats
 
- Public Attributes inherited from Hypno::HypnoEngine
const ADGameDescription_gameDescription
 
Common::Language _language
 
Common::Platform _platform
 
Common::String _variant
 
bool _cheatsEnabled
 
bool _infiniteHealthCheat
 
bool _infiniteAmmoCheat
 
bool _unlockAllLevels
 
bool _restoredContentEnabled
 
Audio::SoundHandle _soundHandle
 
Common::InstallShieldV3 _installerArchive
 
Common::List< LibFile * > _archive
 
Levels _levels
 
Common::HashMap< Common::String, int > _sceneState
 
Common::String _checkpoint
 
Common::Path _prefixDir
 
Common::String _defaultCursor
 
uint32 _defaultCursorIdx
 
CursorCache_cursorCache
 
int _screenW
 
int _screenH
 
Graphics::PixelFormat _pixelFormat
 
Graphics::Surface_compositeSurface
 
uint32 _transparentColor
 
Common::Rect screenRect
 
Common::HashMap< Filename, bool > _intros
 
Common::String _nextLevel
 
Common::String _currentLevel
 
uint32 _levelId
 
Hotspots_nextHotsToAdd
 
Hotspots_nextHotsToRemove
 
HotspotsStack stack
 
Videos _nextSequentialVideoToPlay
 
Videos _nextParallelVideoToPlay
 
Videos _escapeSequentialVideoToPlay
 
Videos _videosPlaying
 
Videos _videosLooping
 
MVideo_masks
 
MVideo_additionalVideo
 
const Graphics::Surface_mask
 
Filename _soundPath
 
Filename _music
 
int _musicRate
 
bool _musicStereo
 
bool _doNotStopSounds
 
Common::String _arcadeMode
 
MVideo_background
 
Filename _currentPalette
 
ArcadeTransitions _transitions
 
Segments _segments
 
uint32 _segmentIdx
 
uint32 _segmentOffset
 
uint32 _segmentRepetition
 
uint32 _segmentRepetitionMax
 
uint32 _segmentShootSequenceOffset
 
uint32 _segmentShootSequenceMax
 
ShootSequence _shootSequence
 
ArcadeStats _stats
 
Common::String _difficulty
 
bool _skipLevel
 
bool _loseLevel
 
bool _skipDefeatVideo
 
bool _skipNextVideo
 
int _health
 
int _maxHealth
 
int _ammo
 
int _maxAmmo
 
int _score
 
int _bonus
 
int _lives
 
Common::String _healthString
 
Common::String _scoreString
 
Common::String _objString
 
Common::String _targetString
 
Common::String _directionString
 
Common::String _enterNameString
 
Filename _shootSound
 
Filename _hitSound
 
Filename _additionalSound
 
Shoots _shoots
 
Frames _playerFrames
 
int _playerFrameIdx
 
Common::List< int > _playerFrameSeps
 
int _playerFrameStart
 
int _playerFrameSep
 
int _playerFrameEnd
 
uint32 _objIdx
 
uint32 _objKillsCount [2]
 
uint32 _objMissesCount [2]
 
uint32 _objKillsRequired [2]
 
uint32 _objMissesAllowed [2]
 
Common::BitArray _font05
 
Common::BitArray _font08
 
Actions _conversation
 
bool _refreshConversation
 
int32 _countdown
 
bool _timerStarted
 
bool _keepTimerDuringScenes
 
Common::RandomSource_rnd
 
- Public Attributes inherited from Engine
OSystem_system
 
Audio::Mixer_mixer
 

Additional Inherited Members

- Public Types inherited from Engine
enum  EngineFeature {
  kSupportsSubtitleOptions, kSupportsReturnToLauncher, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime,
  kSupportsChangingOptionsDuringRuntime, kSupportsArbitraryResolutions, kSupportsHelp, kSupportsQuitDialogOverride
}
 
- Static Public Member Functions inherited from Engine
static void quitGame ()
 
static bool shouldQuit ()
 
static bool warnUserAboutUnsupportedGame (Common::String msg=Common::String())
 
static void errorUnsupportedGame (Common::String extraMsg)
 
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)
 
void defaultSyncSoundSettings ()
 
virtual void pauseEngineIntern (bool pause)
 
- Protected Attributes inherited from Engine
Common::TimerManager_timer
 
Common::EventManager_eventMan
 
Common::SaveFileManager_saveFileMan
 
GUI::Dialog_mainMenuDialog
 
const Common::String _targetName
 
int32 _activeEnhancements = kEnhGameBreakingBugFixes
 

Member Function Documentation

◆ saveGameStream()

Common::Error Hypno::BoyzEngine::saveGameStream ( Common::WriteStream stream,
bool  isAutosave = false 
)
overridevirtual

Save a game state.

Parameters
streamThe write stream to save the savegame data to.
isAutosaveExpected to be true if an autosave is being created.
Returns
kNoError on success, otherwise an error code.

Reimplemented from Engine.

◆ loadGameStream()

Common::Error Hypno::BoyzEngine::loadGameStream ( Common::SeekableReadStream stream)
overridevirtual

Load a game state.

Parameters
streamThe stream to load the save state from.
Returns
kNoError on success, otherwise an error code.

Reimplemented from Engine.


The documentation for this class was generated from the following file: