aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-07-12 10:38:30 +0300
committerEugene Sandulenko2013-09-06 14:48:17 +0300
commit1aa11bd86fccc700de84571a24e2fef957abce3d (patch)
tree7ee5dc187e86f54e276cc34841d81dbf6a02ca23 /engines
parent56cb726ebc4446dfab6e625502a1589253deae4f (diff)
downloadscummvm-rg350-1aa11bd86fccc700de84571a24e2fef957abce3d.tar.gz
scummvm-rg350-1aa11bd86fccc700de84571a24e2fef957abce3d.tar.bz2
scummvm-rg350-1aa11bd86fccc700de84571a24e2fef957abce3d.zip
FULLPIPE: Further work on inventory
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/gfx.cpp8
-rw-r--r--engines/fullpipe/gfx.h4
-rw-r--r--engines/fullpipe/inventory.cpp2
-rw-r--r--engines/fullpipe/inventory.h24
-rw-r--r--engines/fullpipe/utils.cpp2
5 files changed, 27 insertions, 13 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index 460452d630..3679f8f345 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -257,7 +257,6 @@ void Picture::setAOIDs() {
_memoryObject2->_rows[i] = ptr;
ptr += pitch;
}
- warning("STUB: Picture::setAOIDs()");
}
void Picture::init() {
@@ -281,6 +280,13 @@ void Picture::getDibInfo() {
_bitmap->pixels = _data;
}
+Bitmap *Picture::getPixelData() {
+ if (!_bitmap)
+ init();
+
+ return _bitmap;
+}
+
BigPicture::BigPicture() {
}
diff --git a/engines/fullpipe/gfx.h b/engines/fullpipe/gfx.h
index f03cc72ff9..aa5dbf4be9 100644
--- a/engines/fullpipe/gfx.h
+++ b/engines/fullpipe/gfx.h
@@ -66,6 +66,10 @@ class Picture : public MemoryObject {
void setAOIDs();
void init();
void getDibInfo();
+ Bitmap *getPixelData();
+
+ byte getAlpha() { return (byte)_alpha; }
+ void setAlpha(byte alpha) { _alpha = alpha; }
};
class BigPicture : public Picture {
diff --git a/engines/fullpipe/inventory.cpp b/engines/fullpipe/inventory.cpp
index 3ca6ce6aa4..5c67e87d36 100644
--- a/engines/fullpipe/inventory.cpp
+++ b/engines/fullpipe/inventory.cpp
@@ -100,6 +100,8 @@ void CInventory2::addItem(int itemId, int value) {
void CInventory2::rebuildItemRects() {
g_fullpipe->accessScene(_sceneId);
+
+ warning("STUB: CInventory2::rebuildItemRects()");
}
} // End of namespace Fullpipe
diff --git a/engines/fullpipe/inventory.h b/engines/fullpipe/inventory.h
index 93f4755e79..36170b86bf 100644
--- a/engines/fullpipe/inventory.h
+++ b/engines/fullpipe/inventory.h
@@ -64,18 +64,20 @@ struct InventoryItem {
typedef Common::Array<InventoryItem> InventoryItems;
+class PictureObject;
+
class InventoryIcon {
- int pictureObjectNormal;
- int pictureObjectMouseInside;
- int pictureObject3;
- int x1;
- int y1;
- int x2;
- int y2;
- int16 inventoryItemId;
- int16 field_1E;
- int isSelected;
- int isMouseInside;
+ PictureObject *_pictureObjectNormal;
+ InventoryIcon **_icons;
+ int _numIcons;
+ int _x1;
+ int _y1;
+ int _x2;
+ int _y2;
+ int16 _inventoryItemId;
+ int16 _field_1E;
+ int _isSelected;
+ int _isMouseInside;
};
typedef Common::Array<InventoryIcon> InventoryIcons;
diff --git a/engines/fullpipe/utils.cpp b/engines/fullpipe/utils.cpp
index 9227d3dc2c..78440d8d53 100644
--- a/engines/fullpipe/utils.cpp
+++ b/engines/fullpipe/utils.cpp
@@ -132,7 +132,7 @@ bool MemoryObject::load(MfcArchive &file) {
}
void MemoryObject::loadFile(char *filename) {
- debug(0, "MemoryObject::loadFile(<%s>)", filename);
+ debug(5, "MemoryObject::loadFile(<%s>)", filename);
if (!_data) {
Common::SeekableReadStream *s = g_fullpipe->_currArchive->createReadStreamForMember(filename);