/* 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 . * */ #include "chewy/cursor.h" #include "chewy/defines.h" #include "chewy/events.h" #include "chewy/globals.h" #include "chewy/room.h" #include "chewy/rooms/room34.h" namespace Chewy { namespace Rooms { void Room34::entry() { if (_G(flags).LoadGame) use_kuehlschrank(); } bool Room34::use_kuehlschrank() { bool result = false; if (!_G(cur)->usingInventoryCursor()) { result = true; if (!_G(flags).LoadGame) { hideCur(); autoMove(3, P_CHEWY); _G(mouseLeftClick) = false; start_spz_wait((_G(gameState).ChewyAni == CHEWY_ROCKER) ? CH_ROCK_GET2 : CH_LGET_O, 1, false, P_CHEWY); showCur(); } _G(gameState)._personHide[P_CHEWY] = true; _G(flags).ChewyDontGo = true; if (!_G(flags).LoadGame) { switchRoom(34); } setPersonPos(160, 70, P_CHEWY, -1); } return result; } void Room34::xit_kuehlschrank() { _G(gameState)._personHide[P_CHEWY] = false; setPersonPos(54, 111, P_CHEWY, -1); switchRoom(33); _G(flags).ChewyDontGo = false; _G(mouseLeftClick) = false; } } // namespace Rooms } // namespace Chewy