diff options
author | Andrew Kurushin | 2005-04-24 15:17:38 +0000 |
---|---|---|
committer | Andrew Kurushin | 2005-04-24 15:17:38 +0000 |
commit | a909052c8d0f5b87c2a7602f2cc64237bd381343 (patch) | |
tree | a8d5a57c1177b684e28d2b34d5bd84ce2c87ce49 /saga/interface.h | |
parent | ce3cd9b194633e97eabf693f66498335f1f7557d (diff) | |
download | scummvm-rg350-a909052c8d0f5b87c2a7602f2cc64237bd381343.tar.gz scummvm-rg350-a909052c8d0f5b87c2a7602f2cc64237bd381343.tar.bz2 scummvm-rg350-a909052c8d0f5b87c2a7602f2cc64237bd381343.zip |
fixed object frawing
implemented sfGetObjImage, sfSetObjImage, sfSetObjName
svn-id: r17789
Diffstat (limited to 'saga/interface.h')
-rw-r--r-- | saga/interface.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/saga/interface.h b/saga/interface.h index df48e0b775..ea0d31f4c0 100644 --- a/saga/interface.h +++ b/saga/interface.h @@ -163,14 +163,21 @@ public: bool processKeyCode(int keyCode); +private: + void drawInventory(SURFACE *backBuffer); + void updateInventory(int pos); void inventoryChangePos(int chg); void inventorySetPos(int key); + +public: + void refreshInventory() { + updateInventory(_inventoryCount); + draw(); + } void addToInventory(int objectId, int pos = -1); void removeFromInventory(int objectId); void clearInventory(); int inventoryItemPosition(int objectId); - void drawInventory(); - void updateInventory(int pos); int getInventoryContentByPanelButton(PanelButton * panelButton) { int cell = _inventoryStart + panelButton->id; if (cell >= _inventoryCount) { |