diff options
author | Peter Kohaut | 2018-01-31 00:37:19 +0100 |
---|---|---|
committer | Peter Kohaut | 2018-02-04 17:34:43 +0100 |
commit | 6e9a340640686fe7dd95efbea34cbf3b7f4209af (patch) | |
tree | fe0adec0b85f3e2b387097c4378ce8337b731460 /engines/bladerunner/ui/kia.h | |
parent | 0300979bdd8d2ca451110d77cb8e05c84365bbec (diff) | |
download | scummvm-rg350-6e9a340640686fe7dd95efbea34cbf3b7f4209af.tar.gz scummvm-rg350-6e9a340640686fe7dd95efbea34cbf3b7f4209af.tar.bz2 scummvm-rg350-6e9a340640686fe7dd95efbea34cbf3b7f4209af.zip |
BLADERUNNER: ESPER interface
Diffstat (limited to 'engines/bladerunner/ui/kia.h')
-rw-r--r-- | engines/bladerunner/ui/kia.h | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/engines/bladerunner/ui/kia.h b/engines/bladerunner/ui/kia.h index 0452230382..0ac7a22600 100644 --- a/engines/bladerunner/ui/kia.h +++ b/engines/bladerunner/ui/kia.h @@ -54,6 +54,21 @@ class Shape; class UIImagePicker; class VQAPlayer; +enum KIASections { + kKIASectionNone = 0, + kKIASectionCrimes = 1, + kKIASectionSuspects = 2, + kKIASectionClues = 3, + kKIASectionSettings = 4, + kKIASectionHelp = 5, + kKIASectionSave = 6, + kKIASectionLoad = 7, + kKIASectionQuit = 8, + kKIASectionDiagnostic = 9, + kKIASectionPogo = 10 +}; + + class KIA { static const char *kPogo; static const int kPlayerActorDialogueQueueCapacity = 31; @@ -68,9 +83,6 @@ class KIA { int _forceOpen; int _transitionId; - int _lastSectionIdKIA; - int _lastSectionIdOptions; - int _playerVqaTimeLast; VQAPlayer *_playerVqaPlayer; int _playerVqaFrame; @@ -86,7 +98,11 @@ class KIA { int _playerActorDialogueQueueSize; int _playerActorDialogueState; + KIASections _currentSectionId; + KIASections _lastSectionIdKIA; + KIASections _lastSectionIdOptions; KIASectionBase *_currentSection; + KIASectionClues *_cluesSection; KIASectionCrimes *_crimesSection; KIASectionDiagnostic *_diagnosticSection; @@ -104,20 +120,22 @@ class KIA { int _pogoPos; public: - int _currentSectionId; - KIALog *_log; - KIAScript *_script; - KIAShapes *_shapes; + KIALog *_log; + KIAScript *_script; + KIAShapes *_shapes; public: KIA(BladeRunnerEngine *vm); ~KIA(); void openLastOpened(); - void openOptions(); + void open(KIASections sectionId); + bool isOpen(); void tick(); + void resume(); + void handleMouseDown(int mouseX, int mouseY, bool mainButton); void handleMouseUp(int mouseX, int mouseY, bool mainButton); void handleKeyUp(const Common::KeyState &kbd); @@ -133,7 +151,6 @@ private: static void mouseUpCallback(int buttonId, void *callbackData); static void loopEnded(void *callbackData, int frame, int loopId); - void open(int sectionId); void init(); void unload(); void switchSection(int sectionId); |