Files
2026-02-02 04:50:13 +01:00

96 lines
2.3 KiB
C++

/* ScummVM - Graphic Adventure Engine
*
* ScummVM is the legal property of its developers, whose names
* are too numerous to list here. Please refer to the COPYRIGHT
* file distributed with this source distribution.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#include "chewy/defines.h"
#include "chewy/events.h"
#include "chewy/globals.h"
#include "chewy/rooms/room75.h"
#include "chewy/sound.h"
namespace Chewy {
namespace Rooms {
void Room75::entry(int16 eib_nr) {
_G(det)->playSound(0, 0);
_G(gameState).ScrollxStep = 2;
_G(gameState).ZoomXy[P_HOWARD][0] = 70;
_G(gameState).ZoomXy[P_HOWARD][1] = 100;
_G(gameState).ZoomXy[P_NICHELLE][0] = 70;
_G(gameState).ZoomXy[P_NICHELLE][1] = 100;
_G(spieler_mi)[P_HOWARD].Mode = true;
_G(spieler_mi)[P_NICHELLE].Mode = true;
_G(zoom_horizont) = 110;
_G(flags).ZoomMov = true;
_G(zoom_mov_fak) = 3;
_G(SetUpScreenFunc) = setup_func;
if (_G(flags).LoadGame)
return;
switch (eib_nr) {
case 103:
_G(gameState).scrollx = 188;
proc1();
break;
case 104:
rightEntry();
break;
case 111:
leftEntry();
break;
default:
break;
}
}
void Room75::xit(int16 eib_nr) {
_G(gameState).ScrollxStep = 1;
if (_G(gameState)._personRoomNr[P_HOWARD] != 75)
return;
switch (eib_nr) {
case 115:
_G(gameState)._personRoomNr[P_HOWARD] = 73;
_G(gameState)._personRoomNr[P_NICHELLE] = 73;
break;
case 116:
case 117:
_G(gameState)._personRoomNr[P_HOWARD] = 70;
_G(gameState)._personRoomNr[P_NICHELLE] = 70;
break;
default:
break;
}
}
void Room75::proc1() {
hideCur();
setPersonPos(363, 110, P_CHEWY, P_LEFT);
setPersonPos(322, 85, P_NICHELLE, P_RIGHT);
setPersonPos(317, 96, P_HOWARD, P_RIGHT);
goAutoXy(318, 110, P_NICHELLE, ANI_WAIT);
showCur();
}
} // namespace Rooms
} // namespace Chewy