aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/xeen.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-03-25 23:12:14 -0400
committerPaul Gilbert2018-03-25 23:14:22 -0400
commit99729bc15d994fa0b5b6b98a19faa252b7c1415e (patch)
tree5026accf42239921f63abcfb839e8405ef53a2cb /engines/xeen/xeen.h
parentf198c16f455bcbab0b5908eee2771146af544969 (diff)
downloadscummvm-rg350-99729bc15d994fa0b5b6b98a19faa252b7c1415e.tar.gz
scummvm-rg350-99729bc15d994fa0b5b6b98a19faa252b7c1415e.tar.bz2
scummvm-rg350-99729bc15d994fa0b5b6b98a19faa252b7c1415e.zip
XEEN: Add custom engine option for showing inventory item costs
This first new option displays the effective cost of items when viewing in the standard character inventory. This makes it easier to compare the value (and thus relative power) of items against either other
Diffstat (limited to 'engines/xeen/xeen.h')
-rw-r--r--engines/xeen/xeen.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/xeen/xeen.h b/engines/xeen/xeen.h
index 90452ae5e3..b6a95f0d43 100644
--- a/engines/xeen/xeen.h
+++ b/engines/xeen/xeen.h
@@ -106,6 +106,14 @@ struct XeenGameDescription;
#define XEEN_SAVEGAME_VERSION 1
class XeenEngine : public Engine {
+ /**
+ * Container to a set of options newly introduced under ScummVM
+ */
+ struct ExtendedOptions {
+ bool _showItemCosts;
+
+ ExtendedOptions() : _showItemCosts(false) {}
+ };
private:
const XeenGameDescription *_gameDescription;
Common::RandomSource _randomSource;
@@ -115,6 +123,11 @@ private:
*/
bool initialize();
+ /**
+ * Load settings
+ */
+ void loadSettings();
+
// Engine APIs
virtual Common::Error run();
virtual bool hasFeature(EngineFeature f) const;
@@ -185,6 +198,7 @@ public:
uint _endingScore;
bool _gameWon[3];
uint _finalScore;
+ ExtendedOptions _extOptions;
public:
XeenEngine(OSystem *syst, const XeenGameDescription *gameDesc);
virtual ~XeenEngine();