mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
CHEWY: Renaming
This commit is contained in:
parent
4f762e096c
commit
671291c9db
@ -319,7 +319,7 @@ enum SetupScreenMode {
|
||||
#define CYB_KRONE_INV 29
|
||||
#define SCHLAUCH_INV 30
|
||||
#define TRICHTER_INV 31
|
||||
#define ANGEL_INV 32
|
||||
#define FISHINGROD_INV 32
|
||||
#define MILCH_INV 33
|
||||
#define KNIFE_INV 34
|
||||
#define PUMPE_INV 35
|
||||
@ -327,14 +327,14 @@ enum SetupScreenMode {
|
||||
#define ANGEL2_INV 37
|
||||
#define GEBISS_INV 38
|
||||
#define H_FUTTER_INV 39
|
||||
#define KUERBIS1_INV 40
|
||||
#define PUMPKIN_INV 40
|
||||
#define K_MASKE_INV 41
|
||||
#define K_FLEISCH_INV 42
|
||||
#define K_KERNE_INV 43
|
||||
#define EIER_INV 44
|
||||
#define KAFFEE_INV 45
|
||||
#define PUTENKEULE_INV 46
|
||||
#define KNOCHEN_INV 47
|
||||
#define BONE_INV 47
|
||||
#define MANUSKRIPT_INV 48
|
||||
#define RECORDER_INV 49
|
||||
#define ZAPPER_INV 50
|
||||
@ -342,11 +342,11 @@ enum SetupScreenMode {
|
||||
#define MILCH_LEER_INV 52
|
||||
#define MILCH_WAS_INV 53
|
||||
#define PAPIER_INV 54
|
||||
#define BRIEF_INV 55
|
||||
#define LETTER_INV 55
|
||||
#define TICKET_INV 56
|
||||
#define ZEITUNG_INV 57
|
||||
#define BMARKE_INV 58
|
||||
#define BRIEF2_INV 59
|
||||
#define STAMPEDLETTER_INV 59
|
||||
#define DUENGER_INV 60
|
||||
#define LIKOER_INV 61
|
||||
#define LIKOER2_INV 62
|
||||
@ -354,12 +354,12 @@ enum SetupScreenMode {
|
||||
#define CASSETTE_INV 64
|
||||
#define HOTEL_INV 65
|
||||
#define KAPPE_INV 66
|
||||
#define FLASCHE_INV 67
|
||||
#define BOTTLE_INV 67
|
||||
#define GUM_INV 68
|
||||
#define CIGAR_INV 69
|
||||
#define KEY_INV 70
|
||||
#define BURGER_INV 71
|
||||
#define WOLLE_INV 72
|
||||
#define WOOL_INV 72
|
||||
#define UHR_INV 73
|
||||
#define RING_INV 74
|
||||
#define SACKGELD_INV 75
|
||||
|
@ -446,7 +446,7 @@ void endDialogCloseup(int16 diaNr, int16 blkNr, int16 strEndNr);
|
||||
|
||||
void atdsStringStart(int16 diaNr, int16 strNr, int16 personNr,
|
||||
int16 mode);
|
||||
void calc_inv_use_txt(int16 test_nr);
|
||||
void useItemWithInvItem(int16 itemId);
|
||||
bool calc_inv_no_use(int16 test_nr, int16 mode);
|
||||
int16 calc_person_txt(int16 p_nr);
|
||||
int16 calc_person_click(int16 p_nr);
|
||||
|
@ -977,7 +977,7 @@ void evaluateObj(int16 objectId, int16 mode) {
|
||||
case OBJECT_1:
|
||||
case OBJECT_2:
|
||||
if (mode == INVENTORY_NORMAL)
|
||||
calc_inv_use_txt(objectId);
|
||||
useItemWithInvItem(objectId);
|
||||
break;
|
||||
|
||||
case NO_ACTION:
|
||||
|
@ -39,7 +39,7 @@ void Room28::entry(int16 eib_nr) {
|
||||
if (_G(gameState).R28RKuerbis)
|
||||
_G(det)->showStaticSpr(6);
|
||||
|
||||
if (_G(gameState).R28Briefkasten) {
|
||||
if (_G(gameState).R28LetterBox) {
|
||||
_G(det)->showStaticSpr(8);
|
||||
_G(det)->showStaticSpr(9);
|
||||
} else {
|
||||
@ -318,10 +318,10 @@ void Room28::get_pump() {
|
||||
int16 Room28::use_breifkasten() {
|
||||
int16 action_flag = false;
|
||||
|
||||
if (_G(gameState).R28Briefkasten && !_G(cur)->usingInventoryCursor()) {
|
||||
if (_G(gameState).R28LetterBox && !_G(cur)->usingInventoryCursor()) {
|
||||
action_flag = true;
|
||||
hideCur();
|
||||
_G(gameState).R28Briefkasten = false;
|
||||
_G(gameState).R28LetterBox = false;
|
||||
autoMove(7, P_CHEWY);
|
||||
start_spz_wait(CH_LGET_O, 1, false, P_CHEWY);
|
||||
_G(det)->hideStaticSpr(8);
|
||||
|
@ -156,7 +156,7 @@ void Room39::ok() {
|
||||
_G(obj)->show_sib(SIB_ZEITUNG_R27);
|
||||
_G(obj)->calc_rsi_flip_flop(SIB_SURIMY_R27);
|
||||
_G(obj)->calc_rsi_flip_flop(SIB_ZEITUNG_R27);
|
||||
invent_2_slot(BRIEF_INV);
|
||||
invent_2_slot(LETTER_INV);
|
||||
|
||||
switchRoom(27);
|
||||
startAadWait(192);
|
||||
|
@ -108,7 +108,7 @@ void Room40::xit(int16 eib_nr) {
|
||||
_G(gameState)._personRoomNr[P_HOWARD] = 28;
|
||||
|
||||
} else if (eib_nr == 72) {
|
||||
if ((_G(obj)->checkInventory(HOTEL_INV) && _G(obj)->checkInventory(TICKET_INV) && _G(gameState).R42BriefOk && _G(gameState).R28Manuskript)
|
||||
if ((_G(obj)->checkInventory(HOTEL_INV) && _G(obj)->checkInventory(TICKET_INV) && _G(gameState).R42LetterOk && _G(gameState).R28Manuskript)
|
||||
|| _G(gameState).R40TrainOk) {
|
||||
_G(gameState).R40TrainOk = true;
|
||||
_G(gameState)._personRoomNr[P_HOWARD] = 45;
|
||||
|
@ -214,14 +214,14 @@ int16 Room41::use_brief() {
|
||||
int16 action_flag = false;
|
||||
hideCur();
|
||||
|
||||
if (isCurInventory(BRIEF_INV)) {
|
||||
if (isCurInventory(LETTER_INV)) {
|
||||
action_flag = true;
|
||||
stop_hoggy();
|
||||
autoMove(6, P_CHEWY);
|
||||
startAadWait(126);
|
||||
start_hoggy();
|
||||
|
||||
} else if (isCurInventory(BRIEF2_INV)) {
|
||||
} else if (isCurInventory(STAMPEDLETTER_INV)) {
|
||||
action_flag = true;
|
||||
autoMove(6, P_CHEWY);
|
||||
delInventory(_G(cur)->getInventoryCursor());
|
||||
@ -229,10 +229,10 @@ int16 Room41::use_brief() {
|
||||
startAadWait(186);
|
||||
start_hoggy();
|
||||
_G(atds)->set_ats_str(206, 1, ATS_DATA);
|
||||
_G(gameState).R28Briefkasten = true;
|
||||
_G(gameState).R28LetterBox = true;
|
||||
_G(gameState).R40TrainMove = true;
|
||||
_G(gameState).R28PostCar = true;
|
||||
_G(gameState).R42BriefOk = true;
|
||||
_G(gameState).R42LetterOk = true;
|
||||
}
|
||||
|
||||
showCur();
|
||||
|
@ -32,7 +32,7 @@ namespace Chewy {
|
||||
namespace Rooms {
|
||||
|
||||
void Room42::entry() {
|
||||
if (!_G(gameState).R42BeamterWach) {
|
||||
if (!_G(gameState).R42StationEmployeeAway) {
|
||||
_G(det)->playSound(0, 0);
|
||||
_G(det)->startDetail(0, 255, ANI_FRONT);
|
||||
}
|
||||
@ -44,7 +44,7 @@ void Room42::entry() {
|
||||
_G(det)->stopDetail(0);
|
||||
_G(timer_nr)[0] = _G(room)->set_timer(8, 5);
|
||||
_G(det)->set_static_ani(8, -1);
|
||||
_G(gameState).R42BeamterWach = true;
|
||||
_G(gameState).R42StationEmployeeAway = true;
|
||||
_G(det)->stopSound(0);
|
||||
|
||||
_G(SetUpScreenFunc) = setup_func;
|
||||
@ -54,10 +54,10 @@ void Room42::entry() {
|
||||
_G(atds)->set_ats_str(264, 1, ATS_DATA);
|
||||
}
|
||||
|
||||
if (_G(obj)->checkInventory(HOTEL_INV) && _G(obj)->checkInventory(TICKET_INV) && !_G(gameState).R42BriefOk)
|
||||
if (_G(obj)->checkInventory(HOTEL_INV) && _G(obj)->checkInventory(TICKET_INV) && !_G(gameState).R42LetterOk)
|
||||
startAadWait(302);
|
||||
|
||||
if (_G(obj)->checkInventory(HOTEL_INV) && _G(obj)->checkInventory(TICKET_INV) && _G(gameState).R42BriefOk)
|
||||
if (_G(obj)->checkInventory(HOTEL_INV) && _G(obj)->checkInventory(TICKET_INV) && _G(gameState).R42LetterOk)
|
||||
startAadWait(301);
|
||||
}
|
||||
}
|
||||
@ -98,10 +98,10 @@ int16 Room42::useMailBag() {
|
||||
return action_flag;
|
||||
|
||||
hideCur();
|
||||
if (!_G(gameState).R42BeamterWach && !_G(cur)->usingInventoryCursor()) {
|
||||
if (!_G(gameState).R42StationEmployeeAway && !_G(cur)->usingInventoryCursor()) {
|
||||
action_flag = true;
|
||||
getPumpkin(136);
|
||||
} else if (_G(gameState).R42HoToBeamter && !_G(cur)->usingInventoryCursor() && !_G(gameState).R42MarkeOk) {
|
||||
} else if (_G(gameState).R42HoToBeamter && !_G(cur)->usingInventoryCursor() && !_G(gameState).R42StampOk) {
|
||||
action_flag = true;
|
||||
autoMove(3, P_CHEWY);
|
||||
_G(gameState)._personHide[P_CHEWY] = true;
|
||||
@ -113,11 +113,11 @@ int16 Room42::useMailBag() {
|
||||
_G(gameState)._personHide[P_CHEWY] = false;
|
||||
new_invent_2_cur(BMARKE_INV);
|
||||
startAadWait(181);
|
||||
_G(gameState).R42MarkeOk = true;
|
||||
_G(gameState).R42StampOk = true;
|
||||
autoMove(4, P_CHEWY);
|
||||
startAadWait(185);
|
||||
_G(gameState).R42HoToBeamter = false;
|
||||
} else if (isCurInventory(BRIEF2_INV)) {
|
||||
} else if (isCurInventory(STAMPEDLETTER_INV)) {
|
||||
action_flag = true;
|
||||
autoMove(3, P_CHEWY);
|
||||
_G(gameState)._personHide[P_CHEWY] = true;
|
||||
@ -127,12 +127,11 @@ int16 Room42::useMailBag() {
|
||||
startAadWait(183);
|
||||
_G(obj)->calc_rsi_flip_flop(SIB_BKASTEN_R28);
|
||||
_G(atds)->set_ats_str(206, 1, ATS_DATA);
|
||||
_G(gameState).R28Briefkasten = true;
|
||||
_G(gameState).R28LetterBox = true;
|
||||
_G(gameState).R40TrainMove = true;
|
||||
_G(gameState).R28PostCar = true;
|
||||
_G(gameState).R42BriefOk = true;
|
||||
|
||||
} else if (isCurInventory(BRIEF_INV)) {
|
||||
_G(gameState).R42LetterOk = true;
|
||||
} else if (isCurInventory(LETTER_INV)) {
|
||||
action_flag = true;
|
||||
startAadWait(182);
|
||||
}
|
||||
@ -165,9 +164,9 @@ void Room42::talkToStationEmployee() {
|
||||
int16 dia_nr;
|
||||
autoMove(1, P_CHEWY);
|
||||
|
||||
if (!_G(gameState).R42BeamterWach) {
|
||||
if (!_G(gameState).R42StationEmployeeAway) {
|
||||
dia_nr = 10;
|
||||
} else if (!_G(gameState).R42MarkeOk) {
|
||||
} else if (!_G(gameState).R42StampOk) {
|
||||
dia_nr = 13;
|
||||
} else {
|
||||
dia_nr = 14;
|
||||
|
@ -248,7 +248,7 @@ void Room56::talk_man() {
|
||||
|
||||
int16 Room56::use_man() {
|
||||
int16 action_ret = false;
|
||||
if (_G(gameState).flags32_10 || !isCurInventory(FLASCHE_INV))
|
||||
if (_G(gameState).flags32_10 || !isCurInventory(BOTTLE_INV))
|
||||
return action_ret;
|
||||
|
||||
action_ret = true;
|
||||
|
@ -2155,11 +2155,11 @@ void atdsStringStart(int16 diaNr, int16 strNr, int16 personNr, int16 mode) {
|
||||
#undef START_STOP
|
||||
#undef START_STOP_TMP
|
||||
|
||||
void calc_inv_use_txt(int16 test_nr) {
|
||||
void useItemWithInvItem(int16 itemId) {
|
||||
int scrollx, scrolly;
|
||||
int16 ret;
|
||||
|
||||
switch (test_nr) {
|
||||
switch (itemId) {
|
||||
case NOTEBOOK_OPEN_INV:
|
||||
case MONOCLE_INV:
|
||||
scrollx = _G(gameState).scrollx;
|
||||
@ -2176,6 +2176,7 @@ void calc_inv_use_txt(int16 test_nr) {
|
||||
g_events->update();
|
||||
SHOULD_QUIT_RETURN;
|
||||
}
|
||||
|
||||
while (g_events->getSwitchCode() != Common::KEYCODE_INVALID) {
|
||||
g_events->update();
|
||||
SHOULD_QUIT_RETURN;
|
||||
@ -2187,20 +2188,20 @@ void calc_inv_use_txt(int16 test_nr) {
|
||||
_G(gameState).scrolly = scrolly;
|
||||
break;
|
||||
|
||||
case ANGEL_INV:
|
||||
case KNOCHEN_INV:
|
||||
case FISHINGROD_INV:
|
||||
case BONE_INV:
|
||||
delInventory(_G(cur)->getInventoryCursor());
|
||||
_G(menu_item) = CUR_USE;
|
||||
cursorChoice(_G(menu_item));
|
||||
ret = del_invent_slot(test_nr);
|
||||
ret = del_invent_slot(itemId);
|
||||
_G(gameState).InventSlot[ret] = ANGEL2_INV;
|
||||
_G(obj)->changeInventory(test_nr, ANGEL2_INV, &_G(room_blk));
|
||||
_G(obj)->changeInventory(itemId, ANGEL2_INV, &_G(room_blk));
|
||||
break;
|
||||
|
||||
case KUERBIS1_INV:
|
||||
ret = del_invent_slot(KUERBIS1_INV);
|
||||
case PUMPKIN_INV:
|
||||
ret = del_invent_slot(PUMPKIN_INV);
|
||||
_G(gameState).InventSlot[ret] = K_MASKE_INV;
|
||||
_G(obj)->changeInventory(KUERBIS1_INV, K_MASKE_INV, &_G(room_blk));
|
||||
_G(obj)->changeInventory(PUMPKIN_INV, K_MASKE_INV, &_G(room_blk));
|
||||
invent_2_slot(K_FLEISCH_INV);
|
||||
invent_2_slot(K_KERNE_INV);
|
||||
break;
|
||||
@ -2219,25 +2220,25 @@ void calc_inv_use_txt(int16 test_nr) {
|
||||
}
|
||||
break;
|
||||
|
||||
case BRIEF_INV:
|
||||
case LETTER_INV:
|
||||
delInventory(_G(cur)->getInventoryCursor());
|
||||
_G(menu_item) = CUR_USE;
|
||||
cursorChoice(_G(menu_item));
|
||||
_G(gameState).R42BriefMarke = true;
|
||||
ret = del_invent_slot(BRIEF_INV);
|
||||
_G(gameState).InventSlot[ret] = BRIEF2_INV;
|
||||
_G(obj)->changeInventory(BRIEF_INV, BRIEF2_INV, &_G(room_blk));
|
||||
_G(gameState).R42LetterStamped = true;
|
||||
ret = del_invent_slot(LETTER_INV);
|
||||
_G(gameState).InventSlot[ret] = STAMPEDLETTER_INV;
|
||||
_G(obj)->changeInventory(LETTER_INV, STAMPEDLETTER_INV, &_G(room_blk));
|
||||
break;
|
||||
|
||||
case FLASCHE_INV:
|
||||
case BOTTLE_INV:
|
||||
delInventory(_G(cur)->getInventoryCursor());
|
||||
_G(menu_item) = CUR_USE;
|
||||
cursorChoice(_G(menu_item));
|
||||
// fall through
|
||||
|
||||
case WOLLE_INV:
|
||||
remove_inventory(WOLLE_INV);
|
||||
_G(atds)->set_ats_str(FLASCHE_INV, 1, INV_ATS_DATA);
|
||||
case WOOL_INV:
|
||||
remove_inventory(WOOL_INV);
|
||||
_G(atds)->set_ats_str(BOTTLE_INV, 1, INV_ATS_DATA);
|
||||
_G(gameState).R56WhiskyMix = true;
|
||||
break;
|
||||
|
||||
@ -2246,9 +2247,9 @@ void calc_inv_use_txt(int16 test_nr) {
|
||||
delInventory(_G(cur)->getInventoryCursor());
|
||||
_G(menu_item) = CUR_USE;
|
||||
cursorChoice(_G(menu_item));
|
||||
ret = del_invent_slot(test_nr);
|
||||
ret = del_invent_slot(itemId);
|
||||
_G(gameState).InventSlot[ret] = B_MARY2_INV;
|
||||
_G(obj)->changeInventory(test_nr, B_MARY2_INV, &_G(room_blk));
|
||||
_G(obj)->changeInventory(itemId, B_MARY2_INV, &_G(room_blk));
|
||||
break;
|
||||
|
||||
case 13:
|
||||
@ -2272,7 +2273,7 @@ void calc_inv_use_txt(int16 test_nr) {
|
||||
_G(menu_item) = CUR_USE;
|
||||
cursorChoice(CUR_USE);
|
||||
|
||||
ret = del_invent_slot(test_nr);
|
||||
ret = del_invent_slot(itemId);
|
||||
_G(gameState).InventSlot[ret] = 110;
|
||||
_G(obj)->changeInventory(104, 110, &_G(room_blk));
|
||||
break;
|
||||
@ -2406,7 +2407,7 @@ int16 calc_person_txt(int16 p_nr) {
|
||||
break;
|
||||
|
||||
case 42:
|
||||
if (!_G(gameState).R42MarkeOk && !_G(gameState).R42HoToBeamter) {
|
||||
if (!_G(gameState).R42StampOk && !_G(gameState).R42HoToBeamter) {
|
||||
_G(menu_item) = CUR_HOWARD;
|
||||
cursorChoice(_G(menu_item));
|
||||
txt_nr = 30000;
|
||||
|
@ -135,7 +135,7 @@ struct GameFlags {
|
||||
bool R27SurimyOk : 1;
|
||||
bool R28SurimyCar : 1;
|
||||
bool R28ChewyPump : 1;
|
||||
bool R28Briefkasten : 1;
|
||||
bool R28LetterBox : 1;
|
||||
bool R28EntryHaus : 1;
|
||||
bool R28Manuskript : 1;
|
||||
|
||||
@ -199,12 +199,12 @@ struct GameFlags {
|
||||
bool R41RepairInfo : 1;
|
||||
bool R41HowardDiaOK : 1;
|
||||
bool R42FirstEntry : 1;
|
||||
bool R42BriefOk : 1;
|
||||
bool R42LetterOk : 1;
|
||||
bool R42HoToBeamter : 1;
|
||||
|
||||
bool R42MarkeOk : 1;
|
||||
bool R42BriefMarke : 1;
|
||||
bool R42BeamterWach : 1;
|
||||
bool R42StampOk : 1;
|
||||
bool R42LetterStamped : 1;
|
||||
bool R42StationEmployeeAway : 1;
|
||||
bool R43GetPgLady : 1;
|
||||
bool R45TaxiOk : 1;
|
||||
bool R45MagOk : 1;
|
||||
|
@ -228,7 +228,7 @@ bool VideoPlayer::handleCustom(uint num, uint frame, CfoDecoder *cfoDecoder) {
|
||||
// Room28::cut_serv2 (FCUT_055)
|
||||
if (num != FCUT_055 || frame < 23) {
|
||||
// Room28::cut_serv1 (FCUT_056 / FCUT_064)
|
||||
if (_G(gameState).R28Briefkasten)
|
||||
if (_G(gameState).R28LetterBox)
|
||||
_G(det)->plot_static_details(0, 0, 8, 9);
|
||||
else
|
||||
_G(det)->plot_static_details(0, 0, 7, 7);
|
||||
|
Loading…
Reference in New Issue
Block a user