aboutsummaryrefslogtreecommitdiff
path: root/queen/graphics.h
diff options
context:
space:
mode:
authorGregory Montoir2003-11-07 16:44:13 +0000
committerGregory Montoir2003-11-07 16:44:13 +0000
commitf4dc97783984d2008443a3b8292bbde059b9564a (patch)
treeba2c6f69fc988b20793e5e38043f0a8d32e38fc7 /queen/graphics.h
parenta93c9f49ba970fc9abaecbee99dc5ea96ec5a345 (diff)
downloadscummvm-rg350-f4dc97783984d2008443a3b8292bbde059b9564a.tar.gz
scummvm-rg350-f4dc97783984d2008443a3b8292bbde059b9564a.tar.bz2
scummvm-rg350-f4dc97783984d2008443a3b8292bbde059b9564a.zip
add bob parallax stuff for room 74 (carbam)
svn-id: r11197
Diffstat (limited to 'queen/graphics.h')
-rw-r--r--queen/graphics.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/queen/graphics.h b/queen/graphics.h
index d6b36418e2..09762e2e6d 100644
--- a/queen/graphics.h
+++ b/queen/graphics.h
@@ -108,6 +108,29 @@ struct TextSlot {
};
+struct CarBamData {
+ struct Obj {
+ int16 x, y;
+ uint16 frame;
+ };
+ Obj truck;
+ Obj rico;
+ Obj fx;
+ int16 sfx;
+};
+
+
+struct BamData {
+ bool enable;
+ int16 index;
+ int16 sfx;
+
+ BamData()
+ : enable(false), index(0), sfx(0) {
+ }
+};
+
+
class Display;
class Input;
@@ -167,6 +190,11 @@ public:
void cameraBob(int bobNum) { _cameraBob = bobNum; }
int cameraBob() const { return _cameraBob; }
+ BamData *bamData() { return &_bam; }
+ void initCarBamScene();
+ void updateCarBamScene();
+ void cleanupCarBamScene(uint16 i);
+
void update(uint16 room);
@@ -205,10 +233,14 @@ private:
int _cameraBob; // cambob
+ BamData _bam;
+
Display *_display;
Input *_input;
Resource *_resource;
+ static const CarBamData CARBAM_DATA[];
+
};
} // End of namespace Queen