aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
authoruruk2014-02-20 22:43:29 +0100
committeruruk2014-02-20 22:43:29 +0100
commit614006c1e575df5ca03059669e435aedd64e8db1 (patch)
tree20e96de3ac89755df6eee63ebbb481fa9df24314 /engines/avalanche
parent401b85eb214e6980e8d030cf36bd55d78371d732 (diff)
downloadscummvm-rg350-614006c1e575df5ca03059669e435aedd64e8db1.tar.gz
scummvm-rg350-614006c1e575df5ca03059669e435aedd64e8db1.tar.bz2
scummvm-rg350-614006c1e575df5ca03059669e435aedd64e8db1.zip
AVALANCHE: Implement ShootEmUp::defineCameo().
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/shootemup.cpp17
-rw-r--r--engines/avalanche/shootemup.h2
2 files changed, 16 insertions, 3 deletions
diff --git a/engines/avalanche/shootemup.cpp b/engines/avalanche/shootemup.cpp
index 51bc714c28..5f48c2f6dd 100644
--- a/engines/avalanche/shootemup.cpp
+++ b/engines/avalanche/shootemup.cpp
@@ -215,8 +215,21 @@ void ShootEmUp::define(int16 x, int16 y, byte p, int8 ix, int8 iy, int16 time, b
}
}
-void ShootEmUp::defineCameo(int16 xx, int16 yy, byte pp, int16 time) {
- warning("STUB: ShootEmUp::defineCameo()");
+void ShootEmUp::defineCameo(int16 x, int16 y, byte p, int16 time) {
+ for (int i = 0; i < 99; i++) {
+ if (_sprites[i]._x == kFlag) {
+ _sprites[i]._x = x;
+ _sprites[i]._y = y;
+ _sprites[i]._p = p;
+ _sprites[i]._ix = 0;
+ _sprites[i]._iy = 0;
+ _sprites[i]._timeout = time;
+ _sprites[i]._cameo = true;
+ _sprites[i]._cameoFrame = p + 1;
+ _sprites[i]._missile = false;
+ _sprites[i]._wipe = false;
+ }
+ }
}
void ShootEmUp::showStock(byte index) {
diff --git a/engines/avalanche/shootemup.h b/engines/avalanche/shootemup.h
index 36ef8d0e73..d0df763715 100644
--- a/engines/avalanche/shootemup.h
+++ b/engines/avalanche/shootemup.h
@@ -103,7 +103,7 @@ private:
void blank(Common::Rect rect);
void plotThem();
void define(int16 x, int16 y, byte p, int8 ix, int8 iy, int16 time, bool isAMissile, bool doWeWipe);
- void defineCameo(int16 xx, int16 yy, byte pp, int16 time);
+ void defineCameo(int16 x, int16 y, byte p, int16 time);
void showStock(byte index);
void drawNumber(int number, int size, int x);
void showScore();