BBVS: Add override keywords

This commit is contained in:
Bastien Bouclet 2020-02-09 12:05:27 +01:00
parent 9611f091cc
commit 8df458f869
7 changed files with 16 additions and 16 deletions

View File

@ -219,10 +219,10 @@ static const int8 kWalkTurnTbl[] = {
class BbvsEngine : public Engine {
protected:
Common::Error run() override;
virtual bool hasFeature(EngineFeature f) const override;
bool hasFeature(EngineFeature f) const override;
public:
BbvsEngine(OSystem *syst, const ADGameDescription *gd);
~BbvsEngine();
~BbvsEngine() override;
void newGame();
void continueGameFromQuickSave();
void setNewSceneNum(int newSceneNum);

View File

@ -77,20 +77,20 @@ public:
return "bbvs";
}
virtual const char *getName() const override {
const char *getName() const override {
return "MTV's Beavis and Butt-head in Virtual Stupidity";
}
virtual const char *getOriginalCopyright() const override {
const char *getOriginalCopyright() const override {
return "(C) 1995 Viacom New Media";
}
virtual bool hasFeature(MetaEngineFeature f) const override;
virtual bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override;
virtual int getMaximumSaveSlot() const override;
virtual SaveStateList listSaves(const char *target) const override;
bool hasFeature(MetaEngineFeature f) const override;
bool createInstance(OSystem *syst, Engine **engine, const ADGameDescription *desc) const override;
int getMaximumSaveSlot() const override;
SaveStateList listSaves(const char *target) const override;
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const override;
virtual void removeSaveState(const char *target, int slot) const override;
void removeSaveState(const char *target, int slot) const override;
};
bool BbvsMetaEngine::hasFeature(MetaEngineFeature f) const {

View File

@ -62,10 +62,10 @@ enum {
class MainMenu : public GUI::Dialog {
public:
MainMenu(BbvsEngine *vm);
~MainMenu();
~MainMenu() override;
void reflowLayout();
void handleCommand(GUI::CommandSender *sender, uint32 command, uint32 data);
void reflowLayout() override;
void handleCommand(GUI::CommandSender *sender, uint32 command, uint32 data) override;
protected:
BbvsEngine *_vm;

View File

@ -30,7 +30,7 @@ namespace Bbvs {
class MinigameBbAirGuitar : public Minigame {
public:
MinigameBbAirGuitar(BbvsEngine *vm) : Minigame(vm) {};
bool run(bool fromMainGame);
bool run(bool fromMainGame) override;
public:
struct Obj {

View File

@ -30,7 +30,7 @@ namespace Bbvs {
class MinigameBbAnt : public Minigame {
public:
MinigameBbAnt(BbvsEngine *vm) : Minigame(vm) {};
bool run(bool fromMainGame);
bool run(bool fromMainGame) override;
public:
struct Obj {

View File

@ -30,7 +30,7 @@ namespace Bbvs {
class MinigameBbLoogie : public Minigame {
public:
MinigameBbLoogie(BbvsEngine *vm) : Minigame(vm) {};
bool run(bool fromMainGame);
bool run(bool fromMainGame) override;
public:
struct Obj {

View File

@ -30,7 +30,7 @@ namespace Bbvs {
class MinigameBbTennis : public Minigame {
public:
MinigameBbTennis(BbvsEngine *vm) : Minigame(vm) {};
bool run(bool fromMainGame);
bool run(bool fromMainGame) override;
public:
struct Obj {