aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/voyeur_game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/voyeur/voyeur_game.cpp')
-rw-r--r--engines/voyeur/voyeur_game.cpp306
1 files changed, 153 insertions, 153 deletions
diff --git a/engines/voyeur/voyeur_game.cpp b/engines/voyeur/voyeur_game.cpp
index 75dd5b603d..23fc722493 100644
--- a/engines/voyeur/voyeur_game.cpp
+++ b/engines/voyeur/voyeur_game.cpp
@@ -149,8 +149,8 @@ void VoyeurEngine::playStamp() {
case 130: {
// user selected to send the tape
if (_bVoy->getBoltGroup(_playStampGroupId)) {
- _graphicsManager._backgroundPage = _bVoy->boltEntry(_playStampGroupId)._picResource;
- _graphicsManager._backColors = _bVoy->boltEntry(_playStampGroupId + 1)._cMapResource;
+ _graphicsManager->_backgroundPage = _bVoy->boltEntry(_playStampGroupId)._picResource;
+ _graphicsManager->_backColors = _bVoy->boltEntry(_playStampGroupId + 1)._cMapResource;
buttonId = getChooseButton();
if (_eventsManager->_rightClick)
@@ -158,7 +158,7 @@ void VoyeurEngine::playStamp() {
buttonId = 4;
_bVoy->freeBoltGroup(_playStampGroupId);
- _graphicsManager.screenReset();
+ _graphicsManager->screenReset();
_playStampGroupId = -1;
flag = true;
@@ -232,8 +232,8 @@ void VoyeurEngine::closeStamp() {
}
void VoyeurEngine::doTailTitle() {
- (*_graphicsManager._vPort)->setupViewPort(NULL);
- _graphicsManager.screenReset();
+ (*_graphicsManager->_vPort)->setupViewPort(NULL);
+ _graphicsManager->screenReset();
if (_bVoy->getBoltGroup(0x600)) {
RL2Decoder decoder;
@@ -245,12 +245,12 @@ void VoyeurEngine::doTailTitle() {
doClosingCredits();
if (!shouldQuit() && !_eventsManager->_mouseClicked) {
- _graphicsManager.screenReset();
+ _graphicsManager->screenReset();
PictureResource *pic = _bVoy->boltEntry(0x602)._picResource;
CMapResource *pal = _bVoy->boltEntry(0x603)._cMapResource;
- (*_graphicsManager._vPort)->setupViewPort(pic);
+ (*_graphicsManager->_vPort)->setupViewPort(pic);
pal->startFade();
flipPageAndWaitForFade();
_eventsManager->delayClick(300);
@@ -258,7 +258,7 @@ void VoyeurEngine::doTailTitle() {
pic = _bVoy->boltEntry(0x604)._picResource;
pal = _bVoy->boltEntry(0x605)._cMapResource;
- (*_graphicsManager._vPort)->setupViewPort(pic);
+ (*_graphicsManager->_vPort)->setupViewPort(pic);
pal->startFade();
flipPageAndWaitForFade();
_eventsManager->delayClick(120);
@@ -283,26 +283,26 @@ void VoyeurEngine::doClosingCredits() {
const char *msg = (const char *)_bVoy->memberAddr(0x404);
const byte *creditList = (const byte *)_bVoy->memberAddr(0x405);
- (*_graphicsManager._vPort)->setupViewPort(NULL);
- _graphicsManager.setColor(1, 180, 180, 180);
- _graphicsManager.setColor(2, 200, 200, 200);
+ (*_graphicsManager->_vPort)->setupViewPort(NULL);
+ _graphicsManager->setColor(1, 180, 180, 180);
+ _graphicsManager->setColor(2, 200, 200, 200);
_eventsManager->_intPtr._hasPalette = true;
- _graphicsManager._fontPtr->_curFont = _bVoy->boltEntry(0x402)._fontResource;
- _graphicsManager._fontPtr->_foreColor = 2;
- _graphicsManager._fontPtr->_backColor = 2;
- _graphicsManager._fontPtr->_fontSaveBack = false;
- _graphicsManager._fontPtr->_fontFlags = 0;
+ _graphicsManager->_fontPtr->_curFont = _bVoy->boltEntry(0x402)._fontResource;
+ _graphicsManager->_fontPtr->_foreColor = 2;
+ _graphicsManager->_fontPtr->_backColor = 2;
+ _graphicsManager->_fontPtr->_fontSaveBack = false;
+ _graphicsManager->_fontPtr->_fontFlags = 0;
_soundManager->startVOCPlay(152);
- FontInfoResource &fi = *_graphicsManager._fontPtr;
+ FontInfoResource &fi = *_graphicsManager->_fontPtr;
for (int idx = 0; idx < 78; ++idx) {
const byte *entry = creditList + idx * 6;
int flags = READ_LE_UINT16(entry + 4);
if (flags & 0x10)
- (*_graphicsManager._vPort)->fillPic();
+ (*_graphicsManager->_vPort)->fillPic();
if (flags & 1) {
fi._foreColor = 1;
@@ -312,7 +312,7 @@ void VoyeurEngine::doClosingCredits() {
fi._justifyHeight = 240;
fi._pos = Common::Point(0, READ_LE_UINT16(entry));
- (*_graphicsManager._vPort)->drawText(msg);
+ (*_graphicsManager->_vPort)->drawText(msg);
msg += strlen(msg) + 1;
}
@@ -324,7 +324,7 @@ void VoyeurEngine::doClosingCredits() {
fi._justifyHeight = 240;
fi._pos = Common::Point(0, READ_LE_UINT16(entry));
- (*_graphicsManager._vPort)->drawText(msg);
+ (*_graphicsManager->_vPort)->drawText(msg);
msg += strlen(msg) + 1;
}
@@ -336,7 +336,7 @@ void VoyeurEngine::doClosingCredits() {
fi._justifyHeight = 240;
fi._pos = Common::Point(38, READ_LE_UINT16(entry));
- (*_graphicsManager._vPort)->drawText(msg);
+ (*_graphicsManager->_vPort)->drawText(msg);
msg += strlen(msg) + 1;
fi._foreColor = 2;
@@ -345,7 +345,7 @@ void VoyeurEngine::doClosingCredits() {
fi._justifyHeight = 240;
fi._pos = Common::Point(198, READ_LE_UINT16(entry));
- (*_graphicsManager._vPort)->drawText(msg);
+ (*_graphicsManager->_vPort)->drawText(msg);
msg += strlen(msg) + 1;
}
@@ -357,7 +357,7 @@ void VoyeurEngine::doClosingCredits() {
fi._justifyHeight = 240;
fi._pos = Common::Point(0, READ_LE_UINT16(entry));
- (*_graphicsManager._vPort)->drawText(msg);
+ (*_graphicsManager->_vPort)->drawText(msg);
msg += strlen(msg) + 1;
fi._foreColor = 2;
@@ -367,7 +367,7 @@ void VoyeurEngine::doClosingCredits() {
fi._justifyHeight = 240;
fi._pos = Common::Point(0, READ_LE_UINT16(entry) + 13);
- (*_graphicsManager._vPort)->drawText(msg);
+ (*_graphicsManager->_vPort)->drawText(msg);
msg += strlen(msg) + 1;
}
@@ -381,19 +381,19 @@ void VoyeurEngine::doClosingCredits() {
}
_soundManager->stopVOCPlay();
- _graphicsManager._fontPtr->_curFont = _bVoy->boltEntry(0x101)._fontResource;
+ _graphicsManager->_fontPtr->_curFont = _bVoy->boltEntry(0x101)._fontResource;
_bVoy->freeBoltGroup(0x400);
}
void VoyeurEngine::doPiracy() {
- _graphicsManager.screenReset();
- _graphicsManager.setColor(1, 0, 0, 0);
- _graphicsManager.setColor(2, 255, 255, 255);
+ _graphicsManager->screenReset();
+ _graphicsManager->setColor(1, 0, 0, 0);
+ _graphicsManager->setColor(2, 255, 255, 255);
_eventsManager->_intPtr._hasPalette = true;
- (*_graphicsManager._vPort)->setupViewPort(NULL);
- (*_graphicsManager._vPort)->fillPic(1);
+ (*_graphicsManager->_vPort)->setupViewPort(NULL);
+ (*_graphicsManager->_vPort)->fillPic(1);
- FontInfoResource &fi = *_graphicsManager._fontPtr;
+ FontInfoResource &fi = *_graphicsManager->_fontPtr;
fi._curFont = _bVoy->boltEntry(0x101)._fontResource;
fi._foreColor = 2;
fi._backColor = 2;
@@ -407,7 +407,7 @@ void VoyeurEngine::doPiracy() {
int yp, idx;
for (idx = 0, yp = 33; idx < 10; ++idx) {
fi._pos = Common::Point(0, yp);
- (*_graphicsManager._vPort)->drawText(PIRACY_MESSAGE[idx]);
+ (*_graphicsManager->_vPort)->drawText(PIRACY_MESSAGE[idx]);
yp += fi._curFont->_fontHeight + 4;
}
@@ -440,27 +440,27 @@ void VoyeurEngine::reviewTape() {
_voy->_viewBounds = _bVoy->boltEntry(0x907)._rectResource;
Common::Array<RectEntry> &hotspots = _bVoy->boltEntry(0x906)._rectResource->_entries;
- _graphicsManager._backColors = _bVoy->boltEntry(0x902)._cMapResource;
- _graphicsManager._backgroundPage = _bVoy->boltEntry(0x901)._picResource;
- (*_graphicsManager._vPort)->setupViewPort(_graphicsManager._backgroundPage);
- _graphicsManager._backColors->startFade();
+ _graphicsManager->_backColors = _bVoy->boltEntry(0x902)._cMapResource;
+ _graphicsManager->_backgroundPage = _bVoy->boltEntry(0x901)._picResource;
+ (*_graphicsManager->_vPort)->setupViewPort(_graphicsManager->_backgroundPage);
+ _graphicsManager->_backColors->startFade();
flipPageAndWaitForFade();
- _graphicsManager.setColor(1, 32, 32, 32);
- _graphicsManager.setColor(2, 96, 96, 96);
- _graphicsManager.setColor(3, 160, 160, 160);
- _graphicsManager.setColor(4, 224, 224, 224);
- _graphicsManager.setColor(9, 24, 64, 24);
- _graphicsManager.setColor(10, 64, 132, 64);
- _graphicsManager.setColor(11, 100, 192, 100);
- _graphicsManager.setColor(12, 120, 248, 120);
+ _graphicsManager->setColor(1, 32, 32, 32);
+ _graphicsManager->setColor(2, 96, 96, 96);
+ _graphicsManager->setColor(3, 160, 160, 160);
+ _graphicsManager->setColor(4, 224, 224, 224);
+ _graphicsManager->setColor(9, 24, 64, 24);
+ _graphicsManager->setColor(10, 64, 132, 64);
+ _graphicsManager->setColor(11, 100, 192, 100);
+ _graphicsManager->setColor(12, 120, 248, 120);
_eventsManager->setCursorColor(128, 1);
_eventsManager->_intPtr._hasPalette = true;
- _graphicsManager._fontPtr->_curFont = _bVoy->boltEntry(0x909)._fontResource;
- _graphicsManager._fontPtr->_fontSaveBack = false;
- _graphicsManager._fontPtr->_fontFlags = 0;
+ _graphicsManager->_fontPtr->_curFont = _bVoy->boltEntry(0x909)._fontResource;
+ _graphicsManager->_fontPtr->_fontSaveBack = false;
+ _graphicsManager->_fontPtr->_fontFlags = 0;
_eventsManager->getMouseInfo();
if (newX == -1) {
@@ -482,37 +482,37 @@ void VoyeurEngine::reviewTape() {
needRedraw = false;
flipPageAndWait();
- _graphicsManager._drawPtr->_penColor = 0;
- _graphicsManager._drawPtr->_pos = Common::Point(tempRect.left, tempRect.top);
- _graphicsManager._backgroundPage->sFillBox(tempRect.width(), tempRect.height());
+ _graphicsManager->_drawPtr->_penColor = 0;
+ _graphicsManager->_drawPtr->_pos = Common::Point(tempRect.left, tempRect.top);
+ _graphicsManager->_backgroundPage->sFillBox(tempRect.width(), tempRect.height());
int yp = 45;
int eventNum = eventStart;
for (int lineNum = 0; lineNum < 8 && eventNum < _voy->_eventCount; ++lineNum, ++eventNum) {
- _graphicsManager._fontPtr->_picFlags = 0;
- _graphicsManager._fontPtr->_picSelect = 0xff;
- _graphicsManager._fontPtr->_picPick = 7;
- _graphicsManager._fontPtr->_picOnOff = (lineNum == eventLine) ? 8 : 0;
- _graphicsManager._fontPtr->_pos = Common::Point(68, yp);
- _graphicsManager._fontPtr->_justify = ALIGN_LEFT;
- _graphicsManager._fontPtr->_justifyWidth = 0;
- _graphicsManager._fontPtr->_justifyHeight = 0;
+ _graphicsManager->_fontPtr->_picFlags = 0;
+ _graphicsManager->_fontPtr->_picSelect = 0xff;
+ _graphicsManager->_fontPtr->_picPick = 7;
+ _graphicsManager->_fontPtr->_picOnOff = (lineNum == eventLine) ? 8 : 0;
+ _graphicsManager->_fontPtr->_pos = Common::Point(68, yp);
+ _graphicsManager->_fontPtr->_justify = ALIGN_LEFT;
+ _graphicsManager->_fontPtr->_justifyWidth = 0;
+ _graphicsManager->_fontPtr->_justifyHeight = 0;
Common::String msg = _eventsManager->getEvidString(eventNum);
- _graphicsManager._backgroundPage->drawText(msg);
+ _graphicsManager->_backgroundPage->drawText(msg);
yp += 15;
}
- (*_graphicsManager._vPort)->addSaveRect(
- (*_graphicsManager._vPort)->_lastPage, tempRect);
+ (*_graphicsManager->_vPort)->addSaveRect(
+ (*_graphicsManager->_vPort)->_lastPage, tempRect);
flipPageAndWait();
- (*_graphicsManager._vPort)->addSaveRect(
- (*_graphicsManager._vPort)->_lastPage, tempRect);
+ (*_graphicsManager->_vPort)->addSaveRect(
+ (*_graphicsManager->_vPort)->_lastPage, tempRect);
}
- _graphicsManager.sDrawPic(cursor, *_graphicsManager._vPort,
+ _graphicsManager->sDrawPic(cursor, *_graphicsManager->_vPort,
_eventsManager->getMousePos());
flipPageAndWait();
@@ -544,34 +544,34 @@ void VoyeurEngine::reviewTape() {
flipPageAndWait();
- _graphicsManager._drawPtr->_penColor = 0;
- _graphicsManager._drawPtr->_pos = Common::Point(tempRect.left, tempRect.top);
- _graphicsManager._backgroundPage->sFillBox(tempRect.width(), tempRect.height());
+ _graphicsManager->_drawPtr->_penColor = 0;
+ _graphicsManager->_drawPtr->_pos = Common::Point(tempRect.left, tempRect.top);
+ _graphicsManager->_backgroundPage->sFillBox(tempRect.width(), tempRect.height());
int yp = 45;
int eventNum = eventStart;
for (int idx = 0; idx < 8 && eventNum < _voy->_eventCount; ++idx, ++eventNum) {
- _graphicsManager._fontPtr->_picFlags = 0;
- _graphicsManager._fontPtr->_picSelect = 0xff;
- _graphicsManager._fontPtr->_picPick = 7;
- _graphicsManager._fontPtr->_picOnOff = (idx == eventLine) ? 8 : 0;
- _graphicsManager._fontPtr->_pos = Common::Point(68, yp);
- _graphicsManager._fontPtr->_justify = ALIGN_LEFT;
- _graphicsManager._fontPtr->_justifyWidth = 0;
- _graphicsManager._fontPtr->_justifyHeight = 0;
+ _graphicsManager->_fontPtr->_picFlags = 0;
+ _graphicsManager->_fontPtr->_picSelect = 0xff;
+ _graphicsManager->_fontPtr->_picPick = 7;
+ _graphicsManager->_fontPtr->_picOnOff = (idx == eventLine) ? 8 : 0;
+ _graphicsManager->_fontPtr->_pos = Common::Point(68, yp);
+ _graphicsManager->_fontPtr->_justify = ALIGN_LEFT;
+ _graphicsManager->_fontPtr->_justifyWidth = 0;
+ _graphicsManager->_fontPtr->_justifyHeight = 0;
Common::String msg = _eventsManager->getEvidString(eventNum);
- _graphicsManager._backgroundPage->drawText(msg);
+ _graphicsManager->_backgroundPage->drawText(msg);
yp += 15;
}
- (*_graphicsManager._vPort)->addSaveRect(
- (*_graphicsManager._vPort)->_lastPage, tempRect);
+ (*_graphicsManager->_vPort)->addSaveRect(
+ (*_graphicsManager->_vPort)->_lastPage, tempRect);
flipPageAndWait();
- (*_graphicsManager._vPort)->addSaveRect(
- (*_graphicsManager._vPort)->_lastPage, tempRect);
+ (*_graphicsManager->_vPort)->addSaveRect(
+ (*_graphicsManager->_vPort)->_lastPage, tempRect);
flipPageAndWait();
_eventsManager->getMouseInfo();
@@ -651,7 +651,7 @@ void VoyeurEngine::reviewTape() {
newY = _eventsManager->getMousePos().y;
_voy->_fadingType = 0;
_voy->_viewBounds = nullptr;
- (*_graphicsManager._vPort)->setupViewPort(NULL);
+ (*_graphicsManager->_vPort)->setupViewPort(NULL);
if (_currentVocId != -1) {
_voy->_vocSecondsOffset = _voy->_RTVNum - _voy->_musicStartTime;
@@ -674,13 +674,13 @@ void VoyeurEngine::reviewTape() {
_voy->_vocSecondsOffset = e._computerOn;
_bVoy->getBoltGroup(0x7F00);
- _graphicsManager._backgroundPage = _bVoy->boltEntry(0x7F00 +
+ _graphicsManager->_backgroundPage = _bVoy->boltEntry(0x7F00 +
BLIND_TABLE[_audioVideoId])._picResource;
- _graphicsManager._backColors = _bVoy->boltEntry(0x7F01 +
+ _graphicsManager->_backColors = _bVoy->boltEntry(0x7F01 +
BLIND_TABLE[_audioVideoId])._cMapResource;
- (*_graphicsManager._vPort)->setupViewPort(_graphicsManager._backgroundPage);
- _graphicsManager._backColors->startFade();
+ (*_graphicsManager->_vPort)->setupViewPort(_graphicsManager->_backgroundPage);
+ _graphicsManager->_backColors->startFade();
flipPageAndWaitForFade();
_eventsManager->_intPtr._flashStep = 1;
@@ -726,16 +726,16 @@ void VoyeurEngine::reviewTape() {
}
}
- _graphicsManager._fontPtr->_curFont = _bVoy->boltEntry(0x101)._fontResource;
+ _graphicsManager->_fontPtr->_curFont = _bVoy->boltEntry(0x101)._fontResource;
- (*_graphicsManager._vPort)->fillPic(0);
+ (*_graphicsManager->_vPort)->fillPic(0);
flipPageAndWait();
_bVoy->freeBoltGroup(0x900);
}
void VoyeurEngine::doGossip() {
- _graphicsManager.resetPalette();
- _graphicsManager.screenReset();
+ _graphicsManager->resetPalette();
+ _graphicsManager->screenReset();
if (!_bVoy->getBoltGroup(0x300))
return;
@@ -753,7 +753,7 @@ void VoyeurEngine::doGossip() {
// Transfer initial background to video decoder
PictureResource videoFrame(decoder.getVideoTrack()->getBackSurface());
bgPic->_bounds.moveTo(0, 0);
- _graphicsManager.sDrawPic(bgPic, &videoFrame, Common::Point(0, 0));
+ _graphicsManager->sDrawPic(bgPic, &videoFrame, Common::Point(0, 0));
byte *frameNumsP = _bVoy->memberAddr(0x309);
byte *posP = _bVoy->boltEntry(0x30A)._data;
@@ -763,8 +763,8 @@ void VoyeurEngine::doGossip() {
decoder.close();
// Reset the palette and clear the screen
- _graphicsManager.resetPalette();
- _graphicsManager.screenReset();
+ _graphicsManager->resetPalette();
+ _graphicsManager->screenReset();
// Play interview video
RL2Decoder decoder2;
@@ -776,7 +776,7 @@ void VoyeurEngine::doGossip() {
decoder2.close();
_bVoy->freeBoltGroup(0x300);
- _graphicsManager.screenReset();
+ _graphicsManager->screenReset();
}
void VoyeurEngine::doTapePlaying() {
@@ -784,14 +784,14 @@ void VoyeurEngine::doTapePlaying() {
return;
_eventsManager->getMouseInfo();
- _graphicsManager._backColors = _bVoy->boltEntry(0xA01)._cMapResource;
- _graphicsManager._backgroundPage = _bVoy->boltEntry(0xA00)._picResource;
+ _graphicsManager->_backColors = _bVoy->boltEntry(0xA01)._cMapResource;
+ _graphicsManager->_backgroundPage = _bVoy->boltEntry(0xA00)._picResource;
PictureResource *pic = _bVoy->boltEntry(0xA02)._picResource;
VInitCycleResource *cycle = _bVoy->boltEntry(0xA05)._vInitCycleResource;
- (*_graphicsManager._vPort)->setupViewPort(_graphicsManager._backgroundPage);
- _graphicsManager.sDrawPic(pic, *_graphicsManager._vPort, Common::Point(57, 30));
- _graphicsManager._backColors->startFade();
+ (*_graphicsManager->_vPort)->setupViewPort(_graphicsManager->_backgroundPage);
+ _graphicsManager->sDrawPic(pic, *_graphicsManager->_vPort, Common::Point(57, 30));
+ _graphicsManager->_backColors->startFade();
flipPageAndWaitForFade();
cycle->vStartCycle();
@@ -933,9 +933,9 @@ int VoyeurEngine::getChooseButton() {
+ 6)._rectResource->_entries;
int selectedIndex = -1;
- (*_graphicsManager._vPort)->setupViewPort(_graphicsManager._backgroundPage);
- _graphicsManager._backColors->_steps = 0;
- _graphicsManager._backColors->startFade();
+ (*_graphicsManager->_vPort)->setupViewPort(_graphicsManager->_backgroundPage);
+ _graphicsManager->_backColors->_steps = 0;
+ _graphicsManager->_backColors->startFade();
flipPageAndWait();
_voy->_viewBounds = _bVoy->boltEntry(_playStampGroupId + 7)._rectResource;
@@ -956,7 +956,7 @@ int VoyeurEngine::getChooseButton() {
selectedIndex = idx;
if (selectedIndex != prevIndex) {
PictureResource *btnPic = _bVoy->boltEntry(_playStampGroupId + 8 + idx)._picResource;
- _graphicsManager.sDrawPic(btnPic, *_graphicsManager._vPort,
+ _graphicsManager->sDrawPic(btnPic, *_graphicsManager->_vPort,
Common::Point(106, 200));
cursorPic = _bVoy->boltEntry(_playStampGroupId + 4)._picResource;
@@ -968,11 +968,11 @@ int VoyeurEngine::getChooseButton() {
if (selectedIndex == -1) {
cursorPic = _bVoy->boltEntry(_playStampGroupId + 2)._picResource;
PictureResource *btnPic = _bVoy->boltEntry(_playStampGroupId + 12)._picResource;
- _graphicsManager.sDrawPic(btnPic, *_graphicsManager._vPort,
+ _graphicsManager->sDrawPic(btnPic, *_graphicsManager->_vPort,
Common::Point(106, 200));
}
- _graphicsManager.sDrawPic(cursorPic, *_graphicsManager._vPort,
+ _graphicsManager->sDrawPic(cursorPic, *_graphicsManager->_vPort,
Common::Point(pt.x + 13, pt.y - 12));
flipPageAndWait();
@@ -983,9 +983,9 @@ int VoyeurEngine::getChooseButton() {
}
void VoyeurEngine::makeViewFinder() {
- _graphicsManager._backgroundPage = _bVoy->boltEntry(0x103)._picResource;
- _graphicsManager.sDrawPic(_graphicsManager._backgroundPage,
- *_graphicsManager._vPort, Common::Point(0, 0));
+ _graphicsManager->_backgroundPage = _bVoy->boltEntry(0x103)._picResource;
+ _graphicsManager->sDrawPic(_graphicsManager->_backgroundPage,
+ *_graphicsManager->_vPort, Common::Point(0, 0));
CMapResource *pal = _bVoy->boltEntry(0x104)._cMapResource;
int palOffset = 0;
@@ -1017,22 +1017,22 @@ void VoyeurEngine::makeViewFinder() {
break;
}
- (*_graphicsManager._vPort)->drawIfaceTime();
+ (*_graphicsManager->_vPort)->drawIfaceTime();
doTimeBar();
pal->startFade();
flipPageAndWaitForFade();
- _graphicsManager.setColor(241, 105, 105, 105);
- _graphicsManager.setColor(242, 105, 105, 105);
- _graphicsManager.setColor(243, 105, 105, 105);
- _graphicsManager.setColor(palOffset + 241, 219, 235, 235);
+ _graphicsManager->setColor(241, 105, 105, 105);
+ _graphicsManager->setColor(242, 105, 105, 105);
+ _graphicsManager->setColor(243, 105, 105, 105);
+ _graphicsManager->setColor(palOffset + 241, 219, 235, 235);
_eventsManager->_intPtr._hasPalette = true;
}
void VoyeurEngine::makeViewFinderP() {
- _graphicsManager.screenReset();
+ _graphicsManager->screenReset();
}
void VoyeurEngine::initIFace() {
@@ -1080,7 +1080,7 @@ void VoyeurEngine::initIFace() {
void VoyeurEngine::doScroll(const Common::Point &pt) {
Common::Rect clipRect(72, 47, 72 + 240, 47 + 148);
- (*_graphicsManager._vPort)->setupViewPort(NULL, &clipRect);
+ (*_graphicsManager->_vPort)->setupViewPort(NULL, &clipRect);
int base = 0;
switch (_voy->_transitionId) {
@@ -1104,18 +1104,18 @@ void VoyeurEngine::doScroll(const Common::Point &pt) {
if (base) {
PictureResource *pic = _bVoy->boltEntry(base + 3)._picResource;
- _graphicsManager.sDrawPic(pic, *_graphicsManager._vPort, Common::Point(784 - pt.x - 712, 150 - pt.y - 104));
+ _graphicsManager->sDrawPic(pic, *_graphicsManager->_vPort, Common::Point(784 - pt.x - 712, 150 - pt.y - 104));
pic = _bVoy->boltEntry(base + 4)._picResource;
- _graphicsManager.sDrawPic(pic, *_graphicsManager._vPort, Common::Point(784 - pt.x - 712, 150 - pt.y - 44));
+ _graphicsManager->sDrawPic(pic, *_graphicsManager->_vPort, Common::Point(784 - pt.x - 712, 150 - pt.y - 44));
pic = _bVoy->boltEntry(base + 5)._picResource;
- _graphicsManager.sDrawPic(pic, *_graphicsManager._vPort, Common::Point(784 - pt.x - 712, 150 - pt.y + 16));
+ _graphicsManager->sDrawPic(pic, *_graphicsManager->_vPort, Common::Point(784 - pt.x - 712, 150 - pt.y + 16));
pic = _bVoy->boltEntry(base + 6)._picResource;
- _graphicsManager.sDrawPic(pic, *_graphicsManager._vPort, Common::Point(784 - pt.x - 712, 150 - pt.y + 76));
+ _graphicsManager->sDrawPic(pic, *_graphicsManager->_vPort, Common::Point(784 - pt.x - 712, 150 - pt.y + 76));
pic = _bVoy->boltEntry(base + 7)._picResource;
- _graphicsManager.sDrawPic(pic, *_graphicsManager._vPort, Common::Point(784 - pt.x - 712, 150 - pt.y + 136));
+ _graphicsManager->sDrawPic(pic, *_graphicsManager->_vPort, Common::Point(784 - pt.x - 712, 150 - pt.y + 136));
}
- (*_graphicsManager._vPort)->setupViewPort(NULL);
+ (*_graphicsManager->_vPort)->setupViewPort(NULL);
}
void VoyeurEngine::checkTransition() {
@@ -1127,7 +1127,7 @@ void VoyeurEngine::checkTransition() {
// Only proceed if a valid day string was returned
if (!day.empty()) {
- _graphicsManager.fadeDownICF(6);
+ _graphicsManager->fadeDownICF(6);
// Get the time of day string
time = getTimeOfDay();
@@ -1165,7 +1165,7 @@ Common::String VoyeurEngine::getTimeOfDay() {
}
int VoyeurEngine::doComputerText(int maxLen) {
- FontInfoResource &font = *_graphicsManager._fontPtr;
+ FontInfoResource &font = *_graphicsManager->_fontPtr;
int totalChars = 0;
font._curFont = _bVoy->boltEntry(0x4910)._fontResource;
@@ -1182,7 +1182,7 @@ int VoyeurEngine::doComputerText(int maxLen) {
font._justifyWidth = 384;
font._justifyHeight = 100;
font._pos = Common::Point(128, 100);
- (*_graphicsManager._vPort)->drawText(END_OF_MESSAGE);
+ (*_graphicsManager->_vPort)->drawText(END_OF_MESSAGE);
} else if (_voy->_RTVNum < _voy->_computerTimeMin && maxLen == 9999) {
if (_currentVocId != -1)
_soundManager->startVOCPlay(_currentVocId);
@@ -1190,7 +1190,7 @@ int VoyeurEngine::doComputerText(int maxLen) {
font._justifyWidth = 384;
font._justifyHeight = 100;
font._pos = Common::Point(120, 100);
- (*_graphicsManager._vPort)->drawText(START_OF_MESSAGE);
+ (*_graphicsManager->_vPort)->drawText(START_OF_MESSAGE);
} else {
char *msg = (char *)_bVoy->memberAddr(0x4900 + _voy->_computerTextId);
font._pos = Common::Point(96, 60);
@@ -1208,14 +1208,14 @@ int VoyeurEngine::doComputerText(int maxLen) {
if (c == '\0') {
if (showEnd) {
_eventsManager->delay(90);
- _graphicsManager._drawPtr->_pos = Common::Point(96, 54);
- _graphicsManager._drawPtr->_penColor = 254;
- (*_graphicsManager._vPort)->sFillBox(196, 124);
- _graphicsManager._fontPtr->_justify = ALIGN_LEFT;
- _graphicsManager._fontPtr->_justifyWidth = 384;
- _graphicsManager._fontPtr->_justifyHeight = 100;
- _graphicsManager._fontPtr->_pos = Common::Point(128, 100);
- (*_graphicsManager._vPort)->drawText(END_OF_MESSAGE);
+ _graphicsManager->_drawPtr->_pos = Common::Point(96, 54);
+ _graphicsManager->_drawPtr->_penColor = 254;
+ (*_graphicsManager->_vPort)->sFillBox(196, 124);
+ _graphicsManager->_fontPtr->_justify = ALIGN_LEFT;
+ _graphicsManager->_fontPtr->_justifyWidth = 384;
+ _graphicsManager->_fontPtr->_justifyHeight = 100;
+ _graphicsManager->_fontPtr->_pos = Common::Point(128, 100);
+ (*_graphicsManager->_vPort)->drawText(END_OF_MESSAGE);
}
break;
}
@@ -1225,20 +1225,20 @@ int VoyeurEngine::doComputerText(int maxLen) {
yp += 10;
} else {
_eventsManager->delay(90);
- _graphicsManager._drawPtr->_pos = Common::Point(96, 54);
- _graphicsManager._drawPtr->_penColor = 255;
- (*_graphicsManager._vPort)->sFillBox(196, 124);
+ _graphicsManager->_drawPtr->_pos = Common::Point(96, 54);
+ _graphicsManager->_drawPtr->_penColor = 255;
+ (*_graphicsManager->_vPort)->sFillBox(196, 124);
yp = 60;
}
- _graphicsManager._fontPtr->_pos = Common::Point(96, yp);
+ _graphicsManager->_fontPtr->_pos = Common::Point(96, yp);
} else if (c == '_') {
showEnd = false;
} else {
- _graphicsManager._fontPtr->_justify = ALIGN_LEFT;
- _graphicsManager._fontPtr->_justifyWidth = 0;
- _graphicsManager._fontPtr->_justifyHeight = 0;
- (*_graphicsManager._vPort)->drawText(Common::String(c));
+ _graphicsManager->_fontPtr->_justify = ALIGN_LEFT;
+ _graphicsManager->_fontPtr->_justifyWidth = 0;
+ _graphicsManager->_fontPtr->_justifyHeight = 0;
+ (*_graphicsManager->_vPort)->drawText(Common::String(c));
_eventsManager->delay(4);
}
@@ -1253,7 +1253,7 @@ int VoyeurEngine::doComputerText(int maxLen) {
flipPageAndWait();
- _graphicsManager._fontPtr->_curFont = _bVoy->boltEntry(0x101)._fontResource;
+ _graphicsManager->_fontPtr->_curFont = _bVoy->boltEntry(0x101)._fontResource;
return totalChars;
}
@@ -1263,7 +1263,7 @@ void VoyeurEngine::getComputerBrush() {
int xp = (384 - pic->_bounds.width()) / 2;
int yp = (240 - pic->_bounds.height()) / 2 - 4;
- (*_graphicsManager._vPort)->drawPicPerm(pic, Common::Point(xp, yp));
+ (*_graphicsManager->_vPort)->drawPicPerm(pic, Common::Point(xp, yp));
CMapResource *pal = _bVoy->boltEntry(0x490F)._cMapResource;
pal->startFade();
@@ -1281,17 +1281,17 @@ void VoyeurEngine::doTimeBar() {
int height = ((_voy->_RTVLimit - _voy->_RTVNum) * 59) / _voy->_RTVLimit;
int fullHeight = MAX(151 - height, 93);
- _graphicsManager._drawPtr->_penColor = 134;
- _graphicsManager._drawPtr->_pos = Common::Point(39, 92);
+ _graphicsManager->_drawPtr->_penColor = 134;
+ _graphicsManager->_drawPtr->_pos = Common::Point(39, 92);
- (*_graphicsManager._vPort)->sFillBox(6, fullHeight - 92);
+ (*_graphicsManager->_vPort)->sFillBox(6, fullHeight - 92);
if (height > 0) {
- _graphicsManager.setColor(215, 238, 238, 238);
+ _graphicsManager->setColor(215, 238, 238, 238);
_eventsManager->_intPtr._hasPalette = true;
- _graphicsManager._drawPtr->_penColor = 215;
- _graphicsManager._drawPtr->_pos = Common::Point(39, fullHeight);
- (*_graphicsManager._vPort)->sFillBox(6, height);
+ _graphicsManager->_drawPtr->_penColor = 215;
+ _graphicsManager->_drawPtr->_pos = Common::Point(39, fullHeight);
+ (*_graphicsManager->_vPort)->sFillBox(6, height);
}
}
}
@@ -1304,9 +1304,9 @@ void VoyeurEngine::flashTimeBar() {
_flashTimeVal = _eventsManager->_intPtr._flashTimer;
if (_flashTimeFlag)
- _graphicsManager.setColor(240, 220, 20, 20);
+ _graphicsManager->setColor(240, 220, 20, 20);
else
- _graphicsManager.setColor(240, 220, 220, 220);
+ _graphicsManager->setColor(240, 220, 220, 220);
_eventsManager->_intPtr._hasPalette = true;
_flashTimeFlag = !_flashTimeFlag;
@@ -1344,7 +1344,7 @@ void VoyeurEngine::doEvidDisplay(int evidId, int eventId) {
_bVoy->getBoltGroup(_voy->_boltGroupId2);
PictureResource *pic = _bVoy->boltEntry(_voy->_boltGroupId2 + evidId * 2)._picResource;
- _graphicsManager.sDrawPic(pic, *_graphicsManager._vPort, Common::Point(
+ _graphicsManager->sDrawPic(pic, *_graphicsManager->_vPort, Common::Point(
(384 - pic->_bounds.width()) / 2, (240 - pic->_bounds.height()) / 2));
_bVoy->freeBoltMember(_voy->_boltGroupId2 + evidId * 2);
@@ -1395,7 +1395,7 @@ void VoyeurEngine::doEvidDisplay(int evidId, int eventId) {
continue;
pic = _voy->_evPicPtrs[arrIndex];
- _graphicsManager.sDrawPic(pic, *_graphicsManager._vPort,
+ _graphicsManager->sDrawPic(pic, *_graphicsManager->_vPort,
Common::Point((384 - pic->_bounds.width()) / 2,
(240 - pic->_bounds.height()) / 2));
_voy->_evCmPtrs[arrIndex]->startFade();