From 8e112edb1a7d8d1d579a235bda18b58ffcc18b8c Mon Sep 17 00:00:00 2001 From: Marisa-Chan Date: Wed, 12 Nov 2014 15:47:27 +0600 Subject: ZVISION: Implement Easter eggs and debug cheats --- engines/zvision/zvision.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'engines/zvision/zvision.h') 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 -- cgit v1.2.3