aboutsummaryrefslogtreecommitdiff
path: root/engines/tucker/tucker.h
diff options
context:
space:
mode:
authorGregory Montoir2008-11-16 20:51:10 +0000
committerGregory Montoir2008-11-16 20:51:10 +0000
commitb45227cfa0d3f025cae1c14afe21699f881c518e (patch)
treec64bb45bfcb7af7d309812c61f2364e792827ae6 /engines/tucker/tucker.h
parentc4a7088c5b5732bc4ffb1a0cea91ed633e0a2d54 (diff)
downloadscummvm-rg350-b45227cfa0d3f025cae1c14afe21699f881c518e.tar.gz
scummvm-rg350-b45227cfa0d3f025cae1c14afe21699f881c518e.tar.bz2
scummvm-rg350-b45227cfa0d3f025cae1c14afe21699f881c518e.zip
some fixes to input handling, cleanup
svn-id: r35100
Diffstat (limited to 'engines/tucker/tucker.h')
-rw-r--r--engines/tucker/tucker.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/engines/tucker/tucker.h b/engines/tucker/tucker.h
index 17726ea570..5a5020d32e 100644
--- a/engines/tucker/tucker.h
+++ b/engines/tucker/tucker.h
@@ -191,6 +191,15 @@ enum Verb {
kVerbUse = 8
};
+enum InputKey {
+ kInputKeyPause = 0,
+ kInputKeyEscape,
+ kInputKeyToggleInventory,
+ kInputKeyToggleTextSpeech,
+ kInputKeyHelp,
+ kInputKeyCount
+};
+
class TuckerEngine: public Engine {
public:
@@ -236,15 +245,12 @@ protected:
void updateCharPositionHelper();
void updateCharPosition();
void updateFlagsForCharPosition();
- void backupPalette();
- void restorePalette();
void fadeOutPalette(int colorsCount = 256);
void fadeInPalette(int colorsCount = 256);
void fadePaletteColor(int color, int step);
void setBlackPalette();
void setPaletteColor(int color, int r, int g, int b);
void updateCursor();
- int getLastKeyCode();
void stopSounds();
void playSounds();
void updateCharactersPath();
@@ -274,8 +280,8 @@ protected:
void startMusic(int offset, int index, int volume);
void stopMusic(int index);
void startSpeechSound(int num, int volume);
+ void stopSpeechSound();
bool isSpeechSoundPlaying();
- void isSoundFinished();
void redrawPanelItems();
void redrawPanelItemsHelper();
void drawSprite(int i);
@@ -537,7 +543,9 @@ protected:
void loadActionFile();
void loadCharPos();
void loadSprA02_01();
+ void unloadSprA02_01();
void loadSprC02_01();
+ void unloadSprC02_01();
void loadFx();
void loadSound(Audio::Mixer::SoundType type, int num, int volume, bool loop, Audio::SoundHandle *handle);
void loadActionsTable();
@@ -562,9 +570,10 @@ protected:
int _nextLocationNum;
bool _gamePaused;
bool _gamePaused2;
- int _data4FlagDebug;
- int _displayGameHints;
+ bool _gameDebug;
+ bool _displayGameHints;
int _execData3Counter;
+ bool _displaySpeechText;
uint8 _maxSaveGameSlot, _currentSaveGameSlot;
uint8 _firstSaveGameSlot, _lastSaveGameSlot;
@@ -602,7 +611,6 @@ protected:
int _mousePosX, _mousePosY;
int _prevMousePosX, _prevMousePosY;
int _mouseButtonsMask;
- int _mouseButtons;
int _mouseButton2;
int _mouseClick;
int _mouseClickOnPanelSliders;
@@ -610,7 +618,7 @@ protected:
bool _leftMouseButtonPressed;
bool _rightMouseButtonPressed;
int _lastKeyPressed;
- int _keyLastKeyCodePressed;
+ bool _inputKeys[kInputKeyCount];
int _cursorNum;
int _cursorType;
int _updateCursorFlag;
@@ -774,7 +782,6 @@ protected:
uint8 *_currentGfxBackground;
int _fadePaletteCounter;
uint8 _currentPalette[768];
- uint8 _backupPalette[768];
int _updateLocationFadePaletteCounter;
int _updateLocationCounter;
@@ -876,7 +883,7 @@ private:
int _updateScreenOffset;
int _frameCounter;
int _frameTime;
- int _lastFrameTime;
+ uint32 _lastFrameTime;
uint8 *_picBufPtr, *_pic2BufPtr;
Audio::SoundHandle _soundsHandle[15];
Audio::SoundHandle _sfxHandle;