XEEN: Added override keywords

This commit is contained in:
Eugene Sandulenko 2020-02-05 16:38:06 +01:00
parent 58b50be431
commit 78cc55c4b0
2 changed files with 14 additions and 14 deletions

View File

@ -120,24 +120,24 @@ public:
_maxScanDepth = 3;
}
virtual const char *getEngineId() const {
virtual const char *getEngineId() const override {
return "xeen";
}
virtual const char *getName() const {
virtual const char *getName() const override {
return "Xeen";
}
virtual const char *getOriginalCopyright() const {
virtual const char *getOriginalCopyright() const override {
return "Xeen (C) 1992-1993 New World Computing, Inc.";
}
virtual bool hasFeature(MetaEngineFeature f) const override;
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const;
virtual SaveStateList listSaves(const char *target) const;
virtual int getMaximumSaveSlot() const;
virtual void removeSaveState(const char *target, int slot) const;
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const;
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override;
virtual SaveStateList listSaves(const char *target) const override;
virtual int getMaximumSaveSlot() const override;
virtual void removeSaveState(const char *target, int slot) const override;
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const override;
};
bool XeenMetaEngine::hasFeature(MetaEngineFeature f) const {

View File

@ -131,7 +131,7 @@ private:
void loadSettings();
// Engine APIs
virtual Common::Error run();
virtual Common::Error run() override;
virtual bool hasFeature(EngineFeature f) const override;
/**
@ -259,27 +259,27 @@ public:
/**
* Load a savegame
*/
virtual Common::Error loadGameState(int slot);
virtual Common::Error loadGameState(int slot) override;
/**
* Save the game
*/
virtual Common::Error saveGameState(int slot, const Common::String &desc);
virtual Common::Error saveGameState(int slot, const Common::String &desc) override;
/**
* Updates sound settings
*/
virtual void syncSoundSettings();
virtual void syncSoundSettings() override;
/**
* Returns true if a savegame can currently be loaded
*/
virtual bool canLoadGameStateCurrently();
virtual bool canLoadGameStateCurrently() override;
/**
* Returns true if the game can currently be saved
*/
virtual bool canSaveGameStateCurrently();
virtual bool canSaveGameStateCurrently() override;
/**
* Show a cutscene