game_client_logic_deb 1.8.401 → 1.8.403
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +8538 -8490
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +285 -285
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
initMetadataForInterface(ControlsContract, 'ControlsContract');
|
|
598
598
|
initMetadataForInterface(TradeSceneContract, 'TradeSceneContract');
|
|
599
599
|
initMetadataForInterface(EarnPointsSceneContract, 'EarnPointsSceneContract');
|
|
600
|
-
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [
|
|
600
|
+
initMetadataForInterface(TableScene, 'TableScene', VOID, VOID, [ControlsContract, ExpectantContract, SceneActionsContract]);
|
|
601
601
|
initMetadataForInterface(TradeScene, 'TradeScene', VOID, VOID, [SceneActionsContract, ExpectantContract, TradeSceneContract]);
|
|
602
602
|
initMetadataForInterface(EarnPointsScene, 'EarnPointsScene', VOID, VOID, [SceneActionsContract, ExpectantContract, EarnPointsSceneContract]);
|
|
603
603
|
initMetadataForClass(EarnPointsSceneImpl, 'EarnPointsSceneImpl', VOID, VOID, [EarnPointsSceneContract, ExpectantContract, SceneActionsContract, PlayersSceneContract, EarnPointsScene, GameEngineSceneContract]);
|
|
@@ -932,7 +932,7 @@
|
|
|
932
932
|
case 1:
|
|
933
933
|
var $this$transform = this.p9h_1;
|
|
934
934
|
var value = this.o9h_1;
|
|
935
|
-
if (value.
|
|
935
|
+
if (value.x6m()) {
|
|
936
936
|
this.s8_1 = 3;
|
|
937
937
|
suspendResult = $this$transform.z27(value, this);
|
|
938
938
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1046,7 +1046,7 @@
|
|
|
1046
1046
|
var tmp0 = this.j9i_1;
|
|
1047
1047
|
var value = this.k9i_1;
|
|
1048
1048
|
this.s8_1 = 1;
|
|
1049
|
-
suspendResult = tmp0.z27(value.
|
|
1049
|
+
suspendResult = tmp0.z27(value.w6m(), this);
|
|
1050
1050
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1051
1051
|
return suspendResult;
|
|
1052
1052
|
}
|
|
@@ -1149,7 +1149,7 @@
|
|
|
1149
1149
|
case 1:
|
|
1150
1150
|
var $this$transform = this.h9j_1;
|
|
1151
1151
|
var value = this.g9j_1;
|
|
1152
|
-
if (value.
|
|
1152
|
+
if (value.x6m()) {
|
|
1153
1153
|
this.s8_1 = 3;
|
|
1154
1154
|
suspendResult = $this$transform.z27(value, this);
|
|
1155
1155
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1525,7 +1525,7 @@
|
|
|
1525
1525
|
case 1:
|
|
1526
1526
|
var $this$transform = this.j9l_1;
|
|
1527
1527
|
var value = this.i9l_1;
|
|
1528
|
-
if (value.
|
|
1528
|
+
if (value.x6m()) {
|
|
1529
1529
|
this.s8_1 = 3;
|
|
1530
1530
|
suspendResult = $this$transform.z27(value, this);
|
|
1531
1531
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -1639,7 +1639,7 @@
|
|
|
1639
1639
|
var tmp0 = this.d9m_1;
|
|
1640
1640
|
var value = this.e9m_1;
|
|
1641
1641
|
this.s8_1 = 1;
|
|
1642
|
-
suspendResult = tmp0.z27(value.
|
|
1642
|
+
suspendResult = tmp0.z27(value.w6m(), this);
|
|
1643
1643
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1644
1644
|
return suspendResult;
|
|
1645
1645
|
}
|
|
@@ -1742,7 +1742,7 @@
|
|
|
1742
1742
|
case 1:
|
|
1743
1743
|
var $this$transform = this.b9n_1;
|
|
1744
1744
|
var value = this.a9n_1;
|
|
1745
|
-
if (value.
|
|
1745
|
+
if (value.x6m()) {
|
|
1746
1746
|
this.s8_1 = 3;
|
|
1747
1747
|
suspendResult = $this$transform.z27(value, this);
|
|
1748
1748
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -2082,8 +2082,8 @@
|
|
|
2082
2082
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
2083
2083
|
return new GameClientImpl$observeStateIfTableExists$$inlined$filter$1(this_0);
|
|
2084
2084
|
};
|
|
2085
|
-
protoOf(GameClientImpl).
|
|
2086
|
-
this.u9n_1.
|
|
2085
|
+
protoOf(GameClientImpl).v6m = function (block) {
|
|
2086
|
+
this.u9n_1.v6m(block);
|
|
2087
2087
|
};
|
|
2088
2088
|
function SessionException(code, message) {
|
|
2089
2089
|
Exception_init_$Init$(message, this);
|
|
@@ -2344,7 +2344,7 @@
|
|
|
2344
2344
|
var tmp;
|
|
2345
2345
|
if (_this__u8e3s4 instanceof PlayerLostConnectionReason) {
|
|
2346
2346
|
// Inline function 'kotlin.takeUnless' call
|
|
2347
|
-
var this_0 = getPlayer(table.players, _this__u8e3s4.b64_1).
|
|
2347
|
+
var this_0 = getPlayer(table.players, _this__u8e3s4.b64_1).r6u_1;
|
|
2348
2348
|
var tmp_0;
|
|
2349
2349
|
if (!(_this__u8e3s4.b64_1 === get_currentPlayer(table).playerId)) {
|
|
2350
2350
|
tmp_0 = this_0;
|
|
@@ -2356,7 +2356,7 @@
|
|
|
2356
2356
|
} else {
|
|
2357
2357
|
if (_this__u8e3s4 instanceof PlayerTimeoutReason) {
|
|
2358
2358
|
// Inline function 'kotlin.takeUnless' call
|
|
2359
|
-
var this_1 = getPlayer(table.players, _this__u8e3s4.e64_1).
|
|
2359
|
+
var this_1 = getPlayer(table.players, _this__u8e3s4.e64_1).r6u_1;
|
|
2360
2360
|
var tmp_1;
|
|
2361
2361
|
if (!(_this__u8e3s4.e64_1 === get_currentPlayer(table).playerId)) {
|
|
2362
2362
|
tmp_1 = this_1;
|
|
@@ -2371,7 +2371,7 @@
|
|
|
2371
2371
|
if (_this__u8e3s4.f64_1 === get_currentPlayer(table).playerId) {
|
|
2372
2372
|
tmp_2 = null;
|
|
2373
2373
|
} else {
|
|
2374
|
-
tmp_2 = new ErrorState(VOID, getPlayer(table.players, _this__u8e3s4.f64_1).
|
|
2374
|
+
tmp_2 = new ErrorState(VOID, getPlayer(table.players, _this__u8e3s4.f64_1).r6u_1, _this__u8e3s4);
|
|
2375
2375
|
}
|
|
2376
2376
|
tmp = tmp_2;
|
|
2377
2377
|
} else {
|
|
@@ -2404,10 +2404,10 @@
|
|
|
2404
2404
|
return tmp;
|
|
2405
2405
|
}
|
|
2406
2406
|
function toPlayerVM(_this__u8e3s4, currentPlayerId, isGameFinished, round, isRatingUp, wasPlayerOffline) {
|
|
2407
|
-
var tmp4_userInfo = _this__u8e3s4.
|
|
2408
|
-
var tmp5_selectedSuit = _this__u8e3s4.
|
|
2409
|
-
var tmp6_isGameCreator = _this__u8e3s4.
|
|
2410
|
-
var tmp7_isShuffleCards = _this__u8e3s4.
|
|
2407
|
+
var tmp4_userInfo = _this__u8e3s4.r6u_1;
|
|
2408
|
+
var tmp5_selectedSuit = _this__u8e3s4.u6u_1.j6v_1 ? round.trump : null;
|
|
2409
|
+
var tmp6_isGameCreator = _this__u8e3s4.u6u_1.y6u_1;
|
|
2410
|
+
var tmp7_isShuffleCards = _this__u8e3s4.u6u_1.b6v_1;
|
|
2411
2411
|
var tmp8_isCurrentPlayer = currentPlayerId === _this__u8e3s4.playerId;
|
|
2412
2412
|
var tmp0_safe_receiver = round.trump;
|
|
2413
2413
|
var tmp;
|
|
@@ -2417,7 +2417,7 @@
|
|
|
2417
2417
|
// Inline function 'kotlin.let' call
|
|
2418
2418
|
// Inline function 'kotlin.collections.sumOf' call
|
|
2419
2419
|
var sum = 0;
|
|
2420
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
2420
|
+
var _iterator__ex2g4s = _this__u8e3s4.w6u_1.n6w_1.l();
|
|
2421
2421
|
while (_iterator__ex2g4s.m()) {
|
|
2422
2422
|
var element = _iterator__ex2g4s.n();
|
|
2423
2423
|
var tmp_0 = sum;
|
|
@@ -2458,10 +2458,10 @@
|
|
|
2458
2458
|
return new PlayerViewModel(tmp4_userInfo, tmp5_selectedSuit, tmp7_isShuffleCards, tmp8_isCurrentPlayer, tmp6_isGameCreator, tmp9_points, tmp10_isRatingUp, tmp11_wasPlayerOffline);
|
|
2459
2459
|
}
|
|
2460
2460
|
function toStateVM(_this__u8e3s4, showConnectionStatus, isGameFinished, isStateActive) {
|
|
2461
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2461
|
+
var tmp0_safe_receiver = _this__u8e3s4.s6u_1.o65_1;
|
|
2462
2462
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u65_1;
|
|
2463
2463
|
var tmp5_playerId = _this__u8e3s4.playerId;
|
|
2464
|
-
var tmp1_safe_receiver = _this__u8e3s4.
|
|
2464
|
+
var tmp1_safe_receiver = _this__u8e3s4.s6u_1.i65_1;
|
|
2465
2465
|
var tmp;
|
|
2466
2466
|
if (tmp1_safe_receiver == null) {
|
|
2467
2467
|
tmp = null;
|
|
@@ -2476,7 +2476,7 @@
|
|
|
2476
2476
|
tmp = tmp_0;
|
|
2477
2477
|
}
|
|
2478
2478
|
var tmp6_startFromTime = tmp;
|
|
2479
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
2479
|
+
var tmp2_safe_receiver = _this__u8e3s4.s6u_1.j65_1;
|
|
2480
2480
|
var tmp_1;
|
|
2481
2481
|
if (tmp2_safe_receiver == null) {
|
|
2482
2482
|
tmp_1 = null;
|
|
@@ -2491,7 +2491,7 @@
|
|
|
2491
2491
|
tmp_1 = tmp_2;
|
|
2492
2492
|
}
|
|
2493
2493
|
var tmp7_playerTurnTimeout = tmp_1;
|
|
2494
|
-
var tmp3_safe_receiver = _this__u8e3s4.
|
|
2494
|
+
var tmp3_safe_receiver = _this__u8e3s4.s6u_1.k65_1;
|
|
2495
2495
|
var tmp_3;
|
|
2496
2496
|
if (tmp3_safe_receiver == null) {
|
|
2497
2497
|
tmp_3 = null;
|
|
@@ -2525,13 +2525,13 @@
|
|
|
2525
2525
|
tmp_5 = null;
|
|
2526
2526
|
}
|
|
2527
2527
|
var tmp9_connectionState = tmp_5;
|
|
2528
|
-
var tmp10_tag = _this__u8e3s4.
|
|
2529
|
-
var tmp11_state = isStateActive ? _this__u8e3s4.
|
|
2528
|
+
var tmp10_tag = _this__u8e3s4.s6u_1.n65_1;
|
|
2529
|
+
var tmp11_state = isStateActive ? _this__u8e3s4.s6u_1.l65_1 : PlayerWaitingState_IDLE_getInstance();
|
|
2530
2530
|
return new PlayerStateViewModel(tmp5_playerId, tmp10_tag, tmp11_state, tmp9_connectionState, tmp6_startFromTime, tmp7_playerTurnTimeout, tmp8_waitPlayerUntilTime);
|
|
2531
2531
|
}
|
|
2532
2532
|
function toVM(_this__u8e3s4, players) {
|
|
2533
|
-
var tmp0_whoGotBribeUser = getPlayer(players, _this__u8e3s4.z9o_1).
|
|
2534
|
-
var tmp1_whoPutFirstCardUser = getPlayer(players, _this__u8e3s4.y9o_1).
|
|
2533
|
+
var tmp0_whoGotBribeUser = getPlayer(players, _this__u8e3s4.z9o_1).r6u_1;
|
|
2534
|
+
var tmp1_whoPutFirstCardUser = getPlayer(players, _this__u8e3s4.y9o_1).r6u_1;
|
|
2535
2535
|
// Inline function 'kotlin.collections.map' call
|
|
2536
2536
|
var this_0 = _this__u8e3s4.a9p_1;
|
|
2537
2537
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2539,7 +2539,7 @@
|
|
|
2539
2539
|
var _iterator__ex2g4s = this_0.l();
|
|
2540
2540
|
while (_iterator__ex2g4s.m()) {
|
|
2541
2541
|
var item = _iterator__ex2g4s.n();
|
|
2542
|
-
var tmp$ret$0 = toVM_1(item, getPlayerIndex(players, item.
|
|
2542
|
+
var tmp$ret$0 = toVM_1(item, getPlayerIndex(players, item.y78_1));
|
|
2543
2543
|
destination.j(tmp$ret$0);
|
|
2544
2544
|
}
|
|
2545
2545
|
return new LastBribeViewModel(tmp1_whoPutFirstCardUser, tmp0_whoGotBribeUser, destination);
|
|
@@ -2551,7 +2551,7 @@
|
|
|
2551
2551
|
tmp = null;
|
|
2552
2552
|
} else {
|
|
2553
2553
|
// Inline function 'kotlin.let' call
|
|
2554
|
-
tmp = getPlayer(players, _this__u8e3s4.c9p_1).
|
|
2554
|
+
tmp = getPlayer(players, _this__u8e3s4.c9p_1).r6u_1;
|
|
2555
2555
|
}
|
|
2556
2556
|
var tmp4_whoShuffleCardsUserInfo = tmp;
|
|
2557
2557
|
var tmp_0;
|
|
@@ -2559,7 +2559,7 @@
|
|
|
2559
2559
|
tmp_0 = null;
|
|
2560
2560
|
} else {
|
|
2561
2561
|
// Inline function 'kotlin.let' call
|
|
2562
|
-
tmp_0 = getPlayer(players, _this__u8e3s4.d9p_1).
|
|
2562
|
+
tmp_0 = getPlayer(players, _this__u8e3s4.d9p_1).r6u_1;
|
|
2563
2563
|
}
|
|
2564
2564
|
var tmp5_whoChoseSuitUserInfo = tmp_0;
|
|
2565
2565
|
var tmp6_playersMode = config.playersMode;
|
|
@@ -2574,15 +2574,15 @@
|
|
|
2574
2574
|
var _iterator__ex2g4s = points.l();
|
|
2575
2575
|
while (_iterator__ex2g4s.m()) {
|
|
2576
2576
|
var item = _iterator__ex2g4s.n();
|
|
2577
|
-
var tmp0_points = item.
|
|
2577
|
+
var tmp0_points = item.s7p_1;
|
|
2578
2578
|
// Inline function 'kotlin.collections.map' call
|
|
2579
|
-
var this_0 = item.
|
|
2579
|
+
var this_0 = item.r7p_1;
|
|
2580
2580
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2581
2581
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2582
2582
|
var _iterator__ex2g4s_0 = this_0.l();
|
|
2583
2583
|
while (_iterator__ex2g4s_0.m()) {
|
|
2584
2584
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
2585
|
-
var tmp$ret$4 = getPlayer(players, item_0).
|
|
2585
|
+
var tmp$ret$4 = getPlayer(players, item_0).r6u_1;
|
|
2586
2586
|
destination_0.j(tmp$ret$4);
|
|
2587
2587
|
}
|
|
2588
2588
|
var tmp$ret$7 = new PointItemViewModel(destination_0, tmp0_points);
|
|
@@ -2596,9 +2596,9 @@
|
|
|
2596
2596
|
return new GameInfoViewModel(tmp3_trump, tmp7_pointsMode, tmp6_playersMode, tmp8_points, tmp5_whoChoseSuitUserInfo, tmp4_whoShuffleCardsUserInfo, tmp9_rulesSetType, tmp10_rules);
|
|
2597
2597
|
}
|
|
2598
2598
|
function toVM_1(_this__u8e3s4, playerIndex) {
|
|
2599
|
-
var tmp0_playerId = _this__u8e3s4.
|
|
2600
|
-
var tmp1_card = _this__u8e3s4.
|
|
2601
|
-
var tmp2_position = _this__u8e3s4.
|
|
2599
|
+
var tmp0_playerId = _this__u8e3s4.y78_1;
|
|
2600
|
+
var tmp1_card = _this__u8e3s4.a79_1;
|
|
2601
|
+
var tmp2_position = _this__u8e3s4.z78_1;
|
|
2602
2602
|
return new CardOnTableViewModel(playerIndex, tmp0_playerId, tmp2_position, tmp1_card);
|
|
2603
2603
|
}
|
|
2604
2604
|
function SceneViewModel(roundNumber, sceneId, previousSceneId) {
|
|
@@ -2638,7 +2638,7 @@
|
|
|
2638
2638
|
this.n9p_1 = isRatingUp;
|
|
2639
2639
|
this.o9p_1 = wasPlayerOffline;
|
|
2640
2640
|
}
|
|
2641
|
-
protoOf(PlayerViewModel).
|
|
2641
|
+
protoOf(PlayerViewModel).x6u = function () {
|
|
2642
2642
|
return this.j9p_1;
|
|
2643
2643
|
};
|
|
2644
2644
|
protoOf(PlayerViewModel).c64 = function () {
|
|
@@ -3380,7 +3380,7 @@
|
|
|
3380
3380
|
return new CombinationChoiceExpectant(wrapper.b9s_1, _this__u8e3s4.u8x_1, _this__u8e3s4.s8x_1, _this__u8e3s4.t8x_1);
|
|
3381
3381
|
}
|
|
3382
3382
|
function mapToExpectant_4(_this__u8e3s4, wrapper) {
|
|
3383
|
-
return new PickUpBribeExpectant(wrapper.b9s_1, _this__u8e3s4.
|
|
3383
|
+
return new PickUpBribeExpectant(wrapper.b9s_1, _this__u8e3s4.o8r_1, _this__u8e3s4.p8r_1);
|
|
3384
3384
|
}
|
|
3385
3385
|
function mapToExpectant_5(_this__u8e3s4, wrapper) {
|
|
3386
3386
|
return new WinnerCombinationsExpectant(wrapper.b9s_1, _this__u8e3s4.w8x_1);
|
|
@@ -3452,22 +3452,22 @@
|
|
|
3452
3452
|
protoOf(GameHistoryViewModel).b53 = function () {
|
|
3453
3453
|
return this.gameId;
|
|
3454
3454
|
};
|
|
3455
|
-
protoOf(GameHistoryViewModel).
|
|
3455
|
+
protoOf(GameHistoryViewModel).k8b = function () {
|
|
3456
3456
|
return this.createdAt;
|
|
3457
3457
|
};
|
|
3458
3458
|
protoOf(GameHistoryViewModel).h9s = function () {
|
|
3459
3459
|
return this.gameType;
|
|
3460
3460
|
};
|
|
3461
|
-
protoOf(GameHistoryViewModel).
|
|
3461
|
+
protoOf(GameHistoryViewModel).x8b = function () {
|
|
3462
3462
|
return this.users;
|
|
3463
3463
|
};
|
|
3464
3464
|
protoOf(GameHistoryViewModel).v3r = function () {
|
|
3465
3465
|
return this.config;
|
|
3466
3466
|
};
|
|
3467
|
-
protoOf(GameHistoryViewModel).
|
|
3467
|
+
protoOf(GameHistoryViewModel).e8f = function () {
|
|
3468
3468
|
return this.gameWinners;
|
|
3469
3469
|
};
|
|
3470
|
-
protoOf(GameHistoryViewModel).
|
|
3470
|
+
protoOf(GameHistoryViewModel).b8f = function () {
|
|
3471
3471
|
return this.metadata;
|
|
3472
3472
|
};
|
|
3473
3473
|
protoOf(GameHistoryViewModel).equals = function (other) {
|
|
@@ -3564,10 +3564,10 @@
|
|
|
3564
3564
|
protoOf(RoundEndedHistoryViewModel).b53 = function () {
|
|
3565
3565
|
return this.gameId;
|
|
3566
3566
|
};
|
|
3567
|
-
protoOf(RoundEndedHistoryViewModel).
|
|
3567
|
+
protoOf(RoundEndedHistoryViewModel).a8f = function () {
|
|
3568
3568
|
return this.roundNumber;
|
|
3569
3569
|
};
|
|
3570
|
-
protoOf(RoundEndedHistoryViewModel).
|
|
3570
|
+
protoOf(RoundEndedHistoryViewModel).n8f = function () {
|
|
3571
3571
|
return this.items;
|
|
3572
3572
|
};
|
|
3573
3573
|
protoOf(RoundEndedHistoryViewModel).j9s = function () {
|
|
@@ -5132,13 +5132,13 @@
|
|
|
5132
5132
|
function CheckSceneBufferUseCase() {
|
|
5133
5133
|
}
|
|
5134
5134
|
protoOf(CheckSceneBufferUseCase).v9s = function (state, action) {
|
|
5135
|
-
if (!state.
|
|
5135
|
+
if (!state.x6m() && !get_isCreated(state)) {
|
|
5136
5136
|
return new PutInBuffer('CheckSceneBufferUseCase.isTableExists');
|
|
5137
5137
|
}
|
|
5138
|
-
var table = state.
|
|
5138
|
+
var table = state.w6m();
|
|
5139
5139
|
if (isInterface(action, InSceneAction)) {
|
|
5140
5140
|
var tmp;
|
|
5141
|
-
if (action.n8x(table.sceneInfo.
|
|
5141
|
+
if (action.n8x(table.sceneInfo.h7u_1)) {
|
|
5142
5142
|
tmp = new AvoidBuffer('CheckSceneBufferUseCase.inScene');
|
|
5143
5143
|
} else {
|
|
5144
5144
|
tmp = new PutInBuffer('CheckSceneBufferUseCase.inScene');
|
|
@@ -5152,17 +5152,17 @@
|
|
|
5152
5152
|
this.w9t_1 = ignoreForPlayers;
|
|
5153
5153
|
}
|
|
5154
5154
|
protoOf(NextPlayerTurnBufferUseCase).v9s = function (state, action) {
|
|
5155
|
-
if (!state.
|
|
5155
|
+
if (!state.x6m() && !get_isCreated(state)) {
|
|
5156
5156
|
return new PutInBuffer('NextPlayerTurnBufferUseCase.isTableExists');
|
|
5157
5157
|
}
|
|
5158
|
-
var table = state.
|
|
5158
|
+
var table = state.w6m();
|
|
5159
5159
|
if (isInterface(action, PlayerTurnAnswerAction)) {
|
|
5160
5160
|
var playerTurn = getPlayerTurn(action, table.players);
|
|
5161
5161
|
if (playerTurn == null || this.w9t_1.u1(playerTurn.playerId)) {
|
|
5162
5162
|
return new AvoidBuffer('NextPlayerTurnBufferUseCase.ignored');
|
|
5163
5163
|
}
|
|
5164
5164
|
var tmp;
|
|
5165
|
-
if (playerTurn.
|
|
5165
|
+
if (playerTurn.s6u_1.p65()) {
|
|
5166
5166
|
tmp = new AvoidBuffer('NextPlayerTurnBufferUseCase.playerTurn');
|
|
5167
5167
|
} else {
|
|
5168
5168
|
tmp = new PutInBuffer('NextPlayerTurnBufferUseCase.playerTurn: ' + ('expected = ' + playerTurn.playerId));
|
|
@@ -5175,8 +5175,8 @@
|
|
|
5175
5175
|
}
|
|
5176
5176
|
protoOf(PassErrorActionBufferUseCase).v9s = function (state, action) {
|
|
5177
5177
|
if (action instanceof ErrorAction) {
|
|
5178
|
-
var reason = action.a8y_1.
|
|
5179
|
-
return checkTerminatedReason(state.
|
|
5178
|
+
var reason = action.a8y_1.w7l_1;
|
|
5179
|
+
return checkTerminatedReason(state.tableOrNull, false, reason, 'PassErrorActionBufferUseCase.checkTerminatedReason');
|
|
5180
5180
|
}
|
|
5181
5181
|
return new AvoidBuffer('PassErrorActionBufferUseCase');
|
|
5182
5182
|
};
|
|
@@ -5222,7 +5222,7 @@
|
|
|
5222
5222
|
}
|
|
5223
5223
|
}
|
|
5224
5224
|
}
|
|
5225
|
-
if (isGameFinished && !table.sceneInfo.
|
|
5225
|
+
if (isGameFinished && !table.sceneInfo.z8f()) {
|
|
5226
5226
|
return new PutInBuffer(debugLabel);
|
|
5227
5227
|
}
|
|
5228
5228
|
return new AvoidBuffer(debugLabel);
|
|
@@ -5238,22 +5238,22 @@
|
|
|
5238
5238
|
function PassTerminatedActionBufferUseCase() {
|
|
5239
5239
|
}
|
|
5240
5240
|
protoOf(PassTerminatedActionBufferUseCase).v9s = function (state, action) {
|
|
5241
|
-
if (!state.
|
|
5241
|
+
if (!state.x6m() && !get_isCreated(state)) {
|
|
5242
5242
|
return new PutInBuffer('PassTerminatedActionBufferUseCase: Table not exists');
|
|
5243
5243
|
}
|
|
5244
5244
|
if (isInterface(action, TerminatedAction)) {
|
|
5245
5245
|
var reason = action.reason;
|
|
5246
|
-
return checkTerminatedReason(state.
|
|
5246
|
+
return checkTerminatedReason(state.w6m(), action.isGameFinished, reason, 'PassTerminatedActionBufferUseCase.checkTerminatedReason');
|
|
5247
5247
|
}
|
|
5248
5248
|
return new AvoidBuffer('PassTerminatedActionBufferUseCase');
|
|
5249
5249
|
};
|
|
5250
5250
|
function WaitPlayerAnswerBufferUseCase() {
|
|
5251
5251
|
}
|
|
5252
5252
|
protoOf(WaitPlayerAnswerBufferUseCase).v9s = function (state, action) {
|
|
5253
|
-
if (!state.
|
|
5253
|
+
if (!state.x6m() && !get_isCreated(state)) {
|
|
5254
5254
|
return new PutInBuffer('WaitPlayerAnswerBufferUseCase.isTableExists');
|
|
5255
5255
|
}
|
|
5256
|
-
var table = state.
|
|
5256
|
+
var table = state.w6m();
|
|
5257
5257
|
if (isInterface(action, PlayerTurnAnswerAction)) {
|
|
5258
5258
|
return new AvoidBuffer('WaitPlayerAnswerBufferUseCase.playerTurnAnswer');
|
|
5259
5259
|
}
|
|
@@ -5301,7 +5301,7 @@
|
|
|
5301
5301
|
function WaitUntilInterceptorFinishedBufferUseCase() {
|
|
5302
5302
|
}
|
|
5303
5303
|
protoOf(WaitUntilInterceptorFinishedBufferUseCase).v9s = function (state, action) {
|
|
5304
|
-
if (!state.
|
|
5304
|
+
if (!state.x6m() && !get_isCreated(state)) {
|
|
5305
5305
|
return new PutInBuffer('WaitUntilInterceptorFinishedBufferUseCase.isTableExists');
|
|
5306
5306
|
}
|
|
5307
5307
|
var clientState = get_clientPayload_0(state);
|
|
@@ -5371,7 +5371,7 @@
|
|
|
5371
5371
|
if (!mustConsider)
|
|
5372
5372
|
return null;
|
|
5373
5373
|
var isPartnerLeads = config.playersMode.isTeamGame && isPartnerOf($this, winCard, player, players, $this.i9u_1);
|
|
5374
|
-
var isPlayerCardLowerWinCard = getGrowth(putPlayerCard, trump, firstSuit) < getGrowth(winCard.
|
|
5374
|
+
var isPlayerCardLowerWinCard = getGrowth(putPlayerCard, trump, firstSuit) < getGrowth(winCard.a79_1, trump, firstSuit);
|
|
5375
5375
|
if (isPartnerLeads) {
|
|
5376
5376
|
var partnerRule = config.rules.trumpCardStepPartnerMode;
|
|
5377
5377
|
switch (partnerRule.q2_1) {
|
|
@@ -5380,7 +5380,7 @@
|
|
|
5380
5380
|
return null;
|
|
5381
5381
|
case 1:
|
|
5382
5382
|
if (isPlayerCardLowerWinCard) {
|
|
5383
|
-
var playerHasHigher = hasHigherTrump($this, player.
|
|
5383
|
+
var playerHasHigher = hasHigherTrump($this, player.t6u_1, winCard.a79_1, trump, putPlayerCard, firstSuit);
|
|
5384
5384
|
return playerHasHigher ? ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance() : null;
|
|
5385
5385
|
}
|
|
5386
5386
|
|
|
@@ -5391,7 +5391,7 @@
|
|
|
5391
5391
|
}
|
|
5392
5392
|
} else {
|
|
5393
5393
|
if (isPlayerCardLowerWinCard) {
|
|
5394
|
-
var playerHasHigher_0 = hasHigherTrump($this, player.
|
|
5394
|
+
var playerHasHigher_0 = hasHigherTrump($this, player.t6u_1, winCard.a79_1, trump, putPlayerCard, firstSuit);
|
|
5395
5395
|
return playerHasHigher_0 ? ValidationCode_CARD_VALIDATION_HAS_HIGHER_TRUMP_CARD_getInstance() : null;
|
|
5396
5396
|
}
|
|
5397
5397
|
}
|
|
@@ -5424,7 +5424,7 @@
|
|
|
5424
5424
|
return tmp$ret$0;
|
|
5425
5425
|
}
|
|
5426
5426
|
function isPartnerOf($this, _this__u8e3s4, player, all, teams) {
|
|
5427
|
-
return _this__u8e3s4.
|
|
5427
|
+
return _this__u8e3s4.y78_1 === teams.c8i(player.playerId, all).playerId;
|
|
5428
5428
|
}
|
|
5429
5429
|
function hasHigherTrump($this, _this__u8e3s4, winningCard, trump, playedCard, firstSuit) {
|
|
5430
5430
|
var tmp$ret$0;
|
|
@@ -5458,7 +5458,7 @@
|
|
|
5458
5458
|
}
|
|
5459
5459
|
protoOf(PutCardValidatorInteractorImpl).h9u = function (putPlayerCard, cardsOnTable, selectedTrump, player, players, config) {
|
|
5460
5460
|
var trump = selectedTrump;
|
|
5461
|
-
var tmp0_elvis_lhs = Companion_instance.
|
|
5461
|
+
var tmp0_elvis_lhs = Companion_instance.l8c(cardsOnTable);
|
|
5462
5462
|
var tmp;
|
|
5463
5463
|
if (tmp0_elvis_lhs == null) {
|
|
5464
5464
|
return null;
|
|
@@ -5466,9 +5466,9 @@
|
|
|
5466
5466
|
tmp = tmp0_elvis_lhs;
|
|
5467
5467
|
}
|
|
5468
5468
|
var firstOnTable = tmp;
|
|
5469
|
-
var firstSuit = firstOnTable.
|
|
5470
|
-
var playerHasSuit = hasSuit(this, player.
|
|
5471
|
-
var playerHasTrump = hasSuit(this, player.
|
|
5469
|
+
var firstSuit = firstOnTable.a79_1.a5c();
|
|
5470
|
+
var playerHasSuit = hasSuit(this, player.t6u_1, firstSuit);
|
|
5471
|
+
var playerHasTrump = hasSuit(this, player.t6u_1, trump);
|
|
5472
5472
|
var tmp$ret$0;
|
|
5473
5473
|
$l$block_0: {
|
|
5474
5474
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -5485,7 +5485,7 @@
|
|
|
5485
5485
|
var _iterator__ex2g4s = cardsOnTable.l();
|
|
5486
5486
|
while (_iterator__ex2g4s.m()) {
|
|
5487
5487
|
var element = _iterator__ex2g4s.n();
|
|
5488
|
-
if (element.
|
|
5488
|
+
if (element.a79_1.a5c().equals(trump)) {
|
|
5489
5489
|
tmp$ret$0 = true;
|
|
5490
5490
|
break $l$block_0;
|
|
5491
5491
|
}
|
|
@@ -5493,7 +5493,7 @@
|
|
|
5493
5493
|
tmp$ret$0 = false;
|
|
5494
5494
|
}
|
|
5495
5495
|
var anyTrumpOnTbl = tmp$ret$0;
|
|
5496
|
-
var winningCard = this.j9u_1.
|
|
5496
|
+
var winningCard = this.j9u_1.y8i(cardsOnTable, trump);
|
|
5497
5497
|
var tmp1_safe_receiver = checkHigherTrump(this, config.rules.trumpCardStepMode, config, players, trump, player, putPlayerCard, firstSuit, playerHasSuit, anyTrumpOnTbl, winningCard);
|
|
5498
5498
|
if (tmp1_safe_receiver == null)
|
|
5499
5499
|
null;
|
|
@@ -5652,7 +5652,7 @@
|
|
|
5652
5652
|
var tmp0 = this.n9v_1;
|
|
5653
5653
|
var value = this.o9v_1;
|
|
5654
5654
|
this.s8_1 = 1;
|
|
5655
|
-
var tmp_0 = value.
|
|
5655
|
+
var tmp_0 = value.w6m().players;
|
|
5656
5656
|
var tmp0_safe_receiver = get_clientPayloadOrNull_0(value);
|
|
5657
5657
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h9t_1;
|
|
5658
5658
|
var tmp_1;
|
|
@@ -5885,7 +5885,7 @@
|
|
|
5885
5885
|
var _iterator__ex2g4s = value.l();
|
|
5886
5886
|
while (_iterator__ex2g4s.m()) {
|
|
5887
5887
|
var item = _iterator__ex2g4s.n();
|
|
5888
|
-
destination.j(item.
|
|
5888
|
+
destination.j(item.r6u_1);
|
|
5889
5889
|
}
|
|
5890
5890
|
|
|
5891
5891
|
suspendResult = tmp0.z27(destination, this);
|
|
@@ -6082,15 +6082,15 @@
|
|
|
6082
6082
|
var tmp0 = this.b9z_1;
|
|
6083
6083
|
var value = this.c9z_1;
|
|
6084
6084
|
this.s8_1 = 1;
|
|
6085
|
-
var table = value.
|
|
6085
|
+
var table = value.tableOrNull;
|
|
6086
6086
|
var sceneInfo = table == null ? null : table.sceneInfo;
|
|
6087
6087
|
var tmp2_safe_receiver = table == null ? null : table.gameInfo;
|
|
6088
6088
|
var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.round;
|
|
6089
6089
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.roundNumber;
|
|
6090
6090
|
var tmp_0 = tmp4_elvis_lhs == null ? 0 : tmp4_elvis_lhs;
|
|
6091
|
-
var tmp6_elvis_lhs = sceneInfo == null ? null : sceneInfo.
|
|
6091
|
+
var tmp6_elvis_lhs = sceneInfo == null ? null : sceneInfo.h7u_1;
|
|
6092
6092
|
var tmp_1 = tmp6_elvis_lhs == null ? 'WAITING' : tmp6_elvis_lhs;
|
|
6093
|
-
suspendResult = tmp0.z27(new SceneViewModel(tmp_0, tmp_1, sceneInfo == null ? null : sceneInfo.
|
|
6093
|
+
suspendResult = tmp0.z27(new SceneViewModel(tmp_0, tmp_1, sceneInfo == null ? null : sceneInfo.i7u_1), this);
|
|
6094
6094
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6095
6095
|
return suspendResult;
|
|
6096
6096
|
}
|
|
@@ -6286,11 +6286,11 @@
|
|
|
6286
6286
|
this.s8_1 = 1;
|
|
6287
6287
|
var tmp0_safe_receiver = get_clientPayloadOrNull_0(value);
|
|
6288
6288
|
var tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s9t_1;
|
|
6289
|
-
var tmp1_safe_receiver = value.
|
|
6289
|
+
var tmp1_safe_receiver = value.tableOrNull;
|
|
6290
6290
|
var tmp_1 = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.gameId;
|
|
6291
|
-
var tmp2_safe_receiver = value.
|
|
6291
|
+
var tmp2_safe_receiver = value.tableOrNull;
|
|
6292
6292
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.isGameFinished;
|
|
6293
|
-
suspendResult = tmp0.z27(new GameLifecycleViewModel(value.gameLifecycleState, value.
|
|
6293
|
+
suspendResult = tmp0.z27(new GameLifecycleViewModel(value.gameLifecycleState, value.i6m_1, tmp_0, tmp_1, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), this);
|
|
6294
6294
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6295
6295
|
return suspendResult;
|
|
6296
6296
|
}
|
|
@@ -6392,7 +6392,7 @@
|
|
|
6392
6392
|
var _iterator__ex2g4s = this_0.l();
|
|
6393
6393
|
while (_iterator__ex2g4s.m()) {
|
|
6394
6394
|
var item = _iterator__ex2g4s.n();
|
|
6395
|
-
destination.j(new PlayerHandMetadataViewModel(item.playerId, item.
|
|
6395
|
+
destination.j(new PlayerHandMetadataViewModel(item.playerId, item.v6u_1.b6w(), item.v6u_1.k6w().i6w_1, item.v6u_1.s6y(), item.v6u_1.u6y()));
|
|
6396
6396
|
}
|
|
6397
6397
|
|
|
6398
6398
|
suspendResult = tmp0.z27(new PlayersHandsMetadataViewModel(destination), this);
|
|
@@ -6591,7 +6591,7 @@
|
|
|
6591
6591
|
this.s8_1 = 1;
|
|
6592
6592
|
var tmp0_safe_receiver = get_clientPayloadOrNull_0(value);
|
|
6593
6593
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o9t_1;
|
|
6594
|
-
suspendResult = tmp0.z27(tmp1_safe_receiver == null ? null : toVM(tmp1_safe_receiver, value.
|
|
6594
|
+
suspendResult = tmp0.z27(tmp1_safe_receiver == null ? null : toVM(tmp1_safe_receiver, value.w6m().players), this);
|
|
6595
6595
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6596
6596
|
return suspendResult;
|
|
6597
6597
|
}
|
|
@@ -6690,16 +6690,16 @@
|
|
|
6690
6690
|
var value = this.za3_1;
|
|
6691
6691
|
this.s8_1 = 1;
|
|
6692
6692
|
var tmp_0;
|
|
6693
|
-
if (get_isChoosePartnerScene(value.
|
|
6693
|
+
if (get_isChoosePartnerScene(value.w6m().sceneInfo.h7u_1)) {
|
|
6694
6694
|
tmp_0 = null;
|
|
6695
6695
|
} else {
|
|
6696
|
-
tmp_0 = this.ya3_1.p9w_1.
|
|
6696
|
+
tmp_0 = this.ya3_1.p9w_1.v8p(value.w6m().players, value.w6m().config);
|
|
6697
6697
|
}
|
|
6698
6698
|
|
|
6699
6699
|
var points = tmp_0;
|
|
6700
6700
|
var tmp0_safe_receiver = get_clientPayloadOrNull_0(value);
|
|
6701
6701
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p9t_1;
|
|
6702
|
-
suspendResult = tmp0.z27(tmp1_safe_receiver == null ? null : toVM_0(tmp1_safe_receiver, value.
|
|
6702
|
+
suspendResult = tmp0.z27(tmp1_safe_receiver == null ? null : toVM_0(tmp1_safe_receiver, value.w6m().config, value.w6m().players, points), this);
|
|
6703
6703
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6704
6704
|
return suspendResult;
|
|
6705
6705
|
}
|
|
@@ -8088,7 +8088,7 @@
|
|
|
8088
8088
|
if (tmp === 0) {
|
|
8089
8089
|
this.t8_1 = 1;
|
|
8090
8090
|
var tmp_0 = this.nac_1.dispatch;
|
|
8091
|
-
var tmp0_safe_receiver = this.lac_1.l9w_1.a65().
|
|
8091
|
+
var tmp0_safe_receiver = this.lac_1.l9w_1.a65().i6m_1;
|
|
8092
8092
|
tmp_0(new ClearAction(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h8u_1));
|
|
8093
8093
|
return Unit_instance;
|
|
8094
8094
|
} else if (tmp === 1) {
|
|
@@ -8755,7 +8755,7 @@
|
|
|
8755
8755
|
if (tmp === 0) {
|
|
8756
8756
|
this.t8_1 = 1;
|
|
8757
8757
|
if (get_isCreated(this.yag_1.state)) {
|
|
8758
|
-
this.yag_1.dispatch(new ExitFromClientAction(get_currentPlayer(this.yag_1.state.
|
|
8758
|
+
this.yag_1.dispatch(new ExitFromClientAction(get_currentPlayer(this.yag_1.state.w6m()).playerId, false));
|
|
8759
8759
|
}
|
|
8760
8760
|
return Unit_instance;
|
|
8761
8761
|
} else if (tmp === 1) {
|
|
@@ -8876,26 +8876,26 @@
|
|
|
8876
8876
|
this.q9w_1 = gameHistoryInteractor;
|
|
8877
8877
|
}
|
|
8878
8878
|
protoOf(BaseGameMechanic).x52 = function () {
|
|
8879
|
-
return this.l9w_1.a65().
|
|
8879
|
+
return this.l9w_1.a65().w6m().id;
|
|
8880
|
+
};
|
|
8881
|
+
protoOf(BaseGameMechanic).w6m = function () {
|
|
8882
|
+
return this.l9w_1.a65().w6m();
|
|
8880
8883
|
};
|
|
8881
8884
|
protoOf(BaseGameMechanic).x6m = function () {
|
|
8882
8885
|
return this.l9w_1.a65().x6m();
|
|
8883
8886
|
};
|
|
8884
8887
|
protoOf(BaseGameMechanic).y6m = function () {
|
|
8885
|
-
return this.l9w_1.a65().y6m();
|
|
8886
|
-
};
|
|
8887
|
-
protoOf(BaseGameMechanic).z6m = function () {
|
|
8888
8888
|
return this.l9w_1.a65().gameLifecycleState;
|
|
8889
8889
|
};
|
|
8890
8890
|
protoOf(BaseGameMechanic).onCreate = function () {
|
|
8891
|
-
this.l9w_1.
|
|
8891
|
+
this.l9w_1.v6m(BaseGameMechanic$onCreate$slambda_0(this, null));
|
|
8892
8892
|
};
|
|
8893
8893
|
protoOf(BaseGameMechanic).onDestroy = function () {
|
|
8894
|
-
this.l9w_1.
|
|
8894
|
+
this.l9w_1.v6m(BaseGameMechanic$onDestroy$slambda_0(this, null));
|
|
8895
8895
|
this.l9w_1.i2();
|
|
8896
8896
|
};
|
|
8897
8897
|
protoOf(BaseGameMechanic).getConfig = function () {
|
|
8898
|
-
return this.l9w_1.a65().
|
|
8898
|
+
return this.l9w_1.a65().w6m().config;
|
|
8899
8899
|
};
|
|
8900
8900
|
protoOf(BaseGameMechanic).getClientConfig = function () {
|
|
8901
8901
|
return get_clientPayload_0(this.l9w_1.a65()).e9t_1;
|
|
@@ -9022,28 +9022,28 @@
|
|
|
9022
9022
|
return distinctUntilChanged(tmp$ret$2);
|
|
9023
9023
|
};
|
|
9024
9024
|
protoOf(BaseGameMechanic).switchLastBribe = function (open) {
|
|
9025
|
-
this.l9w_1.
|
|
9025
|
+
this.l9w_1.v6m(BaseGameMechanic$switchLastBribe$slambda_0(open, null));
|
|
9026
9026
|
};
|
|
9027
9027
|
protoOf(BaseGameMechanic).switchGameInfo = function (open) {
|
|
9028
|
-
this.l9w_1.
|
|
9028
|
+
this.l9w_1.v6m(BaseGameMechanic$switchGameInfo$slambda_0(open, null));
|
|
9029
9029
|
};
|
|
9030
9030
|
protoOf(BaseGameMechanic).switchSettings = function (open) {
|
|
9031
|
-
this.l9w_1.
|
|
9031
|
+
this.l9w_1.v6m(BaseGameMechanic$switchSettings$slambda_0(open, null));
|
|
9032
9032
|
};
|
|
9033
9033
|
protoOf(BaseGameMechanic).switchChat = function (open) {
|
|
9034
|
-
this.l9w_1.
|
|
9034
|
+
this.l9w_1.v6m(BaseGameMechanic$switchChat$slambda_0(open, null));
|
|
9035
9035
|
};
|
|
9036
9036
|
protoOf(BaseGameMechanic).uiCreated = function (created) {
|
|
9037
|
-
this.l9w_1.
|
|
9037
|
+
this.l9w_1.v6m(BaseGameMechanic$uiCreated$slambda_0(created, null));
|
|
9038
9038
|
};
|
|
9039
9039
|
protoOf(BaseGameMechanic).uiFocused = function (focused) {
|
|
9040
|
-
this.l9w_1.
|
|
9040
|
+
this.l9w_1.v6m(BaseGameMechanic$uiFocused$slambda_0(focused, null));
|
|
9041
9041
|
};
|
|
9042
9042
|
protoOf(BaseGameMechanic).updateConfig = function (updateConfig) {
|
|
9043
|
-
this.l9w_1.
|
|
9043
|
+
this.l9w_1.v6m(BaseGameMechanic$updateConfig$slambda_0(updateConfig, null));
|
|
9044
9044
|
};
|
|
9045
9045
|
protoOf(BaseGameMechanic).clientMessage = function (message) {
|
|
9046
|
-
this.l9w_1.
|
|
9046
|
+
this.l9w_1.v6m(BaseGameMechanic$clientMessage$slambda_0(message, null));
|
|
9047
9047
|
};
|
|
9048
9048
|
protoOf(BaseGameMechanic).observeShowTutorial = function () {
|
|
9049
9049
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
@@ -9054,10 +9054,10 @@
|
|
|
9054
9054
|
return distinctUntilChanged(tmp$ret$2);
|
|
9055
9055
|
};
|
|
9056
9056
|
protoOf(BaseGameMechanic).tutorialPassed = function (skipped) {
|
|
9057
|
-
this.l9w_1.
|
|
9057
|
+
this.l9w_1.v6m(BaseGameMechanic$tutorialPassed$slambda_0(skipped, null));
|
|
9058
9058
|
};
|
|
9059
9059
|
protoOf(BaseGameMechanic).playerExit = function () {
|
|
9060
|
-
this.l9w_1.
|
|
9060
|
+
this.l9w_1.v6m(BaseGameMechanic$playerExit$slambda_0(null));
|
|
9061
9061
|
};
|
|
9062
9062
|
protoOf(BaseGameMechanic).observeRestartGameExpectant = function () {
|
|
9063
9063
|
// Inline function 'games.jass.logic.client.utils.observeNotFinishedExpectant' call
|
|
@@ -9077,7 +9077,7 @@
|
|
|
9077
9077
|
return distinctUntilChanged(tmp$ret$9);
|
|
9078
9078
|
};
|
|
9079
9079
|
protoOf(BaseGameMechanic).error = function (error) {
|
|
9080
|
-
this.l9w_1.
|
|
9080
|
+
this.l9w_1.v6m(BaseGameMechanic$error$slambda_0(error, null));
|
|
9081
9081
|
};
|
|
9082
9082
|
protoOf(BaseGameMechanic).waitingForConnection = function () {
|
|
9083
9083
|
this.error(new ErrorState(VOID, VOID, WaitingForConnectionReason_getInstance()));
|
|
@@ -9229,7 +9229,7 @@
|
|
|
9229
9229
|
return this.yah_1;
|
|
9230
9230
|
};
|
|
9231
9231
|
protoOf(OnlineGameMechanicImpl).observeFromClientAction = function () {
|
|
9232
|
-
return this.zah_1.
|
|
9232
|
+
return this.zah_1.y8j();
|
|
9233
9233
|
};
|
|
9234
9234
|
protoOf(OnlineGameMechanicImpl).mechanicActions = function (actions) {
|
|
9235
9235
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -9244,7 +9244,7 @@
|
|
|
9244
9244
|
destination.j(tmp$ret$0);
|
|
9245
9245
|
}
|
|
9246
9246
|
this.aai_1.d('OnlineGameMechanic', 'mechanicActions = ' + toString(destination) + ', state: ' + this.l9w_1.a65().gameLifecycleState.toString());
|
|
9247
|
-
this.l9w_1.
|
|
9247
|
+
this.l9w_1.v6m(OnlineGameMechanicImpl$mechanicActions$slambda_0(actions, this, null));
|
|
9248
9248
|
};
|
|
9249
9249
|
function SingleGameMechanic(currentPlayerId, persistentAppStateInteractor, statisticsInteractor, gameHistoryInteractor, gameClient, clientConfig, playersSceneContract, teamsMechanicReducer, pointsInteractor) {
|
|
9250
9250
|
BaseGameMechanic.call(this, gameClient, clientConfig, playersSceneContract, teamsMechanicReducer, pointsInteractor, gameHistoryInteractor);
|
|
@@ -10005,11 +10005,11 @@
|
|
|
10005
10005
|
var tmp0 = this.yao_1;
|
|
10006
10006
|
var tmp$ret$0 = Unit_instance;
|
|
10007
10007
|
l$ret$1: do {
|
|
10008
|
-
if (!tmp0.
|
|
10008
|
+
if (!tmp0.x6m()) {
|
|
10009
10009
|
tmp$ret$0 = null;
|
|
10010
10010
|
break l$ret$1;
|
|
10011
10011
|
}
|
|
10012
|
-
var table = tmp0.
|
|
10012
|
+
var table = tmp0.w6m();
|
|
10013
10013
|
var this_0 = table.players;
|
|
10014
10014
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
10015
10015
|
var _iterator__ex2g4s = this_0.l();
|
|
@@ -10149,11 +10149,11 @@
|
|
|
10149
10149
|
var tmp0 = this.caq_1;
|
|
10150
10150
|
var tmp$ret$0 = Unit_instance;
|
|
10151
10151
|
l$ret$1: do {
|
|
10152
|
-
if (!tmp0.
|
|
10152
|
+
if (!tmp0.x6m()) {
|
|
10153
10153
|
tmp$ret$0 = null;
|
|
10154
10154
|
break l$ret$1;
|
|
10155
10155
|
}
|
|
10156
|
-
var table = tmp0.
|
|
10156
|
+
var table = tmp0.w6m();
|
|
10157
10157
|
var player = getPlayer(table.players, this.xap_1);
|
|
10158
10158
|
tmp$ret$0 = toStateVM(player, this.yap_1.bap_1.showPlayerConnectionState, table.isGameFinished, get_isCreated(tmp0));
|
|
10159
10159
|
}
|
|
@@ -10281,11 +10281,11 @@
|
|
|
10281
10281
|
this.s8_1 = 1;
|
|
10282
10282
|
var tmp$ret$0 = Unit_instance;
|
|
10283
10283
|
l$ret$1: do {
|
|
10284
|
-
if (!value.
|
|
10284
|
+
if (!value.x6m()) {
|
|
10285
10285
|
tmp$ret$0 = null;
|
|
10286
10286
|
break l$ret$1;
|
|
10287
10287
|
}
|
|
10288
|
-
var player = getPlayer(value.
|
|
10288
|
+
var player = getPlayer(value.w6m().players, this.aar_1);
|
|
10289
10289
|
var tmp0_safe_receiver = findMessageForPlayer(this.bar_1, player.playerId, get_clientPayload_0(value).f9t_1);
|
|
10290
10290
|
var tmp_0;
|
|
10291
10291
|
if (tmp0_safe_receiver == null) {
|
|
@@ -10401,7 +10401,7 @@
|
|
|
10401
10401
|
this.bas_1 = this.eas_1;
|
|
10402
10402
|
var table = this.das_1;
|
|
10403
10403
|
var player = getPlayer(table.players, this.zar_1);
|
|
10404
|
-
var tmp0_safe_receiver = player.
|
|
10404
|
+
var tmp0_safe_receiver = player.s6u_1.o65_1;
|
|
10405
10405
|
var tmp0_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u65_1;
|
|
10406
10406
|
if (tmp0_elvis_lhs == null) {
|
|
10407
10407
|
this.s8_1 = 4;
|
|
@@ -10535,7 +10535,7 @@
|
|
|
10535
10535
|
var _iterator__ex2g4s_0 = destination.l();
|
|
10536
10536
|
while (_iterator__ex2g4s_0.m()) {
|
|
10537
10537
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
10538
|
-
if (element_0.
|
|
10538
|
+
if (element_0.w6q()) {
|
|
10539
10539
|
destination_0.j(element_0);
|
|
10540
10540
|
}
|
|
10541
10541
|
}
|
|
@@ -10554,7 +10554,7 @@
|
|
|
10554
10554
|
var iterator = destination_1.s(destination_1.o());
|
|
10555
10555
|
while (iterator.k4()) {
|
|
10556
10556
|
var element_1 = iterator.m4();
|
|
10557
|
-
if (element_1.
|
|
10557
|
+
if (element_1.b6s().q64_1 === playerId) {
|
|
10558
10558
|
tmp$ret$10 = element_1;
|
|
10559
10559
|
break $l$block;
|
|
10560
10560
|
}
|
|
@@ -10813,7 +10813,7 @@
|
|
|
10813
10813
|
return this.aap_1;
|
|
10814
10814
|
};
|
|
10815
10815
|
protoOf(PlayersSceneContractImpl).kah = function () {
|
|
10816
|
-
return getPlayersVM(this, this.aap_1.a65().
|
|
10816
|
+
return getPlayersVM(this, this.aap_1.a65().w6m());
|
|
10817
10817
|
};
|
|
10818
10818
|
protoOf(PlayersSceneContractImpl).lah = function () {
|
|
10819
10819
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
@@ -12575,11 +12575,11 @@
|
|
|
12575
12575
|
protoOf(clientCheckCombinationsMiddleware$$inlined$middlewareForActionType$1).j6f = function (store, next, action) {
|
|
12576
12576
|
var action_0 = action instanceof PutCardAndCheckCombinationsAction ? action : THROW_CCE();
|
|
12577
12577
|
next(action_0);
|
|
12578
|
-
var table = store.state.
|
|
12578
|
+
var table = store.state.w6m();
|
|
12579
12579
|
var player = get_currentPlayer(table);
|
|
12580
|
-
var playerCombinations = player.
|
|
12580
|
+
var playerCombinations = player.w6u_1.m6w_1;
|
|
12581
12581
|
// Inline function 'kotlin.collections.map' call
|
|
12582
|
-
var this_0 = this.paw_1.
|
|
12582
|
+
var this_0 = this.paw_1.c8l(playerCombinations);
|
|
12583
12583
|
// Inline function 'kotlin.collections.mapTo' call
|
|
12584
12584
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
12585
12585
|
var _iterator__ex2g4s = this_0.l();
|
|
@@ -12687,7 +12687,7 @@
|
|
|
12687
12687
|
if (tmp_0) {
|
|
12688
12688
|
tmp = new CombinationToAnnounceAction(findFirstRoundCombinations, acceptedCombinations, declinedCombinations);
|
|
12689
12689
|
} else {
|
|
12690
|
-
var tmp0_safe_receiver = this.paw_1.
|
|
12690
|
+
var tmp0_safe_receiver = this.paw_1.d8l(action_0.aau_1.l6a_1, playerCombinations, table.config.rules.oneTryToProtectBella);
|
|
12691
12691
|
var findBellaCombination = tmp0_safe_receiver == null ? null : mapFromDetailed(tmp0_safe_receiver);
|
|
12692
12692
|
var tmp_6;
|
|
12693
12693
|
var tmp_7;
|
|
@@ -12764,7 +12764,7 @@
|
|
|
12764
12764
|
var tmp5_card = action_0.aau_1.l6a_1;
|
|
12765
12765
|
var tmp1_cardNumber = table.cardsOnTable.o();
|
|
12766
12766
|
var tmp2_round = table.gameInfo.round;
|
|
12767
|
-
var tmp6_tag = this.qaw_1.
|
|
12767
|
+
var tmp6_tag = this.qaw_1.l8l(tmp2_round, VOID, tmp1_cardNumber);
|
|
12768
12768
|
tmp_6 = new CardFromClientAction(tmp3_playerId, false, tmp6_tag, tmp5_card, tmp4_combinations);
|
|
12769
12769
|
}
|
|
12770
12770
|
tmp = tmp_6;
|
|
@@ -12815,11 +12815,11 @@
|
|
|
12815
12815
|
if (!(card == null)) {
|
|
12816
12816
|
store.dispatch(new PutCardAndCheckCombinationsAction(card, acceptedCombinations, declinedCombinations));
|
|
12817
12817
|
} else {
|
|
12818
|
-
var table = store.state.
|
|
12818
|
+
var table = store.state.w6m();
|
|
12819
12819
|
var tmp = store.dispatch;
|
|
12820
12820
|
var tmp0_playerId = get_currentPlayer(table).playerId;
|
|
12821
12821
|
var tmp1_isAccepted = action_0.vaw_1;
|
|
12822
|
-
var tmp2_tag = this.raw_1.
|
|
12822
|
+
var tmp2_tag = this.raw_1.j8l(table.sceneInfo, table.gameInfo.round);
|
|
12823
12823
|
tmp(new CombinationChoiceFromClientAction(tmp0_playerId, false, tmp2_tag, tmp1_isAccepted));
|
|
12824
12824
|
}
|
|
12825
12825
|
};
|
|
@@ -12838,7 +12838,7 @@
|
|
|
12838
12838
|
};
|
|
12839
12839
|
protoOf(finishingGameWhenPlayerExitsMiddleware$$inlined$middlewareForActionType$1).j6f = function (store, next, action) {
|
|
12840
12840
|
var action_0 = action instanceof ExitFromClientAction ? action : THROW_CCE();
|
|
12841
|
-
var table = store.state.
|
|
12841
|
+
var table = store.state.tableOrNull;
|
|
12842
12842
|
var tmp = store.dispatch;
|
|
12843
12843
|
var tmp_0;
|
|
12844
12844
|
if (this.waw_1.sessionAnalytics) {
|
|
@@ -12926,8 +12926,8 @@
|
|
|
12926
12926
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
12927
12927
|
next(action_0);
|
|
12928
12928
|
if (action_0 instanceof SceneActMechanicAction)
|
|
12929
|
-
if (action_0.
|
|
12930
|
-
var tmp0 = action_0.
|
|
12929
|
+
if (action_0.t8q_1 === 'WAITING_ACT') {
|
|
12930
|
+
var tmp0 = action_0.u8q_1;
|
|
12931
12931
|
var tmp$ret$0;
|
|
12932
12932
|
$l$block: {
|
|
12933
12933
|
// Inline function 'games.jass.logic.data.models.scenes.requireActData' call
|
|
@@ -12938,14 +12938,14 @@
|
|
|
12938
12938
|
throw new MechanicException('Required ' + getKClass(WaitingActData).ea() + ', current act is ' + toString_0(tmp0));
|
|
12939
12939
|
}
|
|
12940
12940
|
var waitingActData = tmp$ret$0;
|
|
12941
|
-
var requestPayload = waitingActData.
|
|
12941
|
+
var requestPayload = waitingActData.v79_1;
|
|
12942
12942
|
if (!(requestPayload == null)) {
|
|
12943
12943
|
if (requestPayload instanceof CardDeckRequest) {
|
|
12944
|
-
if (this.yaw_1 === waitingActData.
|
|
12944
|
+
if (this.yaw_1 === waitingActData.s79()) {
|
|
12945
12945
|
var tmp = store.dispatch;
|
|
12946
12946
|
// Inline function 'kotlin.collections.List' call
|
|
12947
12947
|
// Inline function 'kotlin.collections.MutableList' call
|
|
12948
|
-
var size = requestPayload.
|
|
12948
|
+
var size = requestPayload.t79_1;
|
|
12949
12949
|
var list = ArrayList_init_$Create$(size);
|
|
12950
12950
|
// Inline function 'kotlin.repeat' call
|
|
12951
12951
|
var inductionVariable = 0;
|
|
@@ -12962,7 +12962,7 @@
|
|
|
12962
12962
|
var _iterator__ex2g4s = list.l();
|
|
12963
12963
|
while (_iterator__ex2g4s.m()) {
|
|
12964
12964
|
var item = _iterator__ex2g4s.n();
|
|
12965
|
-
var tmp$ret$6 = this.zaw_1.
|
|
12965
|
+
var tmp$ret$6 = this.zaw_1.e8l();
|
|
12966
12966
|
destination.j(tmp$ret$6);
|
|
12967
12967
|
}
|
|
12968
12968
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -12971,10 +12971,10 @@
|
|
|
12971
12971
|
var _iterator__ex2g4s_0 = destination.l();
|
|
12972
12972
|
while (_iterator__ex2g4s_0.m()) {
|
|
12973
12973
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
12974
|
-
var tmp$ret$9 = Companion_instance_1.
|
|
12974
|
+
var tmp$ret$9 = Companion_instance_1.g7n(item_0);
|
|
12975
12975
|
destination_0.j(tmp$ret$9);
|
|
12976
12976
|
}
|
|
12977
|
-
var tmp3_tag = this.aax_1.
|
|
12977
|
+
var tmp3_tag = this.aax_1.g8l(action_0.s8q_1, store.state.w6m().gameInfo.round);
|
|
12978
12978
|
tmp(new RequestedCardDecksFromClientAction(destination_0, this.yaw_1, false, tmp3_tag));
|
|
12979
12979
|
}
|
|
12980
12980
|
} else {
|
|
@@ -13027,7 +13027,7 @@
|
|
|
13027
13027
|
var expectantAction = action_0.hau_1.c9s_1;
|
|
13028
13028
|
var tmp_0;
|
|
13029
13029
|
if (expectantAction.k6d()) {
|
|
13030
|
-
tmp_0 = listOf_0(new StartTimerAction(new ExpectantTimerTag(action_0.hau_1.b9s_1), fromInt(store.state.
|
|
13030
|
+
tmp_0 = listOf_0(new StartTimerAction(new ExpectantTimerTag(action_0.hau_1.b9s_1), fromInt(store.state.w6m().config.options.timeForCountdownMillis), VOID, TimerType_DELAY_getInstance()));
|
|
13031
13031
|
} else {
|
|
13032
13032
|
tmp_0 = emptyList();
|
|
13033
13033
|
}
|
|
@@ -13079,8 +13079,8 @@
|
|
|
13079
13079
|
var nextTurnPlayerId = singleOrNull(action.v8w());
|
|
13080
13080
|
if (!(nextTurnPlayerId == null) && currentPlayerId === nextTurnPlayerId) {
|
|
13081
13081
|
var nextTurnPlayer = getPlayer(table.players, nextTurnPlayerId);
|
|
13082
|
-
if (lastCardInteractor.
|
|
13083
|
-
var gameCard = single(nextTurnPlayer.
|
|
13082
|
+
if (lastCardInteractor.v8k(nextTurnPlayer)) {
|
|
13083
|
+
var gameCard = single(nextTurnPlayer.t6u_1);
|
|
13084
13084
|
return new PutCardAndCheckCombinationsAction(new ProcessingCard(gameCard));
|
|
13085
13085
|
}
|
|
13086
13086
|
}
|
|
@@ -13096,7 +13096,7 @@
|
|
|
13096
13096
|
protoOf(clientPutCurrentPlayerLastCardMiddleware$$inlined$middlewareForActionType$1).j6f = function (store, next, action) {
|
|
13097
13097
|
var action_0 = isInterface(action, CardsMechanicAction) ? action : THROW_CCE();
|
|
13098
13098
|
next(action_0);
|
|
13099
|
-
var table = store.state.
|
|
13099
|
+
var table = store.state.w6m();
|
|
13100
13100
|
var newAction = getCardActionIfNeeded(action_0, this.cax_1, table, this.dax_1);
|
|
13101
13101
|
if (newAction == null)
|
|
13102
13102
|
null;
|
|
@@ -13110,13 +13110,13 @@
|
|
|
13110
13110
|
};
|
|
13111
13111
|
function onSuitSelectMessages($this, store, playerId, selectedSuit) {
|
|
13112
13112
|
// Inline function 'kotlin.with' call
|
|
13113
|
-
var $this$with = store.state.
|
|
13113
|
+
var $this$with = store.state.w6m();
|
|
13114
13114
|
var player = getPlayer($this$with.players, playerId);
|
|
13115
|
-
store.dispatch(new MessageMechanicAction($this.tav_1.
|
|
13115
|
+
store.dispatch(new MessageMechanicAction($this.tav_1.d8k(player.u6u_1.o6z(), selectedSuit, player.r6u_1)));
|
|
13116
13116
|
}
|
|
13117
13117
|
function onCardMessages($this, store, playerId, combinations) {
|
|
13118
13118
|
// Inline function 'kotlin.with' call
|
|
13119
|
-
var $this$with = store.state.
|
|
13119
|
+
var $this$with = store.state.w6m();
|
|
13120
13120
|
var tmp;
|
|
13121
13121
|
if (combinations == null) {
|
|
13122
13122
|
tmp = null;
|
|
@@ -13130,17 +13130,17 @@
|
|
|
13130
13130
|
var _iterator__ex2g4s = combinations.l();
|
|
13131
13131
|
while (_iterator__ex2g4s.m()) {
|
|
13132
13132
|
var item = _iterator__ex2g4s.n();
|
|
13133
|
-
var tmp$ret$0 = item.
|
|
13133
|
+
var tmp$ret$0 = item.a7a_1;
|
|
13134
13134
|
destination.j(tmp$ret$0);
|
|
13135
13135
|
}
|
|
13136
|
-
tmp_0(new MessageMechanicAction($this.tav_1.
|
|
13136
|
+
tmp_0(new MessageMechanicAction($this.tav_1.b8k(destination, player.r6u_1)));
|
|
13137
13137
|
tmp = Unit_instance;
|
|
13138
13138
|
}
|
|
13139
13139
|
}
|
|
13140
13140
|
function onCombinationChoiceMessages($this, store, playerId, isAnnounced) {
|
|
13141
13141
|
var state = store.state;
|
|
13142
13142
|
if (isAnnounced) {
|
|
13143
|
-
var tmp0 = state.
|
|
13143
|
+
var tmp0 = state.w6m().sceneInfo.l7u_1;
|
|
13144
13144
|
var tmp$ret$0;
|
|
13145
13145
|
$l$block: {
|
|
13146
13146
|
// Inline function 'games.jass.logic.data.models.scenes.requireActData' call
|
|
@@ -13151,35 +13151,35 @@
|
|
|
13151
13151
|
throw new MechanicException('Required ' + getKClass(CombinationActData).ea() + ', current act is ' + toString_0(tmp0));
|
|
13152
13152
|
}
|
|
13153
13153
|
var combinationActData = tmp$ret$0;
|
|
13154
|
-
var player = getPlayer(state.
|
|
13154
|
+
var player = getPlayer(state.w6m().players, playerId);
|
|
13155
13155
|
var tmp = store.dispatch;
|
|
13156
13156
|
// Inline function 'kotlin.collections.map' call
|
|
13157
|
-
var this_0 = combinationActData.
|
|
13157
|
+
var this_0 = combinationActData.x79_1;
|
|
13158
13158
|
// Inline function 'kotlin.collections.mapTo' call
|
|
13159
13159
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
13160
13160
|
var _iterator__ex2g4s = this_0.l();
|
|
13161
13161
|
while (_iterator__ex2g4s.m()) {
|
|
13162
13162
|
var item = _iterator__ex2g4s.n();
|
|
13163
|
-
var tmp$ret$1 = item.
|
|
13163
|
+
var tmp$ret$1 = item.a7a_1;
|
|
13164
13164
|
destination.j(tmp$ret$1);
|
|
13165
13165
|
}
|
|
13166
|
-
tmp(new MessageMechanicAction($this.tav_1.
|
|
13166
|
+
tmp(new MessageMechanicAction($this.tav_1.b8k(destination, player.r6u_1)));
|
|
13167
13167
|
}
|
|
13168
13168
|
}
|
|
13169
13169
|
function onWinnerCombinationMessages($this, store, winnerCombinations) {
|
|
13170
13170
|
// Inline function 'kotlin.with' call
|
|
13171
|
-
var $this$with = store.state.
|
|
13172
|
-
var message = $this.tav_1.
|
|
13171
|
+
var $this$with = store.state.w6m();
|
|
13172
|
+
var message = $this.tav_1.c8k(winnerCombinations, $this$with.players);
|
|
13173
13173
|
store.dispatch(new MessageMechanicAction(message));
|
|
13174
13174
|
}
|
|
13175
13175
|
function onSceneMessages($this, store, action) {
|
|
13176
13176
|
var state = store.state;
|
|
13177
|
-
var table = state.
|
|
13178
|
-
var tmp0_subject = action.
|
|
13177
|
+
var table = state.w6m();
|
|
13178
|
+
var tmp0_subject = action.a8r_1;
|
|
13179
13179
|
if (tmp0_subject === 'TRADE') {
|
|
13180
13180
|
var tmp;
|
|
13181
13181
|
if (table.config.playersMode.isTeamGame) {
|
|
13182
|
-
var tmp0 = $this.vav_1.
|
|
13182
|
+
var tmp0 = $this.vav_1.q8j(table.players);
|
|
13183
13183
|
var tmp$ret$0;
|
|
13184
13184
|
$l$block_0: {
|
|
13185
13185
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -13202,7 +13202,7 @@
|
|
|
13202
13202
|
while (_iterator__ex2g4s_0.m()) {
|
|
13203
13203
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
13204
13204
|
var tmp_1 = sum;
|
|
13205
|
-
sum = tmp_1 + element_0.
|
|
13205
|
+
sum = tmp_1 + element_0.w6u_1.l6w_1 | 0;
|
|
13206
13206
|
}
|
|
13207
13207
|
if (sum >= table.config.pointsMode.value) {
|
|
13208
13208
|
tmp$ret$0 = true;
|
|
@@ -13230,7 +13230,7 @@
|
|
|
13230
13230
|
var _iterator__ex2g4s_1 = tmp0_0.l();
|
|
13231
13231
|
while (_iterator__ex2g4s_1.m()) {
|
|
13232
13232
|
var element_1 = _iterator__ex2g4s_1.n();
|
|
13233
|
-
if (element_1.
|
|
13233
|
+
if (element_1.w6u_1.l6w_1 >= table.config.pointsMode.value) {
|
|
13234
13234
|
tmp$ret$4 = true;
|
|
13235
13235
|
break $l$block_2;
|
|
13236
13236
|
}
|
|
@@ -13241,7 +13241,7 @@
|
|
|
13241
13241
|
}
|
|
13242
13242
|
var hasWinners = tmp;
|
|
13243
13243
|
if (hasWinners) {
|
|
13244
|
-
store.dispatch(new MessageMechanicAction($this.tav_1.
|
|
13244
|
+
store.dispatch(new MessageMechanicAction($this.tav_1.g8k('ONE_MORE_ROUND_NEEDED_ID')));
|
|
13245
13245
|
}
|
|
13246
13246
|
var tmp0_1 = action.sceneData;
|
|
13247
13247
|
var tmp$ret$6;
|
|
@@ -13254,10 +13254,10 @@
|
|
|
13254
13254
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).ea() + ', current scene is ' + toString_0(tmp0_1));
|
|
13255
13255
|
}
|
|
13256
13256
|
var scene = tmp$ret$6;
|
|
13257
|
-
store.dispatch(new MessageMechanicAction($this.tav_1.
|
|
13258
|
-
var randomData = scene.
|
|
13257
|
+
store.dispatch(new MessageMechanicAction($this.tav_1.a8k(getPlayer(table.players, scene.j7b_1).r6u_1, scene.h7b_1)));
|
|
13258
|
+
var randomData = scene.g7b_1;
|
|
13259
13259
|
if (!(randomData == null)) {
|
|
13260
|
-
store.dispatch(new MessageMechanicAction($this.tav_1.
|
|
13260
|
+
store.dispatch(new MessageMechanicAction($this.tav_1.k8k(randomData)));
|
|
13261
13261
|
}
|
|
13262
13262
|
} else if (tmp0_subject === 'CALC_POINTS') {
|
|
13263
13263
|
var tmp0_2 = action.sceneData;
|
|
@@ -13275,32 +13275,32 @@
|
|
|
13275
13275
|
var whoChoseSuitPlayerId = getWhoChoseSuit(table_0.players).playerId;
|
|
13276
13276
|
var tmp_3 = store.dispatch;
|
|
13277
13277
|
// Inline function 'kotlin.collections.map' call
|
|
13278
|
-
var this_0 = $this.uav_1.
|
|
13278
|
+
var this_0 = $this.uav_1.u8p(scene_0.z7a_1);
|
|
13279
13279
|
// Inline function 'kotlin.collections.mapTo' call
|
|
13280
13280
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
13281
13281
|
var _iterator__ex2g4s_2 = this_0.l();
|
|
13282
13282
|
while (_iterator__ex2g4s_2.m()) {
|
|
13283
13283
|
var item = _iterator__ex2g4s_2.n();
|
|
13284
|
-
var tmp0_points = item.
|
|
13284
|
+
var tmp0_points = item.s7p_1;
|
|
13285
13285
|
// Inline function 'kotlin.collections.map' call
|
|
13286
|
-
var this_1 = item.
|
|
13286
|
+
var this_1 = item.r7p_1;
|
|
13287
13287
|
// Inline function 'kotlin.collections.mapTo' call
|
|
13288
13288
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
13289
13289
|
var _iterator__ex2g4s_3 = this_1.l();
|
|
13290
13290
|
while (_iterator__ex2g4s_3.m()) {
|
|
13291
13291
|
var item_0 = _iterator__ex2g4s_3.n();
|
|
13292
|
-
var tmp$ret$8 = getPlayer(table_0.players, item_0).
|
|
13292
|
+
var tmp$ret$8 = getPlayer(table_0.players, item_0).r6u_1;
|
|
13293
13293
|
destination_0.j(tmp$ret$8);
|
|
13294
13294
|
}
|
|
13295
13295
|
var tmp$ret$11 = new PointItemViewModel(destination_0, tmp0_points);
|
|
13296
13296
|
destination.j(tmp$ret$11);
|
|
13297
13297
|
}
|
|
13298
|
-
tmp_3(new MessageMechanicAction($this.tav_1.
|
|
13298
|
+
tmp_3(new MessageMechanicAction($this.tav_1.e8k(table_0.gameInfo.round, destination, scene_0.d7b(whoChoseSuitPlayerId), scene_0.c7b(whoChoseSuitPlayerId), scene_0.w7a_1)));
|
|
13299
13299
|
}
|
|
13300
13300
|
}
|
|
13301
13301
|
function onExpectantCreatedMessages($this, store, action, excludePlayersIds) {
|
|
13302
13302
|
// Inline function 'kotlin.with' call
|
|
13303
|
-
var $this$with = store.state.
|
|
13303
|
+
var $this$with = store.state.w6m();
|
|
13304
13304
|
var expectantAction = action.hau_1.c9s_1;
|
|
13305
13305
|
if (expectantAction instanceof CombinationChoiceMechanicAction) {
|
|
13306
13306
|
if (excludePlayersIds.u1(expectantAction.playerId)) {
|
|
@@ -13309,12 +13309,12 @@
|
|
|
13309
13309
|
onCombinationChoiceMessages($this, store, expectantAction.playerId, expectantAction.s8x_1);
|
|
13310
13310
|
} else {
|
|
13311
13311
|
if (expectantAction instanceof RestartGameMechanicAction) {
|
|
13312
|
-
var message = $this.tav_1.
|
|
13312
|
+
var message = $this.tav_1.g8k('GAME_RESTART_EVENT_ID');
|
|
13313
13313
|
store.dispatch(new MessageMechanicAction(message));
|
|
13314
13314
|
store.dispatch(new InfoMessageAction(message));
|
|
13315
13315
|
} else {
|
|
13316
13316
|
if (expectantAction instanceof WinnerCombinationsMechanicAction) {
|
|
13317
|
-
var message_0 = $this.tav_1.
|
|
13317
|
+
var message_0 = $this.tav_1.c8k(expectantAction.w8x_1, $this$with.players);
|
|
13318
13318
|
store.dispatch(new InfoMessageAction(message_0));
|
|
13319
13319
|
}
|
|
13320
13320
|
}
|
|
@@ -13332,7 +13332,7 @@
|
|
|
13332
13332
|
tmp = Unit_instance;
|
|
13333
13333
|
} else {
|
|
13334
13334
|
if (action instanceof SuitChoiceMechanicAction) {
|
|
13335
|
-
onSuitSelectMessages(this$0, store, action.
|
|
13335
|
+
onSuitSelectMessages(this$0, store, action.g8r_1, action.e8r_1);
|
|
13336
13336
|
tmp = Unit_instance;
|
|
13337
13337
|
} else {
|
|
13338
13338
|
if (action instanceof InterceptorCreatedClientAction) {
|
|
@@ -13340,7 +13340,7 @@
|
|
|
13340
13340
|
tmp = Unit_instance;
|
|
13341
13341
|
} else {
|
|
13342
13342
|
if (action instanceof PutCardMechanicAction) {
|
|
13343
|
-
onCardMessages(this$0, store, action.
|
|
13343
|
+
onCardMessages(this$0, store, action.l8r_1, action.k8r_1);
|
|
13344
13344
|
tmp = Unit_instance;
|
|
13345
13345
|
} else {
|
|
13346
13346
|
if (action instanceof WinnerCombinationsMechanicAction) {
|
|
@@ -13367,7 +13367,7 @@
|
|
|
13367
13367
|
if (action instanceof SuitChoiceMechanicAction) {
|
|
13368
13368
|
var tmp_0;
|
|
13369
13369
|
if (!(action.playerId === $currentPlayerId)) {
|
|
13370
|
-
onSuitSelectMessages(this$0, store, action.playerId, action.
|
|
13370
|
+
onSuitSelectMessages(this$0, store, action.playerId, action.e8r_1);
|
|
13371
13371
|
tmp_0 = Unit_instance;
|
|
13372
13372
|
}
|
|
13373
13373
|
tmp = tmp_0;
|
|
@@ -13375,7 +13375,7 @@
|
|
|
13375
13375
|
if (action instanceof PutCardMechanicAction) {
|
|
13376
13376
|
var tmp_1;
|
|
13377
13377
|
if (!(action.playerId === $currentPlayerId)) {
|
|
13378
|
-
onCardMessages(this$0, store, action.playerId, action.
|
|
13378
|
+
onCardMessages(this$0, store, action.playerId, action.k8r_1);
|
|
13379
13379
|
tmp_1 = Unit_instance;
|
|
13380
13380
|
}
|
|
13381
13381
|
tmp = tmp_1;
|
|
@@ -13390,24 +13390,24 @@
|
|
|
13390
13390
|
} else {
|
|
13391
13391
|
if (action instanceof SuitChoiceFromClientAction) {
|
|
13392
13392
|
var tmp_2;
|
|
13393
|
-
if (action.
|
|
13394
|
-
onSuitSelectMessages(this$0, store, action.
|
|
13393
|
+
if (action.h7m_1 === $currentPlayerId) {
|
|
13394
|
+
onSuitSelectMessages(this$0, store, action.h7m_1, action.k7m_1);
|
|
13395
13395
|
tmp_2 = Unit_instance;
|
|
13396
13396
|
}
|
|
13397
13397
|
tmp = tmp_2;
|
|
13398
13398
|
} else {
|
|
13399
13399
|
if (action instanceof CardFromClientAction) {
|
|
13400
13400
|
var tmp_3;
|
|
13401
|
-
if (action.
|
|
13402
|
-
onCardMessages(this$0, store, action.
|
|
13401
|
+
if (action.p7m_1 === $currentPlayerId) {
|
|
13402
|
+
onCardMessages(this$0, store, action.p7m_1, action.t7m_1);
|
|
13403
13403
|
tmp_3 = Unit_instance;
|
|
13404
13404
|
}
|
|
13405
13405
|
tmp = tmp_3;
|
|
13406
13406
|
} else {
|
|
13407
13407
|
if (action instanceof CombinationChoiceFromClientAction) {
|
|
13408
13408
|
var tmp_4;
|
|
13409
|
-
if (action.
|
|
13410
|
-
onCombinationChoiceMessages(this$0, store, action.
|
|
13409
|
+
if (action.l7m_1 === $currentPlayerId) {
|
|
13410
|
+
onCombinationChoiceMessages(this$0, store, action.l7m_1, action.o7m_1);
|
|
13411
13411
|
tmp_4 = Unit_instance;
|
|
13412
13412
|
}
|
|
13413
13413
|
tmp = tmp_4;
|
|
@@ -13513,33 +13513,33 @@
|
|
|
13513
13513
|
protoOf(clientConsumeFromClientActionsMiddleware$$inlined$middlewareForActionType$1).j6f = function (store, next, action) {
|
|
13514
13514
|
var tmp4 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
13515
13515
|
$l$block: {
|
|
13516
|
-
var tmp0_safe_receiver = store.state.
|
|
13516
|
+
var tmp0_safe_receiver = store.state.tableOrNull;
|
|
13517
13517
|
var version = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.version;
|
|
13518
13518
|
if (version == null || Toggles_instance.e63(version)) {
|
|
13519
13519
|
next(tmp4);
|
|
13520
13520
|
break $l$block;
|
|
13521
13521
|
}
|
|
13522
|
-
var table = store.state.
|
|
13522
|
+
var table = store.state.w6m();
|
|
13523
13523
|
next(tmp4);
|
|
13524
13524
|
var tmp;
|
|
13525
13525
|
if (tmp4 instanceof MessageFromClientAction) {
|
|
13526
|
-
tmp = this.fax_1.
|
|
13526
|
+
tmp = this.fax_1.w8o(tmp4, table.players);
|
|
13527
13527
|
} else {
|
|
13528
13528
|
if (tmp4 instanceof PartnerSelectedFromClientAction) {
|
|
13529
|
-
tmp = this.fax_1.
|
|
13529
|
+
tmp = this.fax_1.x8o(tmp4, table.players);
|
|
13530
13530
|
} else {
|
|
13531
13531
|
if (tmp4 instanceof PlayerReadyFromClientAction) {
|
|
13532
|
-
tmp = this.fax_1.
|
|
13532
|
+
tmp = this.fax_1.y8o(tmp4);
|
|
13533
13533
|
} else {
|
|
13534
13534
|
if (tmp4 instanceof SuitChoiceFromClientAction) {
|
|
13535
|
-
tmp = this.fax_1.
|
|
13535
|
+
tmp = this.fax_1.z8o(tmp4, table.players, table.config);
|
|
13536
13536
|
} else {
|
|
13537
13537
|
if (tmp4 instanceof CombinationChoiceFromClientAction) {
|
|
13538
|
-
tmp = this.fax_1.
|
|
13538
|
+
tmp = this.fax_1.a8p(tmp4, table);
|
|
13539
13539
|
} else {
|
|
13540
13540
|
if (tmp4 instanceof CardFromClientAction) {
|
|
13541
|
-
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(tmp4.
|
|
13542
|
-
var cardMechanicAction = this.fax_1.
|
|
13541
|
+
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(tmp4.p7m_1, table.cardsOnTable.o(), tmp4.s7m_1));
|
|
13542
|
+
var cardMechanicAction = this.fax_1.b8p(tmp4, newCardsOnTheTable, table.players, table.config);
|
|
13543
13543
|
tmp = cardMechanicAction;
|
|
13544
13544
|
} else {
|
|
13545
13545
|
tmp = null;
|
|
@@ -13573,7 +13573,7 @@
|
|
|
13573
13573
|
protoOf(sceneActivationReducer$$inlined$reducerForActionType$1).x99 = function (state, action) {
|
|
13574
13574
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
13575
13575
|
var clientPayload = get_clientPayload_0(state);
|
|
13576
|
-
var tmp0_subject = action_0.
|
|
13576
|
+
var tmp0_subject = action_0.a8r_1;
|
|
13577
13577
|
return tmp0_subject === 'CHOOSE_PARTNER' || tmp0_subject === 'TRADE' || (tmp0_subject === 'EARN_POINTS' || tmp0_subject === 'CALC_POINTS') ? state.f8u(VOID, clientPayload.gax(VOID, VOID, VOID, VOID, VOID, VOID, false)) : state;
|
|
13578
13578
|
};
|
|
13579
13579
|
protoOf(sceneActivationReducer$$inlined$reducerForActionType$1).k6f = function (state, action) {
|
|
@@ -13607,15 +13607,15 @@
|
|
|
13607
13607
|
case 0:
|
|
13608
13608
|
this.t8_1 = 2;
|
|
13609
13609
|
var state = this.pax_1.state;
|
|
13610
|
-
if (!state.
|
|
13610
|
+
if (!state.x6m() || state.w6m().isGameFinished) {
|
|
13611
13611
|
var tmp_0 = this;
|
|
13612
|
-
this.pax_1.dispatch(new FinishGameMechanicAction(new PlayerExitReason(this.qax_1.n8u_1), state.
|
|
13612
|
+
this.pax_1.dispatch(new FinishGameMechanicAction(new PlayerExitReason(this.qax_1.n8u_1), state.w6m().isGameFinished));
|
|
13613
13613
|
tmp_0.tax_1 = Unit_instance;
|
|
13614
13614
|
this.s8_1 = 3;
|
|
13615
13615
|
continue $sm;
|
|
13616
13616
|
} else {
|
|
13617
13617
|
this.s8_1 = 1;
|
|
13618
|
-
suspendResult = this.rax_1.e9u(state.
|
|
13618
|
+
suspendResult = this.rax_1.e9u(state.w6m(), get_clientPayload_0(state), true, this);
|
|
13619
13619
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
13620
13620
|
return suspendResult;
|
|
13621
13621
|
}
|
|
@@ -13706,7 +13706,7 @@
|
|
|
13706
13706
|
this.t8_1 = 4;
|
|
13707
13707
|
var tmp0_subject = this.fay_1;
|
|
13708
13708
|
if (tmp0_subject instanceof RoundStartedAction) {
|
|
13709
|
-
var table = this.gay_1.state.
|
|
13709
|
+
var table = this.gay_1.state.w6m();
|
|
13710
13710
|
this.s8_1 = 2;
|
|
13711
13711
|
suspendResult = this.hay_1.b9u(this.fay_1.gameHistory, table.config, table.users, get_clientPayload_0(this.gay_1.state).e9t_1.a9r_1, this);
|
|
13712
13712
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -13715,7 +13715,7 @@
|
|
|
13715
13715
|
continue $sm;
|
|
13716
13716
|
} else {
|
|
13717
13717
|
if (tmp0_subject instanceof RoundEndedAction) {
|
|
13718
|
-
var table_0 = this.gay_1.state.
|
|
13718
|
+
var table_0 = this.gay_1.state.w6m();
|
|
13719
13719
|
this.s8_1 = 1;
|
|
13720
13720
|
suspendResult = this.hay_1.a9u(this.fay_1.gameHistory, table_0.config, table_0.users, get_clientPayload_0(this.gay_1.state).e9t_1.a9r_1, this);
|
|
13721
13721
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -13810,7 +13810,7 @@
|
|
|
13810
13810
|
var _iterator__ex2g4s_0 = destination.l();
|
|
13811
13811
|
while (_iterator__ex2g4s_0.m()) {
|
|
13812
13812
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
13813
|
-
store.dispatch(new StartTimerAction(PlayerTurnTimerTag_init_$Create$(element_0.playerId, element_0.
|
|
13813
|
+
store.dispatch(new StartTimerAction(PlayerTurnTimerTag_init_$Create$(element_0.playerId, element_0.s6u_1.f67()), getInitialPlayerTurnTimerDelayMillis(element_0, table.config, this.may_1, this.nay_1), VOID, TimerType_DELAY_getInstance()));
|
|
13814
13814
|
}
|
|
13815
13815
|
};
|
|
13816
13816
|
protoOf(reloadTimersWhenContinueGameMiddleware$$inlined$middlewareForActionType$1).t6d = function (store, next, action) {
|
|
@@ -13897,7 +13897,7 @@
|
|
|
13897
13897
|
};
|
|
13898
13898
|
protoOf(removeSavedGameMiddleware$$inlined$middlewareForActionType$1).j6f = function (store, next, action) {
|
|
13899
13899
|
var action_0 = action instanceof RoundEndedAction ? action : THROW_CCE();
|
|
13900
|
-
var id = store.state.
|
|
13900
|
+
var id = store.state.w6m().id;
|
|
13901
13901
|
next(action_0);
|
|
13902
13902
|
this.aaz_1.o6a(VOID, removeSavedGameMiddleware$o$handle$slambda_0(action_0, this.baz_1, id, null));
|
|
13903
13903
|
};
|
|
@@ -13930,7 +13930,7 @@
|
|
|
13930
13930
|
switch (tmp) {
|
|
13931
13931
|
case 0:
|
|
13932
13932
|
this.t8_1 = 2;
|
|
13933
|
-
var tmp0_safe_receiver = this.kaz_1.state.
|
|
13933
|
+
var tmp0_safe_receiver = this.kaz_1.state.tableOrNull;
|
|
13934
13934
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.id;
|
|
13935
13935
|
var id = tmp1_elvis_lhs == null ? 'temp_game_id' : tmp1_elvis_lhs;
|
|
13936
13936
|
this.s8_1 = 1;
|
|
@@ -14010,9 +14010,9 @@
|
|
|
14010
14010
|
switch (tmp) {
|
|
14011
14011
|
case 0:
|
|
14012
14012
|
this.t8_1 = 3;
|
|
14013
|
-
if (!this.xaz_1.sat_1 && this.yaz_1.
|
|
14013
|
+
if (!this.xaz_1.sat_1 && this.yaz_1.x6m() && !this.yaz_1.w6m().isGameFinished) {
|
|
14014
14014
|
this.s8_1 = 1;
|
|
14015
|
-
suspendResult = this.zaz_1.e9u(this.yaz_1.
|
|
14015
|
+
suspendResult = this.zaz_1.e9u(this.yaz_1.w6m(), get_clientPayload_0(this.yaz_1), false, this);
|
|
14016
14016
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
14017
14017
|
return suspendResult;
|
|
14018
14018
|
}
|
|
@@ -14184,9 +14184,9 @@
|
|
|
14184
14184
|
protoOf(clearTimersWhenErrorMiddleware$$inlined$middlewareForActionType$1).j6f = function (store, next, action) {
|
|
14185
14185
|
var action_0 = action instanceof ErrorAction ? action : THROW_CCE();
|
|
14186
14186
|
var state = store.state;
|
|
14187
|
-
if (state.
|
|
14187
|
+
if (state.x6m()) {
|
|
14188
14188
|
// Inline function 'kotlin.collections.forEach' call
|
|
14189
|
-
var _iterator__ex2g4s = state.
|
|
14189
|
+
var _iterator__ex2g4s = state.j6m_1.l();
|
|
14190
14190
|
while (_iterator__ex2g4s.m()) {
|
|
14191
14191
|
var element = _iterator__ex2g4s.n();
|
|
14192
14192
|
store.dispatch(new StopTimerAction(element));
|
|
@@ -14469,13 +14469,13 @@
|
|
|
14469
14469
|
protoOf(clientShowDisabledCardMessageMiddleware$$inlined$middlewareForActionType$1).j6f = function (store, next, action) {
|
|
14470
14470
|
var action_0 = action instanceof DisabledCardAction ? action : THROW_CCE();
|
|
14471
14471
|
var state = store.state;
|
|
14472
|
-
if (get_isEarnPointScene(state.
|
|
14472
|
+
if (get_isEarnPointScene(state.w6m().sceneInfo.h7u_1)) {
|
|
14473
14473
|
var tmp0_putPlayerCard = action_0.zb0_1;
|
|
14474
|
-
var tmp1_player = get_currentPlayer(state.
|
|
14475
|
-
var tmp2_table = state.
|
|
14474
|
+
var tmp1_player = get_currentPlayer(state.w6m());
|
|
14475
|
+
var tmp2_table = state.w6m();
|
|
14476
14476
|
var validationCode = this.wb0_1.g9u(tmp0_putPlayerCard, tmp2_table, tmp1_player);
|
|
14477
14477
|
if (!(validationCode == null)) {
|
|
14478
|
-
store.dispatch(new InfoMessageAction(this.xb0_1.
|
|
14478
|
+
store.dispatch(new InfoMessageAction(this.xb0_1.f8k(validationCode)));
|
|
14479
14479
|
} else {
|
|
14480
14480
|
this.yb0_1.w(VOID, 'clientShowDisabledCardMessageMiddleware: card is valid, please check');
|
|
14481
14481
|
}
|
|
@@ -14501,9 +14501,9 @@
|
|
|
14501
14501
|
var action_0 = action instanceof PutCardAndCheckCombinationsAction ? action : THROW_CCE();
|
|
14502
14502
|
var state = store.state;
|
|
14503
14503
|
var cardNotValidCount = 0;
|
|
14504
|
-
var player = get_currentPlayer(state.
|
|
14504
|
+
var player = get_currentPlayer(state.w6m());
|
|
14505
14505
|
var tmp0_putPlayerCard = action_0.aau_1.l6a_1;
|
|
14506
|
-
var tmp1_table = state.
|
|
14506
|
+
var tmp1_table = state.w6m();
|
|
14507
14507
|
var validationCode = this.ab1_1.g9u(tmp0_putPlayerCard, tmp1_table, player);
|
|
14508
14508
|
if (!(validationCode == null)) {
|
|
14509
14509
|
cardNotValidCount = cardNotValidCount + 1 | 0;
|
|
@@ -14514,7 +14514,7 @@
|
|
|
14514
14514
|
this.bb1_1.w(VOID, 'validateCardMiddleware: card is not valid for the third time, please check');
|
|
14515
14515
|
}
|
|
14516
14516
|
if (!(validationCode == null)) {
|
|
14517
|
-
store.dispatch(new InfoMessageAction(this.cb1_1.
|
|
14517
|
+
store.dispatch(new InfoMessageAction(this.cb1_1.f8k(validationCode)));
|
|
14518
14518
|
} else {
|
|
14519
14519
|
next(action_0);
|
|
14520
14520
|
}
|
|
@@ -14531,8 +14531,8 @@
|
|
|
14531
14531
|
function ClientCombinationsReducerImpl() {
|
|
14532
14532
|
}
|
|
14533
14533
|
protoOf(ClientCombinationsReducerImpl).db1 = function (currentPlayerId, actData) {
|
|
14534
|
-
if (!(actData == null) && currentPlayerId === actData.
|
|
14535
|
-
return new CombinationToAnnounceState(actData.
|
|
14534
|
+
if (!(actData == null) && currentPlayerId === actData.s79()) {
|
|
14535
|
+
return new CombinationToAnnounceState(actData.x79_1, null, null);
|
|
14536
14536
|
}
|
|
14537
14537
|
return null;
|
|
14538
14538
|
};
|
|
@@ -14546,7 +14546,7 @@
|
|
|
14546
14546
|
var tmp2 = isInterface(action, NavigationMechanicAction) ? action : THROW_CCE();
|
|
14547
14547
|
var tmp$ret$1;
|
|
14548
14548
|
$l$block_0: {
|
|
14549
|
-
var table = state.
|
|
14549
|
+
var table = state.w6m();
|
|
14550
14550
|
var actId = tmp2.actId;
|
|
14551
14551
|
if (actId === 'COMBINATION') {
|
|
14552
14552
|
var tmp = get_clientPayload_0(state);
|
|
@@ -14607,7 +14607,7 @@
|
|
|
14607
14607
|
var _iterator__ex2g4s = messages.l();
|
|
14608
14608
|
while (_iterator__ex2g4s.m()) {
|
|
14609
14609
|
var element = _iterator__ex2g4s.n();
|
|
14610
|
-
if (element.
|
|
14610
|
+
if (element.y6q().equals(MessageLifecycle_ROOM_getInstance())) {
|
|
14611
14611
|
destination.j(element);
|
|
14612
14612
|
}
|
|
14613
14613
|
}
|
|
@@ -14620,7 +14620,7 @@
|
|
|
14620
14620
|
var _iterator__ex2g4s = messages.l();
|
|
14621
14621
|
while (_iterator__ex2g4s.m()) {
|
|
14622
14622
|
var element = _iterator__ex2g4s.n();
|
|
14623
|
-
if (element.
|
|
14623
|
+
if (element.y6q().equals(MessageLifecycle_GAME_getInstance()) || element.y6q().equals(MessageLifecycle_ROOM_getInstance())) {
|
|
14624
14624
|
destination.j(element);
|
|
14625
14625
|
}
|
|
14626
14626
|
}
|
|
@@ -14635,37 +14635,37 @@
|
|
|
14635
14635
|
var item = _iterator__ex2g4s.n();
|
|
14636
14636
|
var tmp;
|
|
14637
14637
|
if (item instanceof WhoShuffleCardsMessage) {
|
|
14638
|
-
tmp = item.
|
|
14638
|
+
tmp = item.k6s(VOID, VOID, VOID, false);
|
|
14639
14639
|
} else {
|
|
14640
14640
|
if (item instanceof TextMessage) {
|
|
14641
|
-
tmp = item.
|
|
14641
|
+
tmp = item.a6u(VOID, VOID, VOID, false);
|
|
14642
14642
|
} else {
|
|
14643
14643
|
if (item instanceof PhraseMessage) {
|
|
14644
|
-
tmp = item.
|
|
14644
|
+
tmp = item.o6t(VOID, VOID, VOID, false);
|
|
14645
14645
|
} else {
|
|
14646
14646
|
if (item instanceof AnnouncedCombinationMessage) {
|
|
14647
|
-
tmp = item.
|
|
14647
|
+
tmp = item.r6s(VOID, VOID, VOID, false);
|
|
14648
14648
|
} else {
|
|
14649
14649
|
if (item instanceof WinnerCombinationsMessage) {
|
|
14650
|
-
tmp = item.
|
|
14650
|
+
tmp = item.z6s(VOID, VOID, false);
|
|
14651
14651
|
} else {
|
|
14652
14652
|
if (item instanceof PreviousRoundPointsMessage) {
|
|
14653
|
-
tmp = item.
|
|
14653
|
+
tmp = item.k6r(VOID, VOID, VOID, VOID, VOID, VOID, false);
|
|
14654
14654
|
} else {
|
|
14655
14655
|
if (item instanceof StickerMessage) {
|
|
14656
|
-
tmp = item.
|
|
14656
|
+
tmp = item.u6t(VOID, VOID, VOID, false);
|
|
14657
14657
|
} else {
|
|
14658
14658
|
if (item instanceof RandomSignatureMessage) {
|
|
14659
|
-
tmp = item.
|
|
14659
|
+
tmp = item.s6r(VOID, VOID, false);
|
|
14660
14660
|
} else {
|
|
14661
14661
|
if (item instanceof ValidationMessage) {
|
|
14662
|
-
tmp = item.
|
|
14662
|
+
tmp = item.h6u(VOID, VOID, false);
|
|
14663
14663
|
} else {
|
|
14664
14664
|
if (item instanceof ServiceMessage) {
|
|
14665
|
-
tmp = item.
|
|
14665
|
+
tmp = item.a6s(VOID, VOID, false);
|
|
14666
14666
|
} else {
|
|
14667
14667
|
if (item instanceof EventMessage) {
|
|
14668
|
-
tmp = item.
|
|
14668
|
+
tmp = item.a6r(VOID, VOID, false);
|
|
14669
14669
|
} else {
|
|
14670
14670
|
gameLogger.w(VOID, "updateMessagesAsNotShown: Can't support this message " + toString(item));
|
|
14671
14671
|
tmp = item;
|
|
@@ -14756,7 +14756,7 @@
|
|
|
14756
14756
|
};
|
|
14757
14757
|
protoOf(ClientMechanicLifecycleReducer).m9b = function (state, action) {
|
|
14758
14758
|
this.p9b_1.l57(action.previousGameId);
|
|
14759
|
-
var newTable = this.o9b_1.v9c(state.
|
|
14759
|
+
var newTable = this.o9b_1.v9c(state.w6m(), action.gameId);
|
|
14760
14760
|
var tmp = get_clientPayload_0(state);
|
|
14761
14761
|
var newPayload = this.sb1_1.gb1(tmp, ClientLifecycleReducer$gameFinishedMessagesReducer$ref(this.sb1_1));
|
|
14762
14762
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
@@ -14769,7 +14769,7 @@
|
|
|
14769
14769
|
if (clientState == null) {
|
|
14770
14770
|
var tmp_0 = Companion_instance_14;
|
|
14771
14771
|
var tmp_1 = get_currentPlayer(action.d8x_1).playerId;
|
|
14772
|
-
var tmp0_safe_receiver = action.d8x_1.sceneInfo.
|
|
14772
|
+
var tmp0_safe_receiver = action.d8x_1.sceneInfo.l7u_1;
|
|
14773
14773
|
var tmp_2;
|
|
14774
14774
|
if (tmp0_safe_receiver == null) {
|
|
14775
14775
|
tmp_2 = null;
|
|
@@ -14795,7 +14795,7 @@
|
|
|
14795
14795
|
return state.f8u(tmp2_tableOrNull, newPayload, tmp1_gameLifecycleState, null);
|
|
14796
14796
|
};
|
|
14797
14797
|
protoOf(ClientMechanicLifecycleReducer).k9b = function (state, action) {
|
|
14798
|
-
var tmp0_safe_receiver = state.
|
|
14798
|
+
var tmp0_safe_receiver = state.tableOrNull;
|
|
14799
14799
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
14800
14800
|
if (tmp1_safe_receiver == null)
|
|
14801
14801
|
null;
|
|
@@ -14810,18 +14810,18 @@
|
|
|
14810
14810
|
};
|
|
14811
14811
|
protoOf(ClientMechanicLifecycleReducer).j9b = function (state, action) {
|
|
14812
14812
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
14813
|
-
var tmp0_safe_receiver = state.
|
|
14813
|
+
var tmp0_safe_receiver = state.i6m_1;
|
|
14814
14814
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i8u(action.n8w_1, action.q8w_1);
|
|
14815
14815
|
return state.f8u(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.n8w_1, action.q8w_1) : tmp1_elvis_lhs);
|
|
14816
14816
|
};
|
|
14817
14817
|
protoOf(ClientMechanicLifecycleReducer).i9b = function (state, action) {
|
|
14818
14818
|
var tmp = get_clientPayload_0(state);
|
|
14819
14819
|
var newPayload = this.sb1_1.gb1(tmp, ClientLifecycleReducer$roundFinishedMessagesReducer$ref(this.sb1_1));
|
|
14820
|
-
var newTable = this.o9b_1.q9b(state.
|
|
14820
|
+
var newTable = this.o9b_1.q9b(state.w6m());
|
|
14821
14821
|
return state.f8u(newTable, newPayload);
|
|
14822
14822
|
};
|
|
14823
14823
|
protoOf(ClientMechanicLifecycleReducer).h9b = function (state, action) {
|
|
14824
|
-
var tmp0_safe_receiver = state.
|
|
14824
|
+
var tmp0_safe_receiver = state.tableOrNull;
|
|
14825
14825
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
14826
14826
|
if (tmp1_safe_receiver == null)
|
|
14827
14827
|
null;
|
|
@@ -14838,9 +14838,9 @@
|
|
|
14838
14838
|
tmp = this.sb1_1.ib1(tmp2_safe_receiver).gax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, action.a8y_1);
|
|
14839
14839
|
}
|
|
14840
14840
|
var newPayload = tmp;
|
|
14841
|
-
var tmp3_safe_receiver = state.
|
|
14842
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.j8u(action.a8y_1.
|
|
14843
|
-
var newTerminationState = tmp4_elvis_lhs == null ? new TerminationState(action.a8y_1.
|
|
14841
|
+
var tmp3_safe_receiver = state.i6m_1;
|
|
14842
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.j8u(action.a8y_1.w7l_1);
|
|
14843
|
+
var newTerminationState = tmp4_elvis_lhs == null ? new TerminationState(action.a8y_1.w7l_1) : tmp4_elvis_lhs;
|
|
14844
14844
|
return state.f8u(VOID, newPayload, GameLifecycleState_FINISHED_getInstance(), newTerminationState);
|
|
14845
14845
|
};
|
|
14846
14846
|
function clientResetProcessingCardReducer() {
|
|
@@ -14880,7 +14880,7 @@
|
|
|
14880
14880
|
protoOf(clientSceneReducer$$inlined$reducerForActionType$1).x99 = function (state, action) {
|
|
14881
14881
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
14882
14882
|
var tmp;
|
|
14883
|
-
switch (action_0.
|
|
14883
|
+
switch (action_0.a8r_1) {
|
|
14884
14884
|
case 'WAITING':
|
|
14885
14885
|
tmp = state;
|
|
14886
14886
|
break;
|
|
@@ -14935,8 +14935,8 @@
|
|
|
14935
14935
|
var tmp_0 = get_clientPayload_0(state);
|
|
14936
14936
|
var tmp_1;
|
|
14937
14937
|
if (tmp2.pat_1) {
|
|
14938
|
-
var cards = last(state.
|
|
14939
|
-
tmp_1 = new LastBribeState(first(cards).
|
|
14938
|
+
var cards = last(state.w6m().bribes).k7j_1;
|
|
14939
|
+
tmp_1 = new LastBribeState(first(cards).y78_1, getWhoGotLastBribe(state.w6m().players).playerId, cards);
|
|
14940
14940
|
} else {
|
|
14941
14941
|
tmp_1 = null;
|
|
14942
14942
|
}
|
|
@@ -14946,8 +14946,8 @@
|
|
|
14946
14946
|
var tmp_2 = get_clientPayload_0(state);
|
|
14947
14947
|
var tmp_3;
|
|
14948
14948
|
if (tmp2.qat_1) {
|
|
14949
|
-
var players = state.
|
|
14950
|
-
var tmp3_trump = state.
|
|
14949
|
+
var players = state.w6m().players;
|
|
14950
|
+
var tmp3_trump = state.w6m().currentTrump;
|
|
14951
14951
|
var tmp1_safe_receiver = singleOrNull(filterWhoChoseSuit(players));
|
|
14952
14952
|
var tmp4_whoChoseSuitPlayerId = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.playerId;
|
|
14953
14953
|
var tmp2_safe_receiver = singleOrNull(filterWhoShuffleCards(players));
|
|
@@ -14978,29 +14978,29 @@
|
|
|
14978
14978
|
} else {
|
|
14979
14979
|
// Inline function 'kotlin.let' call
|
|
14980
14980
|
// Inline function 'kotlin.collections.map' call
|
|
14981
|
-
var this_0 = state.
|
|
14981
|
+
var this_0 = state.w6m().players;
|
|
14982
14982
|
// Inline function 'kotlin.collections.mapTo' call
|
|
14983
14983
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
14984
14984
|
var _iterator__ex2g4s = this_0.l();
|
|
14985
14985
|
while (_iterator__ex2g4s.m()) {
|
|
14986
14986
|
var item = _iterator__ex2g4s.n();
|
|
14987
14987
|
var updatedUser = firstOrNull(filterByPlayerId(tmp6_safe_receiver, item.playerId));
|
|
14988
|
-
var tmp$ret$0 = item.
|
|
14988
|
+
var tmp$ret$0 = item.m6v(updatedUser == null ? item.r6u_1 : updatedUser);
|
|
14989
14989
|
destination.j(tmp$ret$0);
|
|
14990
14990
|
}
|
|
14991
14991
|
tmp_4 = destination;
|
|
14992
14992
|
}
|
|
14993
14993
|
var updatedPlayers = tmp_4;
|
|
14994
|
-
var tmp_5 = state.
|
|
14995
|
-
var tmp10_$this = state.
|
|
14994
|
+
var tmp_5 = state.w6m();
|
|
14995
|
+
var tmp10_$this = state.w6m().config;
|
|
14996
14996
|
var tmp7_elvis_lhs = tmp2.wat_1;
|
|
14997
|
-
var tmp11_rulesSetType = tmp7_elvis_lhs == null ? state.
|
|
14997
|
+
var tmp11_rulesSetType = tmp7_elvis_lhs == null ? state.w6m().config.rulesSetType : tmp7_elvis_lhs;
|
|
14998
14998
|
var tmp8_elvis_lhs = tmp2.xat_1;
|
|
14999
|
-
var tmp12_rules = tmp8_elvis_lhs == null ? state.
|
|
14999
|
+
var tmp12_rules = tmp8_elvis_lhs == null ? state.w6m().config.rules : tmp8_elvis_lhs;
|
|
15000
15000
|
var tmp9_elvis_lhs = tmp2.vat_1;
|
|
15001
|
-
var tmp13_options = tmp9_elvis_lhs == null ? state.
|
|
15001
|
+
var tmp13_options = tmp9_elvis_lhs == null ? state.w6m().config.options : tmp9_elvis_lhs;
|
|
15002
15002
|
var tmp_6 = tmp10_$this.copy(tmp12_rules, tmp11_rulesSetType, tmp13_options);
|
|
15003
|
-
var tmp_7 = tmp_5.copy(VOID, VOID, VOID, tmp_6, updatedPlayers == null ? state.
|
|
15003
|
+
var tmp_7 = tmp_5.copy(VOID, VOID, VOID, tmp_6, updatedPlayers == null ? state.w6m().players : updatedPlayers);
|
|
15004
15004
|
var tmp_8 = get_clientPayload_0(state);
|
|
15005
15005
|
var tmp15_elvis_lhs = tmp2.uat_1;
|
|
15006
15006
|
tmp = state.f8u(tmp_7, tmp_8.gax(tmp15_elvis_lhs == null ? get_clientPayload_0(state).e9t_1 : tmp15_elvis_lhs));
|
|
@@ -15008,7 +15008,7 @@
|
|
|
15008
15008
|
if (tmp2 instanceof ClientMessageAction) {
|
|
15009
15009
|
var messages = get_clientPayload_0(state).f9t_1;
|
|
15010
15010
|
var lastMessage = lastOrNull(messages);
|
|
15011
|
-
if ((lastMessage == null ? null : lastMessage.
|
|
15011
|
+
if ((lastMessage == null ? null : lastMessage.x6q(tmp2.zat_1)) === true) {
|
|
15012
15012
|
tmp$ret$5 = state;
|
|
15013
15013
|
break $l$block;
|
|
15014
15014
|
}
|
|
@@ -15021,7 +15021,7 @@
|
|
|
15021
15021
|
tmp = state.f8u(VOID, get_clientPayload_0(state).gax(VOID, VOID, tmp2.dau_1));
|
|
15022
15022
|
} else {
|
|
15023
15023
|
if (tmp2 instanceof UpdateMessagesCountAction) {
|
|
15024
|
-
tmp = state.f8u(updateVoiceCount_0(state.
|
|
15024
|
+
tmp = state.f8u(updateVoiceCount_0(state.w6m(), this.yb1_1));
|
|
15025
15025
|
} else {
|
|
15026
15026
|
if (tmp2 instanceof ResetErrorAction) {
|
|
15027
15027
|
var tmp17_safe_receiver = get_clientPayloadOrNull_0(state);
|
|
@@ -15092,19 +15092,19 @@
|
|
|
15092
15092
|
var message = action.y8x_1;
|
|
15093
15093
|
var tmp;
|
|
15094
15094
|
if (isInterface(message, UserMessage)) {
|
|
15095
|
-
tmp = message.
|
|
15095
|
+
tmp = message.c6s();
|
|
15096
15096
|
} else {
|
|
15097
15097
|
tmp = false;
|
|
15098
15098
|
}
|
|
15099
15099
|
if (tmp) {
|
|
15100
|
-
var player = getPlayer(table.players, message.
|
|
15101
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.
|
|
15100
|
+
var player = getPlayer(table.players, message.b6s().q64_1);
|
|
15101
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.m6v(VOID, VOID, VOID, player.u6u_1.r6z(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, player.u6u_1.g6v_1 - 1 | 0)), get_byIdPlayerPredicate()(player.playerId)));
|
|
15102
15102
|
}
|
|
15103
15103
|
return table;
|
|
15104
15104
|
}
|
|
15105
15105
|
function updateVoiceCount_0(table, playerId) {
|
|
15106
15106
|
var player = getPlayer(table.players, playerId);
|
|
15107
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.
|
|
15107
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.m6v(VOID, VOID, VOID, player.u6u_1.r6z(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, player.u6u_1.g6v_1 - 1 | 0)), get_byIdPlayerPredicate()(player.playerId)));
|
|
15108
15108
|
}
|
|
15109
15109
|
function messageReducer$$inlined$reducerForActionType$1() {
|
|
15110
15110
|
}
|
|
@@ -15114,7 +15114,7 @@
|
|
|
15114
15114
|
protoOf(messageReducer$$inlined$reducerForActionType$1).x99 = function (state, action) {
|
|
15115
15115
|
var action_0 = action instanceof MessageMechanicAction ? action : THROW_CCE();
|
|
15116
15116
|
var clientState = get_clientPayload_0(state);
|
|
15117
|
-
return state.f8u(updateVoiceCount(state.
|
|
15117
|
+
return state.f8u(updateVoiceCount(state.w6m(), action_0), clientState.gax(VOID, plus_0(clientState.f9t_1, action_0.y8x_1)));
|
|
15118
15118
|
};
|
|
15119
15119
|
protoOf(messageReducer$$inlined$reducerForActionType$1).k6f = function (state, action) {
|
|
15120
15120
|
return this.x99((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
@@ -15192,7 +15192,7 @@
|
|
|
15192
15192
|
tmp = new ErrorState(VOID, VOID, ProcessingReason_getInstance());
|
|
15193
15193
|
} else {
|
|
15194
15194
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
15195
|
-
tmp = mapToErrorState(action_0.n8w_1, state.
|
|
15195
|
+
tmp = mapToErrorState(action_0.n8w_1, state.w6m());
|
|
15196
15196
|
} else {
|
|
15197
15197
|
tmp = null;
|
|
15198
15198
|
}
|
|
@@ -15355,7 +15355,7 @@
|
|
|
15355
15355
|
return tmp1_$this.qb2(tmp2_playerId, tmp3_isCurrentPlayer, tmp5_cards, tmp4_players, tmp6_processingCardOnTable);
|
|
15356
15356
|
}
|
|
15357
15357
|
function getOpenOrHiddenCardsInHand$default($this, player, currentPlayerId, players, processingCard, cards, $super) {
|
|
15358
|
-
cards = cards === VOID ? player.
|
|
15358
|
+
cards = cards === VOID ? player.t6u_1 : cards;
|
|
15359
15359
|
return getOpenOrHiddenCardsInHand($this, player, currentPlayerId, players, processingCard, cards);
|
|
15360
15360
|
}
|
|
15361
15361
|
function handleTradeScene($this, state, action, currentPlayerId) {
|
|
@@ -15370,7 +15370,7 @@
|
|
|
15370
15370
|
throw new MechanicException('Required ' + getKClass(TradeSceneData).ea() + ', current scene is ' + toString_0(tmp0));
|
|
15371
15371
|
}
|
|
15372
15372
|
var sceneData = tmp$ret$0;
|
|
15373
|
-
var playersCardsToDistribute = sceneData.
|
|
15373
|
+
var playersCardsToDistribute = sceneData.f7b_1;
|
|
15374
15374
|
// Inline function 'kotlin.collections.sumOf' call
|
|
15375
15375
|
var sum = 0;
|
|
15376
15376
|
var _iterator__ex2g4s = playersCardsToDistribute.e2().l();
|
|
@@ -15380,9 +15380,9 @@
|
|
|
15380
15380
|
sum = tmp + element.o() | 0;
|
|
15381
15381
|
}
|
|
15382
15382
|
var cardsToDistributeCount = sum;
|
|
15383
|
-
var otherCardsCount = sceneData.
|
|
15383
|
+
var otherCardsCount = sceneData.i7b_1.o();
|
|
15384
15384
|
var cardDeckCards = createCardDeckCards($this, cardsToDistributeCount, otherCardsCount);
|
|
15385
|
-
var shuffleCardTransition = new ShuffleCardDeckTransition($this.mb2_1.s6b(), plus(listOf_0(sceneData.
|
|
15385
|
+
var shuffleCardTransition = new ShuffleCardDeckTransition($this.mb2_1.s6b(), plus(listOf_0(sceneData.h7b_1), cardDeckCards));
|
|
15386
15386
|
var distributionTransition = createCardDistributionTransition($this, state, currentPlayerId, playersCardsToDistribute, null, otherCardsCount);
|
|
15387
15387
|
var updatedTransitions = plus(get_clientPayload_0(state).r9t_1, listOf([shuffleCardTransition, distributionTransition]));
|
|
15388
15388
|
return state.f8u(VOID, get_clientPayload_0(state).gax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
@@ -15400,20 +15400,20 @@
|
|
|
15400
15400
|
}
|
|
15401
15401
|
var sceneData = tmp$ret$0;
|
|
15402
15402
|
var tmp0_$this = $this.lb2_1;
|
|
15403
|
-
var tmp1_config = state.
|
|
15404
|
-
var tmp2_cardDeck = state.
|
|
15405
|
-
var tmp3_newTopOpenedCard = sceneData.
|
|
15406
|
-
var tmp4_newPlayersCards = sceneData.
|
|
15403
|
+
var tmp1_config = state.w6m().config;
|
|
15404
|
+
var tmp2_cardDeck = state.w6m().requireCardDeck;
|
|
15405
|
+
var tmp3_newTopOpenedCard = sceneData.m7b_1;
|
|
15406
|
+
var tmp4_newPlayersCards = sceneData.k7b_1;
|
|
15407
15407
|
var updatedCardDeck = tmp0_$this.j9c(tmp2_cardDeck, tmp4_newPlayersCards, tmp1_config, tmp3_newTopOpenedCard);
|
|
15408
|
-
var tmp5_distributeTrumpCard = updatedCardDeck.
|
|
15409
|
-
var tmp6_playersCardsToDistribute = sceneData.
|
|
15410
|
-
var tmp7_otherCardsCount = updatedCardDeck.
|
|
15408
|
+
var tmp5_distributeTrumpCard = updatedCardDeck.t7j_1;
|
|
15409
|
+
var tmp6_playersCardsToDistribute = sceneData.k7b_1;
|
|
15410
|
+
var tmp7_otherCardsCount = updatedCardDeck.m8c();
|
|
15411
15411
|
var distributionTransition = createCardDistributionTransition($this, state, currentPlayerId, tmp6_playersCardsToDistribute, tmp5_distributeTrumpCard, tmp7_otherCardsCount);
|
|
15412
15412
|
var updatedTransitions = plus_0(get_clientPayload_0(state).r9t_1, distributionTransition);
|
|
15413
15413
|
return state.f8u(VOID, get_clientPayload_0(state).gax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15414
15414
|
}
|
|
15415
15415
|
function createCardDistributionTransition($this, state, currentPlayerId, playersCardsToDistribute, distributeTrumpCard, otherCardsCount) {
|
|
15416
|
-
var table = state.
|
|
15416
|
+
var table = state.w6m();
|
|
15417
15417
|
var distributeToCards = prepareCardsForDistribution($this, table, get_clientPayload_0(state), currentPlayerId, playersCardsToDistribute);
|
|
15418
15418
|
// Inline function 'kotlin.collections.sumOf' call
|
|
15419
15419
|
var sum = 0;
|
|
@@ -15494,7 +15494,7 @@
|
|
|
15494
15494
|
while (_iterator__ex2g4s.m()) {
|
|
15495
15495
|
var item = _iterator__ex2g4s.n();
|
|
15496
15496
|
var newCards = getValue(playersCardsToDistribute, item.playerId);
|
|
15497
|
-
var tmp0_cards = plus(item.
|
|
15497
|
+
var tmp0_cards = plus(item.t6u_1, newCards);
|
|
15498
15498
|
var tmp1_players = table.players;
|
|
15499
15499
|
var tmp2_processingCard = clientPayload.q9t_1;
|
|
15500
15500
|
var hiddenCardsIfNeeded = getOpenOrHiddenCardsInHand($this, item, currentPlayerId, tmp1_players, tmp2_processingCard, tmp0_cards);
|
|
@@ -15508,7 +15508,7 @@
|
|
|
15508
15508
|
function determineWhoGetsTheTrumpCard($this, table) {
|
|
15509
15509
|
var tmp;
|
|
15510
15510
|
if (!(firstOrNull(filterWhoChoseSuit(table.players)) == null)) {
|
|
15511
|
-
tmp = $this.nb2_1.
|
|
15511
|
+
tmp = $this.nb2_1.g8j(table.players, table.config);
|
|
15512
15512
|
} else {
|
|
15513
15513
|
tmp = null;
|
|
15514
15514
|
}
|
|
@@ -15653,7 +15653,7 @@
|
|
|
15653
15653
|
};
|
|
15654
15654
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardAndCheckCombinationReducer$$inlined$reducerForActionType$1).x99 = function (state, action) {
|
|
15655
15655
|
var action_0 = action instanceof PutCardAndCheckCombinationsAction ? action : THROW_CCE();
|
|
15656
|
-
var updatedTransitions = addPutCardOnTableTransition(this.xb2_1, this.yb2_1, this.yb2_1, action_0.aau_1.l6a_1, state.
|
|
15656
|
+
var updatedTransitions = addPutCardOnTableTransition(this.xb2_1, this.yb2_1, this.yb2_1, action_0.aau_1.l6a_1, state.w6m(), get_clientPayload_0(state));
|
|
15657
15657
|
return state.f8u(VOID, get_clientPayload_0(state).gax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15658
15658
|
};
|
|
15659
15659
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardAndCheckCombinationReducer$$inlined$reducerForActionType$1).k6f = function (state, action) {
|
|
@@ -15668,7 +15668,7 @@
|
|
|
15668
15668
|
};
|
|
15669
15669
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1).x99 = function (state, action) {
|
|
15670
15670
|
var action_0 = action instanceof PutCardMechanicAction ? action : THROW_CCE();
|
|
15671
|
-
var updatedTransitions = addPutCardOnTableTransition(this.zb2_1, action_0.playerId, this.ab3_1, action_0.
|
|
15671
|
+
var updatedTransitions = addPutCardOnTableTransition(this.zb2_1, action_0.playerId, this.ab3_1, action_0.j8r_1, state.w6m(), get_clientPayload_0(state));
|
|
15672
15672
|
return state.f8u(VOID, get_clientPayload_0(state).gax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15673
15673
|
};
|
|
15674
15674
|
protoOf(TransitionsReducerImpl$addTransitionWhenPutCardReducer$$inlined$reducerForActionType$1).k6f = function (state, action) {
|
|
@@ -15684,7 +15684,7 @@
|
|
|
15684
15684
|
protoOf(TransitionsReducerImpl$addTransitionWhenCardDistributionReducer$$inlined$reducerForActionType$1).x99 = function (state, action) {
|
|
15685
15685
|
var action_0 = action instanceof SceneMechanicAction ? action : THROW_CCE();
|
|
15686
15686
|
var tmp;
|
|
15687
|
-
switch (action_0.
|
|
15687
|
+
switch (action_0.a8r_1) {
|
|
15688
15688
|
case 'TRADE':
|
|
15689
15689
|
tmp = handleTradeScene(this.bb3_1, state, action_0, this.cb3_1);
|
|
15690
15690
|
break;
|
|
@@ -15715,13 +15715,13 @@
|
|
|
15715
15715
|
if (expectantAction instanceof CombinationChoiceMechanicAction) {
|
|
15716
15716
|
var combination = first(expectantAction.t8x_1);
|
|
15717
15717
|
var tmp_0;
|
|
15718
|
-
if (expectantAction.s8x_1 && combination.
|
|
15719
|
-
var trumpCard = single(combination.
|
|
15720
|
-
var trumpCardOrOrigin = getOpenOrHiddenCardInHand(this.db3_1, trumpCard, getPlayer(state.
|
|
15718
|
+
if (expectantAction.s8x_1 && combination.a7a_1.equals(CombinationType_SEVEN_TRUMP_getInstance())) {
|
|
15719
|
+
var trumpCard = single(combination.r8c());
|
|
15720
|
+
var trumpCardOrOrigin = getOpenOrHiddenCardInHand(this.db3_1, trumpCard, getPlayer(state.w6m().players, expectantAction.playerId), this.eb3_1, state.w6m().players);
|
|
15721
15721
|
var tmp0_id = this.db3_1.mb2_1.s6b();
|
|
15722
15722
|
var tmp1_playerIds = listOf_0(expectantAction.playerId);
|
|
15723
|
-
var tmp2_toCard2 = state.
|
|
15724
|
-
var tmp3_fromCard2 = state.
|
|
15723
|
+
var tmp2_toCard2 = state.w6m().requireCardDeck.t7j_1;
|
|
15724
|
+
var tmp3_fromCard2 = state.w6m().requireCardDeck.t7j_1;
|
|
15725
15725
|
var updatedTransitions = plus_0(clientPayload.r9t_1, new SwapCardsTransition(tmp0_id, tmp1_playerIds, trumpCardOrOrigin, trumpCard, tmp3_fromCard2, tmp2_toCard2));
|
|
15726
15726
|
tmp_0 = state.f8u(VOID, clientPayload.gax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions));
|
|
15727
15727
|
} else {
|
|
@@ -15739,20 +15739,20 @@
|
|
|
15739
15739
|
var _iterator__ex2g4s = this_0.l();
|
|
15740
15740
|
while (_iterator__ex2g4s.m()) {
|
|
15741
15741
|
var element = _iterator__ex2g4s.n();
|
|
15742
|
-
var player = getPlayer(state.
|
|
15743
|
-
var sortedPlayerCards = sortedWith(player.
|
|
15742
|
+
var player = getPlayer(state.w6m().players, element.d7k_1);
|
|
15743
|
+
var sortedPlayerCards = sortedWith(player.t6u_1, new CardSuitSortingComparator(get_clientPayload_0(state).e9t_1.b9r_1));
|
|
15744
15744
|
// Inline function 'kotlin.collections.map' call
|
|
15745
|
-
var this_1 = element.
|
|
15745
|
+
var this_1 = element.e7k_1;
|
|
15746
15746
|
// Inline function 'kotlin.collections.mapTo' call
|
|
15747
15747
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
15748
15748
|
var _iterator__ex2g4s_0 = this_1.l();
|
|
15749
15749
|
while (_iterator__ex2g4s_0.m()) {
|
|
15750
15750
|
var item = _iterator__ex2g4s_0.n();
|
|
15751
|
-
var tmp$ret$0 = item.
|
|
15751
|
+
var tmp$ret$0 = item.r8c();
|
|
15752
15752
|
destination_0.j(tmp$ret$0);
|
|
15753
15753
|
}
|
|
15754
15754
|
var combinationCards = flatten(destination_0);
|
|
15755
|
-
var tmp0_players = state.
|
|
15755
|
+
var tmp0_players = state.w6m().players;
|
|
15756
15756
|
var tmp1_processingCard = clientPayload.q9t_1;
|
|
15757
15757
|
var openOrHiddenCards = getOpenOrHiddenCardsInHand(this.db3_1, player, this.eb3_1, tmp0_players, tmp1_processingCard, combinationCards);
|
|
15758
15758
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
@@ -15781,7 +15781,7 @@
|
|
|
15781
15781
|
}
|
|
15782
15782
|
var handTransitions = destination_1;
|
|
15783
15783
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
15784
|
-
var pair = to(element.
|
|
15784
|
+
var pair = to(element.d7k_1, handTransitions);
|
|
15785
15785
|
destination.f2(pair.me_1, pair.ne_1);
|
|
15786
15786
|
}
|
|
15787
15787
|
var updatedTransitions_0 = plus_0(clientPayload.r9t_1, new ShowCombinationTransition(tmp_1, destination));
|
|
@@ -15790,16 +15790,16 @@
|
|
|
15790
15790
|
if (expectantAction instanceof PickUpBribeMechanicAction) {
|
|
15791
15791
|
var tmp_3 = this.db3_1.mb2_1.s6b();
|
|
15792
15792
|
// Inline function 'kotlin.collections.map' call
|
|
15793
|
-
var this_3 = state.
|
|
15793
|
+
var this_3 = state.w6m().cardsOnTable;
|
|
15794
15794
|
// Inline function 'kotlin.collections.mapTo' call
|
|
15795
15795
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
15796
15796
|
var _iterator__ex2g4s_2 = this_3.l();
|
|
15797
15797
|
while (_iterator__ex2g4s_2.m()) {
|
|
15798
15798
|
var item_1 = _iterator__ex2g4s_2.n();
|
|
15799
|
-
var tmp$ret$10 = item_1.
|
|
15799
|
+
var tmp$ret$10 = item_1.a79_1;
|
|
15800
15800
|
destination_2.j(tmp$ret$10);
|
|
15801
15801
|
}
|
|
15802
|
-
var updatedTransitions_1 = plus_0(clientPayload.r9t_1, new PickUpBribeTransition(tmp_3, expectantAction.
|
|
15802
|
+
var updatedTransitions_1 = plus_0(clientPayload.r9t_1, new PickUpBribeTransition(tmp_3, expectantAction.o8r_1, destination_2));
|
|
15803
15803
|
tmp = state.f8u(VOID, clientPayload.gax(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, updatedTransitions_1));
|
|
15804
15804
|
} else {
|
|
15805
15805
|
tmp = state;
|
|
@@ -16152,7 +16152,7 @@
|
|
|
16152
16152
|
if (!(gameId == null) && !(currentPlayerId == null)) {
|
|
16153
16153
|
tmp = new ClientLoggerKey(gameId, currentPlayerId);
|
|
16154
16154
|
} else {
|
|
16155
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
16155
|
+
var tmp0_safe_receiver = _this__u8e3s4.tableOrNull;
|
|
16156
16156
|
tmp = tmp0_safe_receiver == null ? null : get_clientLoggerKey(tmp0_safe_receiver);
|
|
16157
16157
|
}
|
|
16158
16158
|
return tmp;
|
|
@@ -16374,7 +16374,7 @@
|
|
|
16374
16374
|
}
|
|
16375
16375
|
var tmp0_safe_receiver = $gameClient();
|
|
16376
16376
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a65();
|
|
16377
|
-
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
16377
|
+
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.tableOrNull;
|
|
16378
16378
|
return tmp2_safe_receiver == null ? null : toLoggerPayload(tmp2_safe_receiver);
|
|
16379
16379
|
};
|
|
16380
16380
|
}
|
|
@@ -16523,13 +16523,13 @@
|
|
|
16523
16523
|
return this.x52();
|
|
16524
16524
|
});
|
|
16525
16525
|
defineProp(protoOf(BaseGameMechanic), 'table', function () {
|
|
16526
|
-
return this.
|
|
16526
|
+
return this.w6m();
|
|
16527
16527
|
});
|
|
16528
16528
|
defineProp(protoOf(BaseGameMechanic), 'isTableExists', function () {
|
|
16529
|
-
return this.
|
|
16529
|
+
return this.x6m();
|
|
16530
16530
|
});
|
|
16531
16531
|
defineProp(protoOf(BaseGameMechanic), 'gameLifecycleState', function () {
|
|
16532
|
-
return this.
|
|
16532
|
+
return this.y6m();
|
|
16533
16533
|
});
|
|
16534
16534
|
defineProp(protoOf(OnlineGameMechanicImpl), 'currentPlayerId', function () {
|
|
16535
16535
|
return this.rah();
|
|
@@ -16538,13 +16538,13 @@
|
|
|
16538
16538
|
return this.x52();
|
|
16539
16539
|
});
|
|
16540
16540
|
defineProp(protoOf(OnlineGameMechanicImpl), 'table', function () {
|
|
16541
|
-
return this.
|
|
16541
|
+
return this.w6m();
|
|
16542
16542
|
});
|
|
16543
16543
|
defineProp(protoOf(OnlineGameMechanicImpl), 'isTableExists', function () {
|
|
16544
|
-
return this.
|
|
16544
|
+
return this.x6m();
|
|
16545
16545
|
});
|
|
16546
16546
|
defineProp(protoOf(OnlineGameMechanicImpl), 'gameLifecycleState', function () {
|
|
16547
|
-
return this.
|
|
16547
|
+
return this.y6m();
|
|
16548
16548
|
});
|
|
16549
16549
|
protoOf(PlayersSceneContractImpl).qam = waitUntilSceneActivated;
|
|
16550
16550
|
protoOf(BufferLifecycleAction).g6d = get_actionTag;
|
|
@@ -16623,7 +16623,7 @@
|
|
|
16623
16623
|
});
|
|
16624
16624
|
protoOf(ExpectantTimerTag).ignoreValidation = ignoreValidation;
|
|
16625
16625
|
protoOf(ResetMessageTimerTag).ignoreValidation = ignoreValidation;
|
|
16626
|
-
protoOf(ResetMessageTimerTag).
|
|
16626
|
+
protoOf(ResetMessageTimerTag).o8t = ignoreTimerResetValidation;
|
|
16627
16627
|
defineProp(protoOf(DistributeCardsModel), 'playerId', function () {
|
|
16628
16628
|
return this.c64();
|
|
16629
16629
|
});
|