aboutsummaryrefslogtreecommitdiff
path: root/saga/interface.h
diff options
context:
space:
mode:
authorAndrew Kurushin2005-01-15 20:12:49 +0000
committerAndrew Kurushin2005-01-15 20:12:49 +0000
commit2f20dd57c2da6507a65811ce14cadb4bef1012ff (patch)
tree43f755456057d2d04cfd74881857754db06d9c06 /saga/interface.h
parent139f57a29d27a1c148563a7c8f729f7c3b3e4f3e (diff)
downloadscummvm-rg350-2f20dd57c2da6507a65811ce14cadb4bef1012ff.tar.gz
scummvm-rg350-2f20dd57c2da6507a65811ce14cadb4bef1012ff.tar.bz2
scummvm-rg350-2f20dd57c2da6507a65811ce14cadb4bef1012ff.zip
some work in progress on verb stuff:
- many structers and fields renamed to proper names - added missing functions svn-id: r16562
Diffstat (limited to 'saga/interface.h')
-rw-r--r--saga/interface.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/saga/interface.h b/saga/interface.h
index e481998de9..d9030c3bd7 100644
--- a/saga/interface.h
+++ b/saga/interface.h
@@ -96,19 +96,18 @@ public:
int activate();
int deactivate();
+ bool isActive() { return _active; }
int setMode(int mode, bool force = false);
int getMode(void) const { return _panelMode; }
void rememberMode();
void restoreMode();
- void lockMode() { _lockedMode = _panelMode; }
- void unlockMode() { _panelMode = _lockedMode; }
bool isInMainMode() { return _inMainMode; }
int setStatusText(const char *new_txt);
int loadScenePortraits(int resourceId);
int setLeftPortrait(int portrait);
int setRightPortrait(int portrait);
int draw();
- int update(const Point& imousePointer, int updateFlag);
+ int update(const Point& mousePoint, int updateFlag);
int drawStatusBar(SURFACE *ds);
void drawVerb(int verb, int state);
@@ -120,12 +119,15 @@ public:
private:
int inventoryTest(const Point& imousePt, int *ibutton);
- PanelButton *verbHitTest(const Point& imousePointer);
- void handleCommandUpdate(SURFACE *ds, const Point& imousePointer);
- void handleCommandClick(SURFACE *ds, const Point& imousePointer);
+ PanelButton *verbHitTest(const Point& mousePoint);
+ void handleCommandUpdate(SURFACE *ds, const Point& mousePoint);
+ void handleCommandClick(SURFACE *ds, const Point& mousePoint);
int handlePlayfieldUpdate(SURFACE *ds, const Point& imousePt);
int handlePlayfieldClick(SURFACE *ds, const Point& imousePt);
+ void lockMode() { _lockedMode = _panelMode; }
+ void unlockMode() { _panelMode = _lockedMode; }
+
void drawPanelButtonText(SURFACE *ds, InterfacePanel *panel, PanelButton *panelButton, int textColor, int textShadowColor);
public:
void converseClear(void);
@@ -152,7 +154,7 @@ private:
InterfacePanel _conversePanel;
SpriteList _defPortraits;
SpriteList _scenePortraits;
- SCRIPT_THREAD *_iThread;
+ ScriptThread *_iThread;
PanelButton *_verbTypeToPanelButton[kVerbTypesMax];
bool _active;
@@ -164,6 +166,8 @@ private:
int _leftPortrait;
int _rightPortrait;
+ Point _lastMousePoint;
+
uint16 *_inventory;
int _inventorySize;
byte _inventoryCount;