aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script_e2.cpp
diff options
context:
space:
mode:
authorTravis Howell2006-10-29 07:01:55 +0000
committerTravis Howell2006-10-29 07:01:55 +0000
commitde7f2504760c31ff5212bd0763146a5774e2d906 (patch)
tree805c09271841f8b0dd9cdd26308befd3524ef844 /engines/agos/script_e2.cpp
parent8ad806535a4a57ba9e920f9b79c9a7a16289cb8c (diff)
downloadscummvm-rg350-de7f2504760c31ff5212bd0763146a5774e2d906.tar.gz
scummvm-rg350-de7f2504760c31ff5212bd0763146a5774e2d906.tar.bz2
scummvm-rg350-de7f2504760c31ff5212bd0763146a5774e2d906.zip
Add opcode and opcode stub for Elvira 2. Remove unused opcode code
svn-id: r24562
Diffstat (limited to 'engines/agos/script_e2.cpp')
-rw-r--r--engines/agos/script_e2.cpp25
1 files changed, 17 insertions, 8 deletions
diff --git a/engines/agos/script_e2.cpp b/engines/agos/script_e2.cpp
index bce478b0c6..597960a67b 100644
--- a/engines/agos/script_e2.cpp
+++ b/engines/agos/script_e2.cpp
@@ -65,7 +65,6 @@ void AGOSEngine::setupElvira2Opcodes(OpcodeProc *op) {
op[149] = &AGOSEngine::oe2_ifDoorClosed;
op[150] = &AGOSEngine::oe2_ifDoorLocked;
op[161] = &AGOSEngine::oe2_printStats;
- op[162] = &AGOSEngine::oe2_unk162;
op[165] = &AGOSEngine::oe2_setSuperRoom;
op[166] = &AGOSEngine::oe2_getSuperRoom;
op[167] = &AGOSEngine::oe2_setExitOpen;
@@ -75,7 +74,9 @@ void AGOSEngine::setupElvira2Opcodes(OpcodeProc *op) {
op[171] = &AGOSEngine::oe2_ifExitOpen;
op[172] = &AGOSEngine::oe2_ifExitClosed;
op[173] = &AGOSEngine::oe2_ifExitLocked;
+ op[174] = &AGOSEngine::oe2_unk174;
op[175] = &AGOSEngine::oe2_getDollar2;
+ op[176] = &AGOSEngine::oe2_setSRExit;
op[177] = &AGOSEngine::oe2_unk177;
op[178] = &AGOSEngine::oe2_unk178;
op[179] = &AGOSEngine::oe2_isAdjNoun;
@@ -321,13 +322,6 @@ void AGOSEngine::oe2_printStats() {
mouseOn();
}
-void AGOSEngine::oe2_unk162() {
- // 162: print string?
- showMessageFormat("%s\n", getStringPtrByID(getNextStringID()));
- uint a = getVarOrByte();
- debug(0, "oe2_unk162: stub (%d)", a);
-}
-
void AGOSEngine::oe2_setSuperRoom() {
// 165: set super room
_superRoomNumber = getVarOrWord();
@@ -386,6 +380,12 @@ void AGOSEngine::oe2_ifExitLocked() {
setScriptCondition(getExitState(i, n, d) == 3);
}
+void AGOSEngine::oe2_unk174() {
+ // 174:
+ uint a = getVarOrWord();
+ debug(0, "oe2_unk174: stub (%d)", a);
+}
+
void AGOSEngine::oe2_getDollar2() {
// 175
_showPreposition = true;
@@ -411,6 +411,15 @@ void AGOSEngine::oe2_getDollar2() {
_showPreposition = false;
}
+void AGOSEngine::oe2_setSRExit() {
+ // 176: set super room exit
+ Item *i = getNextItemPtr();
+ uint n = getVarOrWord();
+ uint d = getVarOrByte();
+ uint s = getVarOrByte();
+ setSRExit(i, n, d, s);
+}
+
void AGOSEngine::oe2_unk177() {
// 177: set unknown vga event
uint a = getVarOrByte();