diff options
author | Marisa-Chan | 2014-11-12 15:47:27 +0600 |
---|---|---|
committer | Marisa-Chan | 2014-11-12 15:47:27 +0600 |
commit | 8e112edb1a7d8d1d579a235bda18b58ffcc18b8c (patch) | |
tree | 89769485c4f0273f1c16f99966e4574c656bb1b6 /engines/zvision/zvision.h | |
parent | db5e2adc5828a4bf888959ebd520bb43e89996fe (diff) | |
download | scummvm-rg350-8e112edb1a7d8d1d579a235bda18b58ffcc18b8c.tar.gz scummvm-rg350-8e112edb1a7d8d1d579a235bda18b58ffcc18b8c.tar.bz2 scummvm-rg350-8e112edb1a7d8d1d579a235bda18b58ffcc18b8c.zip |
ZVISION: Implement Easter eggs and debug cheats
Diffstat (limited to 'engines/zvision/zvision.h')
-rw-r--r-- | engines/zvision/zvision.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engines/zvision/zvision.h b/engines/zvision/zvision.h index 3c9e26b5ec..041a8574a6 100644 --- a/engines/zvision/zvision.h +++ b/engines/zvision/zvision.h @@ -85,7 +85,9 @@ private: WORKING_WINDOW_HEIGHT = 344, ROTATION_SCREEN_EDGE_OFFSET = 60, - MAX_ROTATION_SPEED = 400 // Pixels per second + MAX_ROTATION_SPEED = 400, // Pixels per second + + KEYBUF_SIZE = 20 }; Console *_console; @@ -122,6 +124,8 @@ private: int _rendDelay; int16 _velocity; bool _halveDelay; + + uint8 _cheatBuff[KEYBUF_SIZE]; public: uint32 getFeatures() const; Common::Language getLanguage() const; @@ -205,6 +209,11 @@ private: void updateRotation(); void registerDefaultSettings(); + + void cheatCodes(uint8 key); + void pushKeyToCheatBuf(uint8 key); + bool checkCode(const char *code); + uint8 getBufferedKey(uint8 pos); }; } // End of namespace ZVision |