diff options
author | Paul Gilbert | 2017-12-17 15:20:29 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-12-17 15:20:29 -0500 |
commit | 6abf2d59b466e4f6e8813074ff07dc17ba66de2a (patch) | |
tree | f45a1f755e0bc4e5264a11568a78455ee232968b /engines/xeen/interface.h | |
parent | 5c70b546d3882b745ae4facc4cc107535f41a3bb (diff) | |
download | scummvm-rg350-6abf2d59b466e4f6e8813074ff07dc17ba66de2a.tar.gz scummvm-rg350-6abf2d59b466e4f6e8813074ff07dc17ba66de2a.tar.bz2 scummvm-rg350-6abf2d59b466e4f6e8813074ff07dc17ba66de2a.zip |
XEEN: Properly handle darkness
Diffstat (limited to 'engines/xeen/interface.h')
-rw-r--r-- | engines/xeen/interface.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/engines/xeen/interface.h b/engines/xeen/interface.h index 48d75ab8a0..a249e6f025 100644 --- a/engines/xeen/interface.h +++ b/engines/xeen/interface.h @@ -34,6 +34,14 @@ namespace Xeen { class XeenEngine; +enum Obscurity { + OBSCURITY_BLACK = 0, + OBSCURITY_3 = 1, + OBSCURITY_2 = 2, + OBSCURITY_1 = 3, + OBSCURITY_NONE = 4 +}; + #define HILIGHT_CHAR_DISABLED -2 #define HILIGHT_CHAR_NONE -1 @@ -123,7 +131,7 @@ private: */ void nextChar(); public: - int _intrIndex1; + Obscurity _obscurity; Common::String _interfaceText; int _falling; int _face1State, _face2State; @@ -181,6 +189,11 @@ public: void doCombat(); void spellFX(Character *c); + + /** + * Optionally obscures the scene due to low light conditions + */ + void obscureScene(Obscurity obscurity); }; } // End of namespace Xeen |