void ReplayMode::ReplayRefresh(int flag) { unsigned char queryBuffer[0x4000]; /*int len = */query_field_card(pduel, 0, LOCATION_MZONE, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(0), LOCATION_MZONE, (char*)queryBuffer); /*len = */query_field_card(pduel, 1, LOCATION_MZONE, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(1), LOCATION_MZONE, (char*)queryBuffer); /*len = */query_field_card(pduel, 0, LOCATION_SZONE, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(0), LOCATION_SZONE, (char*)queryBuffer); /*len = */query_field_card(pduel, 1, LOCATION_SZONE, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(1), LOCATION_SZONE, (char*)queryBuffer); /*len = */query_field_card(pduel, 0, LOCATION_HAND, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(0), LOCATION_HAND, (char*)queryBuffer); /*len = */query_field_card(pduel, 1, LOCATION_HAND, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(1), LOCATION_HAND, (char*)queryBuffer); }
void SingleMode::SinglePlayReload() { unsigned char queryBuffer[0x1000]; unsigned int flag = 0x7fdfff; /*int len = */query_field_card(pduel, 0, LOCATION_MZONE, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(0), LOCATION_MZONE, (char*)queryBuffer); /*len = */query_field_card(pduel, 1, LOCATION_MZONE, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(1), LOCATION_MZONE, (char*)queryBuffer); /*len = */query_field_card(pduel, 0, LOCATION_SZONE, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(0), LOCATION_SZONE, (char*)queryBuffer); /*len = */query_field_card(pduel, 1, LOCATION_SZONE, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(1), LOCATION_SZONE, (char*)queryBuffer); /*len = */query_field_card(pduel, 0, LOCATION_HAND, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(0), LOCATION_HAND, (char*)queryBuffer); /*len = */query_field_card(pduel, 1, LOCATION_HAND, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(1), LOCATION_HAND, (char*)queryBuffer); /*len = */query_field_card(pduel, 0, LOCATION_DECK, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(0), LOCATION_DECK, (char*)queryBuffer); /*len = */query_field_card(pduel, 1, LOCATION_DECK, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(1), LOCATION_DECK, (char*)queryBuffer); /*len = */query_field_card(pduel, 0, LOCATION_EXTRA, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(0), LOCATION_EXTRA, (char*)queryBuffer); /*len = */query_field_card(pduel, 1, LOCATION_EXTRA, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(1), LOCATION_EXTRA, (char*)queryBuffer); /*len = */query_field_card(pduel, 0, LOCATION_GRAVE, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(0), LOCATION_GRAVE, (char*)queryBuffer); /*len = */query_field_card(pduel, 1, LOCATION_GRAVE, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(1), LOCATION_GRAVE, (char*)queryBuffer); /*len = */query_field_card(pduel, 0, LOCATION_REMOVED, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(0), LOCATION_REMOVED, (char*)queryBuffer); /*len = */query_field_card(pduel, 1, LOCATION_REMOVED, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(1), LOCATION_REMOVED, (char*)queryBuffer); }
void SingleMode::SinglePlayRefreshExtra(int player, int flag) { unsigned char queryBuffer[0x1000]; /*int len = */query_field_card(pduel, player, LOCATION_EXTRA, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(player), LOCATION_EXTRA, (char*)queryBuffer); }
void ReplayMode::ReplayRefreshGrave(int player, int flag) { unsigned char queryBuffer[0x1000]; int len = query_field_card(pduel, 0, LOCATION_GRAVE, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(player), LOCATION_GRAVE, (char*)queryBuffer); }
void ReplayMode::ReplayRefreshDeck(int player, int flag) { unsigned char queryBuffer[0x2000]; /*int len = */query_field_card(pduel, player, LOCATION_DECK, flag, queryBuffer, 0); mainGame->dField.UpdateFieldCard(mainGame->LocalPlayer(player), LOCATION_DECK, (char*)queryBuffer); }