added partialy o2_doSentence opcode

svn-id: r7064
This commit is contained in:
Paweł Kołodziejski
2003-04-21 14:59:19 +00:00
parent 3fe8f939c6
commit be607289bb
2 changed files with 34 additions and 0 deletions
+1
View File
@@ -239,6 +239,7 @@ protected:
void o2_drawObject();
void o2_resourceRoutines();
void o2_verbOps();
void o2_doSentence();
void o2_isEqual();
void o2_isGreater();
+33
View File
@@ -824,6 +824,39 @@ void Scumm_v2::o2_equalZero() {
o5_jumpRelative();
}
void Scumm_v2::o2_doSentence() {
int a;
SentenceTab *st;
a = getVarOrDirectByte(0x80);
if (a == 0xFB) {
_sentenceNum = 0;
stopScriptNr(2);
clearClickedStatus();
return;
}
if (a == 0xFC) {
_sentenceNum--;
clearClickedStatus();
return;
}
st = &_sentence[_sentenceNum++];
st->unk5 = a;
st->unk4 = getVarOrDirectWord(0x40);
st->unk3 = getVarOrDirectWord(0x20);
st->freezeCount = 0;
// TODO
switch(fetchScriptByte()) {
case 1:
break;
case 2:
break;
}
}
void Scumm_v2::o2_printEgo() {
//_actorToPrintStrFor = (unsigned char)_vars[VAR_EGO];
//_messagePtr = _scriptPointer;