AVALANCHE: Move wipeText() from Basher to Parser, implement it. Fix parts of Acci::do_that().
This commit is contained in:
parent
e08980c7a4
commit
e32110339e
6 changed files with 27 additions and 12 deletions
|
@ -1121,13 +1121,16 @@ void Acci::do_that() {
|
||||||
|
|
||||||
|
|
||||||
if (thats == Common::String(nowt)) {
|
if (thats == Common::String(nowt)) {
|
||||||
thats = "";
|
if (!thats.empty())
|
||||||
|
thats.clear();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_vm->_gyro->weirdword)
|
if (_vm->_gyro->weirdword)
|
||||||
return;
|
return;
|
||||||
if (thing < '\310')
|
|
||||||
thing -= 49; /* "Slip" */
|
if (thing < 200)
|
||||||
|
thing -= 49; // "Slip"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if ((!_vm->_gyro->alive) &
|
if ((!_vm->_gyro->alive) &
|
||||||
|
@ -1760,12 +1763,12 @@ void Acci::do_that() {
|
||||||
switch (person) {
|
switch (person) {
|
||||||
case pardon:
|
case pardon:
|
||||||
case _vm->_gyro->pavalot:
|
case _vm->_gyro->pavalot:
|
||||||
case '\0':
|
case 0:
|
||||||
if (!_vm->_gyro->dna.avvy_is_awake) {
|
if (!_vm->_gyro->dna.avvy_is_awake) {
|
||||||
_vm->_gyro->dna.avvy_is_awake = true;
|
_vm->_gyro->dna.avvy_is_awake = true;
|
||||||
_vm->_lucerna->points(1);
|
_vm->_lucerna->points(1);
|
||||||
_vm->_gyro->dna.avvy_in_bed = true;
|
_vm->_gyro->dna.avvy_in_bed = true;
|
||||||
_vm->_celer->show_one(3); /* Picture of Avvy, awake in bed. */
|
_vm->_celer->show_one(2); /* Picture of Avvy, awake in bed. */
|
||||||
if (_vm->_gyro->dna.teetotal)
|
if (_vm->_gyro->dna.teetotal)
|
||||||
_vm->_visa->dixi('d', 13);
|
_vm->_visa->dixi('d', 13);
|
||||||
} else
|
} else
|
||||||
|
|
|
@ -123,7 +123,7 @@ public:
|
||||||
Common::String thats;
|
Common::String thats;
|
||||||
Common::String unknown;
|
Common::String unknown;
|
||||||
Common::String realwords[11];
|
Common::String realwords[11];
|
||||||
char verb, person, thing, thing2;
|
byte verb, person, thing, thing2;
|
||||||
bool polite;
|
bool polite;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -78,10 +78,6 @@ void Basher::init() {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void Basher::wipetext() {
|
|
||||||
warning("STUB: Basher::wipetext()");
|
|
||||||
}
|
|
||||||
|
|
||||||
/*procedure cursor;
|
/*procedure cursor;
|
||||||
begin
|
begin
|
||||||
if curflash=0 then
|
if curflash=0 then
|
||||||
|
|
|
@ -70,8 +70,6 @@ private:
|
||||||
|
|
||||||
bool entering_filename;
|
bool entering_filename;
|
||||||
|
|
||||||
void wipetext();
|
|
||||||
|
|
||||||
char firstchar(Common::String x);
|
char firstchar(Common::String x);
|
||||||
|
|
||||||
void typein();
|
void typein();
|
||||||
|
|
|
@ -79,6 +79,8 @@ void Parser::handleReturn() {
|
||||||
_inputTextBackup = _inputText;
|
_inputTextBackup = _inputText;
|
||||||
_vm->_acci->parse();
|
_vm->_acci->parse();
|
||||||
_vm->_acci->do_that();
|
_vm->_acci->do_that();
|
||||||
|
_inputText.clear();
|
||||||
|
wipeText();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -148,4 +150,18 @@ void Parser::drawCursor() {
|
||||||
_vm->_trip->getset[fv].remember(bf);
|
_vm->_trip->getset[fv].remember(bf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Parser::wipeText() {
|
||||||
|
if (_vm->_gyro->mouse_near_text())
|
||||||
|
_vm->_gyro->super_off();
|
||||||
|
|
||||||
|
cursorOff();
|
||||||
|
|
||||||
|
_vm->_graphics->drawBar(24, 161, 640, 169, black); // Black out the line of the text.
|
||||||
|
|
||||||
|
_quote = true;
|
||||||
|
_inputTextPos = 0;
|
||||||
|
cursorOn();
|
||||||
|
_vm->_gyro->super_on();
|
||||||
|
}
|
||||||
|
|
||||||
} // End of namespace Avalanche
|
} // End of namespace Avalanche
|
||||||
|
|
|
@ -65,6 +65,8 @@ private:
|
||||||
|
|
||||||
void drawCursor();
|
void drawCursor();
|
||||||
|
|
||||||
|
void wipeText();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End of namespace Avalanche
|
} // End of namespace Avalanche
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue