diff options
author | Eugene Sandulenko | 2019-07-03 15:23:05 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:09 +0200 |
commit | 34a3e1685bef4b57f10d4acdbf568a217315fa32 (patch) | |
tree | 0381182d3ecd7e008cd871cd63cd0820ced3b2ab /engines | |
parent | af43070e150452c7876a6bc949c7ad36ae761508 (diff) | |
download | scummvm-rg350-34a3e1685bef4b57f10d4acdbf568a217315fa32.tar.gz scummvm-rg350-34a3e1685bef4b57f10d4acdbf568a217315fa32.tar.bz2 scummvm-rg350-34a3e1685bef4b57f10d4acdbf568a217315fa32.zip |
HDB: Added stub for Menu class
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hdb/hdb.cpp | 4 | ||||
-rw-r--r-- | engines/hdb/hdb.h | 3 | ||||
-rw-r--r-- | engines/hdb/menu.cpp | 37 | ||||
-rw-r--r-- | engines/hdb/menu.h | 38 | ||||
-rw-r--r-- | engines/hdb/module.mk | 1 | ||||
-rw-r--r-- | engines/hdb/sound.cpp | 1 |
6 files changed, 83 insertions, 1 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 6e19f1e389..0d10b506d9 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -32,6 +32,7 @@ #include "hdb/hdb.h" #include "hdb/console.h" +#include "hdb/menu.h" namespace HDB { @@ -45,6 +46,7 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst _fileMan = new FileMan; _gfx = new Gfx; _lua = new LuaScript; + _menu = new Menu; _map = new Map; _ai = new AI; _input = new Input; @@ -175,7 +177,7 @@ bool HDBGame::startMap(char *name) { // don't save cine intro/outro/etc...OR map30 (secret star map) // if (!scumm_strnicmp(name, "map", 3) && scumm_stricmp(name, "map30")) { - //_menu->fillSavegameSlots(); + _menu->fillSavegameSlots(); saveSlot(0); // we ignore the slot parameter in everything else since we just keep saving... } return true; diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index 53ac40fe5a..b9247db0e6 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -56,6 +56,8 @@ struct ADGameDescription; namespace HDB { +class Menu; + enum GameFeatures { ADGF_TALKIE = 1 << 0 }; @@ -136,6 +138,7 @@ public: Map *_map; AI *_ai; Input *_input; + Menu *_menu; Sound *_sound; Window *_window; diff --git a/engines/hdb/menu.cpp b/engines/hdb/menu.cpp new file mode 100644 index 0000000000..a707e847ea --- /dev/null +++ b/engines/hdb/menu.cpp @@ -0,0 +1,37 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#include "hdb/hdb.h" +#include "hdb/menu.h" + +namespace HDB { + +bool Menu::init() { + warning("STUB: Menu::init()"); + return true; +} + +void Menu::fillSavegameSlots() { + warning("STUB: PMenu::fillSavegameSlots()"); +} + +} // End of Namespace diff --git a/engines/hdb/menu.h b/engines/hdb/menu.h new file mode 100644 index 0000000000..cd23b970bd --- /dev/null +++ b/engines/hdb/menu.h @@ -0,0 +1,38 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef HDB_MENU_H +#define HDB_MENU_H + +namespace HDB { + +class Menu { +public: + + bool init(); + + void fillSavegameSlots(); +}; + +} // End of Namespace + +#endif // !HDB_SOUND_H diff --git a/engines/hdb/module.mk b/engines/hdb/module.mk index e6417b905c..7fa8431427 100644 --- a/engines/hdb/module.mk +++ b/engines/hdb/module.mk @@ -18,6 +18,7 @@ MODULE_OBJS := \ input.o \ lua-script.o \ map.o \ + menu.o \ sound.o \ window.o diff --git a/engines/hdb/sound.cpp b/engines/hdb/sound.cpp index 12f64ad2c1..4d39febbb3 100644 --- a/engines/hdb/sound.cpp +++ b/engines/hdb/sound.cpp @@ -25,6 +25,7 @@ namespace HDB { bool Sound::init() { + warning("STUB: Sound::init()"); return true; } |