void AGOSEngine_Feeble::checkUp(WindowBlock *window) { uint16 j, k; if (((_variableArray[31] - _variableArray[30]) == 40) && (_variableArray[31] > 52)) { k = (((_variableArray[31] / 52) - 2) % 3); j = k * 6; if (!isBoxDead(j + 201)) { uint index = getWindowNum(window); drawIconArray(index, window->iconPtr->itemRef, 0, window->iconPtr->classMask); animate(4, 9, k + 34, 0, 0, 0); } } if ((_variableArray[31] - _variableArray[30]) == 76) { k = ((_variableArray[31] / 52) % 3); j = k * 6; if (isBoxDead(j + 201)) { animate(4, 9, k + 31, 0, 0, 0); undefineBox(j + 201); undefineBox(j + 202); undefineBox(j + 203); undefineBox(j + 204); undefineBox(j + 205); undefineBox(j + 206); } _variableArray[31] -= 52; _iOverflow = 1; } }
void AGOSEngine::inventoryUp(WindowBlock *window) { if (window->iconPtr->line == 0) return; mouseOff(); uint index = getWindowNum(window); drawIconArray(index, window->iconPtr->itemRef, window->iconPtr->line - 1, window->iconPtr->classMask); mouseOn(); }
void AGOSEngine::doOutput(const byte *src, uint len) { uint idx; if (_textWindow == NULL) return; while (len-- != 0) { if (*src != 12 && _textWindow->iconPtr != NULL && _fcsData1[idx = getWindowNum(_textWindow)] != 2) { _fcsData1[idx] = 2; _fcsData2[idx] = 1; } sendWindow(*src++); } }
void AGOSEngine_Feeble::checkDown(WindowBlock *window) { uint16 j, k; if (((_variableArray[31] - _variableArray[30]) == 24) && (_iOverflow == 1)) { uint index = getWindowNum(window); drawIconArray(index, window->iconPtr->itemRef, 0, window->iconPtr->classMask); k = ((_variableArray[31] / 52) % 3); animate(4, 9, k + 25, 0, 0, 0); _variableArray[31] += 52; } if (((_variableArray[31] - _variableArray[30]) == 40) && (_variableArray[30] > 52)) { k = (((_variableArray[31] / 52) + 1) % 3); j = k * 6; if (isBoxDead(j + 201)) { animate(4, 9, k + 28, 0, 0, 0); undefineBox(j + 201); undefineBox(j + 202); undefineBox(j + 203); undefineBox(j + 204); undefineBox(j + 205); undefineBox(j + 206); } } }
void AGOSEngine::inventoryDown(WindowBlock *window) { mouseOff(); uint index = getWindowNum(window); drawIconArray(index, window->iconPtr->itemRef, window->iconPtr->line + 1, window->iconPtr->classMask); mouseOn(); }
void AGOSEngine::clsCheck(WindowBlock *window) { uint index = getWindowNum(window); tidyIconArray(index); _fcsData1[index] = 0; }