aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/use.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2011-12-06 01:16:38 +0200
committerFilippos Karapetis2011-12-06 01:16:38 +0200
commite8ea99cd8ec9a34d687081afa17ef1e4d65d2a4e (patch)
treef0cd75c28e89229539f64f9a3657bf594eb3465f /engines/dreamweb/use.cpp
parent06ef3452b78c2041e8054c10eb6d1929938d1b1b (diff)
downloadscummvm-rg350-e8ea99cd8ec9a34d687081afa17ef1e4d65d2a4e.tar.gz
scummvm-rg350-e8ea99cd8ec9a34d687081afa17ef1e4d65d2a4e.tar.bz2
scummvm-rg350-e8ea99cd8ec9a34d687081afa17ef1e4d65d2a4e.zip
DREAMWEB: 'callhotellift', 'carparkdrip', 'useshield' ported to C++
Diffstat (limited to 'engines/dreamweb/use.cpp')
-rw-r--r--engines/dreamweb/use.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/engines/dreamweb/use.cpp b/engines/dreamweb/use.cpp
index 39423b392c..4421134f9b 100644
--- a/engines/dreamweb/use.cpp
+++ b/engines/dreamweb/use.cpp
@@ -287,5 +287,30 @@ void DreamGenContext::wheelSound() {
putBackObStuff();
}
+void DreamGenContext::callHotelLift() {
+ playChannel1(12);
+ showFirstUse();
+ data.byte(kCounttoopen) = 8;
+ data.byte(kGetback) = 1;
+ data.byte(kDestination) = 5;
+ data.byte(kFinaldest) = 5;
+ autoSetWalk();
+ turnPathOn(4);
+}
+
+void DreamGenContext::useShield() {
+ if (data.byte(kReallocation) != 20 || data.byte(kCombatcount) == 0) {
+ // Not in Sart room
+ showFirstUse();
+ putBackObStuff();
+ } else {
+ data.byte(kLastweapon) = 3;
+ showSecondUse();
+ data.byte(kGetback) = 1;
+ data.byte(kProgresspoints) = data.byte(kProgresspoints) + 1;
+ removeObFromInv();
+ }
+}
+
} /*namespace dreamgen */