raspberry_games_server_game_logic 1.8.267 → 1.8.268
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 +22 -18
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +907 -919
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +6 -6
- package/Logic_Debertz-game_server.js +332 -286
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
initMetadataForCompanion(Companion_7);
|
|
408
408
|
initMetadataForClass(ServiceMessage, 'ServiceMessage');
|
|
409
409
|
function get_playerId() {
|
|
410
|
-
return this.
|
|
410
|
+
return this.a6r().f67_1;
|
|
411
411
|
}
|
|
412
412
|
initMetadataForInterface(UserMessage, 'UserMessage', VOID, VOID, [PlayerIdContract]);
|
|
413
413
|
initMetadataForClass(WhoShuffleCardsMessage, 'WhoShuffleCardsMessage', VOID, VOID, [UserMessage]);
|
|
@@ -2484,16 +2484,16 @@
|
|
|
2484
2484
|
this.maxUserRating = maxUserRating;
|
|
2485
2485
|
this.leagues = leagues;
|
|
2486
2486
|
}
|
|
2487
|
-
protoOf(LeaguesConfig).
|
|
2487
|
+
protoOf(LeaguesConfig).s6p = function () {
|
|
2488
2488
|
return this.initialRating;
|
|
2489
2489
|
};
|
|
2490
|
-
protoOf(LeaguesConfig).
|
|
2490
|
+
protoOf(LeaguesConfig).t6p = function () {
|
|
2491
2491
|
return this.minUserRating;
|
|
2492
2492
|
};
|
|
2493
|
-
protoOf(LeaguesConfig).
|
|
2493
|
+
protoOf(LeaguesConfig).u6p = function () {
|
|
2494
2494
|
return this.maxUserRating;
|
|
2495
2495
|
};
|
|
2496
|
-
protoOf(LeaguesConfig).
|
|
2496
|
+
protoOf(LeaguesConfig).v6p = function () {
|
|
2497
2497
|
return this.leagues;
|
|
2498
2498
|
};
|
|
2499
2499
|
protoOf(LeaguesConfig).getLeagueInfo = function (league) {
|
|
@@ -2578,7 +2578,7 @@
|
|
|
2578
2578
|
protoOf(LeaguesConfig).j5j = function () {
|
|
2579
2579
|
return this.leagues;
|
|
2580
2580
|
};
|
|
2581
|
-
protoOf(LeaguesConfig).
|
|
2581
|
+
protoOf(LeaguesConfig).w6p = function (initialUserRating, minUserRating, maxUserRating, leagues) {
|
|
2582
2582
|
return new LeaguesConfig(initialUserRating, minUserRating, maxUserRating, leagues);
|
|
2583
2583
|
};
|
|
2584
2584
|
protoOf(LeaguesConfig).copy = function (initialUserRating, minUserRating, maxUserRating, leagues, $super) {
|
|
@@ -2586,7 +2586,7 @@
|
|
|
2586
2586
|
minUserRating = minUserRating === VOID ? this.minUserRating : minUserRating;
|
|
2587
2587
|
maxUserRating = maxUserRating === VOID ? this.maxUserRating : maxUserRating;
|
|
2588
2588
|
leagues = leagues === VOID ? this.leagues : leagues;
|
|
2589
|
-
return this.
|
|
2589
|
+
return this.w6p(initialUserRating, minUserRating, maxUserRating, leagues);
|
|
2590
2590
|
};
|
|
2591
2591
|
protoOf(LeaguesConfig).toString = function () {
|
|
2592
2592
|
return 'LeaguesConfig(initialUserRating=' + this.initialRating + ', minUserRating=' + this.minUserRating + ', maxUserRating=' + this.maxUserRating + ', leagues=' + toString(this.leagues) + ')';
|
|
@@ -2597,13 +2597,13 @@
|
|
|
2597
2597
|
this.maxRating = maxRating;
|
|
2598
2598
|
this.enabled = enabled;
|
|
2599
2599
|
}
|
|
2600
|
-
protoOf(LeagueInfo).
|
|
2600
|
+
protoOf(LeagueInfo).x6p = function () {
|
|
2601
2601
|
return this.league;
|
|
2602
2602
|
};
|
|
2603
|
-
protoOf(LeagueInfo).
|
|
2603
|
+
protoOf(LeagueInfo).y6p = function () {
|
|
2604
2604
|
return this.minRating;
|
|
2605
2605
|
};
|
|
2606
|
-
protoOf(LeagueInfo).
|
|
2606
|
+
protoOf(LeagueInfo).z6p = function () {
|
|
2607
2607
|
return this.maxRating;
|
|
2608
2608
|
};
|
|
2609
2609
|
protoOf(LeagueInfo).zm = function () {
|
|
@@ -2621,7 +2621,7 @@
|
|
|
2621
2621
|
protoOf(LeagueInfo).j5j = function () {
|
|
2622
2622
|
return this.enabled;
|
|
2623
2623
|
};
|
|
2624
|
-
protoOf(LeagueInfo).
|
|
2624
|
+
protoOf(LeagueInfo).a6q = function (league, minRating, maxRating, enabled) {
|
|
2625
2625
|
return new LeagueInfo(league, minRating, maxRating, enabled);
|
|
2626
2626
|
};
|
|
2627
2627
|
protoOf(LeagueInfo).copy = function (league, minRating, maxRating, enabled, $super) {
|
|
@@ -2629,7 +2629,7 @@
|
|
|
2629
2629
|
minRating = minRating === VOID ? this.minRating : minRating;
|
|
2630
2630
|
maxRating = maxRating === VOID ? this.maxRating : maxRating;
|
|
2631
2631
|
enabled = enabled === VOID ? this.enabled : enabled;
|
|
2632
|
-
return this.
|
|
2632
|
+
return this.a6q(league, minRating, maxRating, enabled);
|
|
2633
2633
|
};
|
|
2634
2634
|
protoOf(LeagueInfo).toString = function () {
|
|
2635
2635
|
return 'LeagueInfo(league=' + this.league.toString() + ', minRating=' + this.minRating + ', maxRating=' + this.maxRating + ', enabled=' + this.enabled + ')';
|
|
@@ -2658,7 +2658,7 @@
|
|
|
2658
2658
|
return true;
|
|
2659
2659
|
};
|
|
2660
2660
|
function Companion_6() {
|
|
2661
|
-
this.
|
|
2661
|
+
this.b6q_1 = 'GAME_RESTART_EVENT_ID';
|
|
2662
2662
|
}
|
|
2663
2663
|
var Companion_instance_11;
|
|
2664
2664
|
function Companion_getInstance_13() {
|
|
@@ -2666,19 +2666,19 @@
|
|
|
2666
2666
|
}
|
|
2667
2667
|
function EventMessage(eventId, id, isShowing, createdAt) {
|
|
2668
2668
|
isShowing = isShowing === VOID ? true : isShowing;
|
|
2669
|
-
this.
|
|
2670
|
-
this.
|
|
2671
|
-
this.
|
|
2672
|
-
this.
|
|
2669
|
+
this.c6q_1 = eventId;
|
|
2670
|
+
this.d6q_1 = id;
|
|
2671
|
+
this.e6q_1 = isShowing;
|
|
2672
|
+
this.f6q_1 = createdAt;
|
|
2673
2673
|
}
|
|
2674
2674
|
protoOf(EventMessage).toString = function () {
|
|
2675
|
-
return 'EventMessage(eventId=' + this.
|
|
2675
|
+
return 'EventMessage(eventId=' + this.c6q_1 + ', id=' + this.d6q_1 + ', isShowing=' + this.e6q_1 + ', createdAt=' + this.f6q_1.toString() + ')';
|
|
2676
2676
|
};
|
|
2677
2677
|
protoOf(EventMessage).hashCode = function () {
|
|
2678
|
-
var result = getStringHashCode(this.
|
|
2679
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2680
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2681
|
-
result = imul(result, 31) + this.
|
|
2678
|
+
var result = getStringHashCode(this.c6q_1);
|
|
2679
|
+
result = imul(result, 31) + getStringHashCode(this.d6q_1) | 0;
|
|
2680
|
+
result = imul(result, 31) + getBooleanHashCode(this.e6q_1) | 0;
|
|
2681
|
+
result = imul(result, 31) + this.f6q_1.hashCode() | 0;
|
|
2682
2682
|
return result;
|
|
2683
2683
|
};
|
|
2684
2684
|
protoOf(EventMessage).equals = function (other) {
|
|
@@ -2687,39 +2687,39 @@
|
|
|
2687
2687
|
if (!(other instanceof EventMessage))
|
|
2688
2688
|
return false;
|
|
2689
2689
|
var tmp0_other_with_cast = other instanceof EventMessage ? other : THROW_CCE();
|
|
2690
|
-
if (!(this.b6q_1 === tmp0_other_with_cast.b6q_1))
|
|
2691
|
-
return false;
|
|
2692
2690
|
if (!(this.c6q_1 === tmp0_other_with_cast.c6q_1))
|
|
2693
2691
|
return false;
|
|
2694
2692
|
if (!(this.d6q_1 === tmp0_other_with_cast.d6q_1))
|
|
2695
2693
|
return false;
|
|
2696
|
-
if (!this.e6q_1
|
|
2694
|
+
if (!(this.e6q_1 === tmp0_other_with_cast.e6q_1))
|
|
2695
|
+
return false;
|
|
2696
|
+
if (!this.f6q_1.equals(tmp0_other_with_cast.f6q_1))
|
|
2697
2697
|
return false;
|
|
2698
2698
|
return true;
|
|
2699
2699
|
};
|
|
2700
2700
|
function PreviousRoundPointsMessage(roundNumber, points, roundContractState, roundCommitted, roundWinners, id, isShowing, createdAt) {
|
|
2701
2701
|
isShowing = isShowing === VOID ? true : isShowing;
|
|
2702
|
-
this.
|
|
2703
|
-
this.
|
|
2704
|
-
this.
|
|
2705
|
-
this.
|
|
2706
|
-
this.
|
|
2707
|
-
this.
|
|
2708
|
-
this.
|
|
2709
|
-
this.
|
|
2702
|
+
this.g6q_1 = roundNumber;
|
|
2703
|
+
this.h6q_1 = points;
|
|
2704
|
+
this.i6q_1 = roundContractState;
|
|
2705
|
+
this.j6q_1 = roundCommitted;
|
|
2706
|
+
this.k6q_1 = roundWinners;
|
|
2707
|
+
this.l6q_1 = id;
|
|
2708
|
+
this.m6q_1 = isShowing;
|
|
2709
|
+
this.n6q_1 = createdAt;
|
|
2710
2710
|
}
|
|
2711
2711
|
protoOf(PreviousRoundPointsMessage).toString = function () {
|
|
2712
|
-
return 'PreviousRoundPointsMessage(roundNumber=' + this.
|
|
2712
|
+
return 'PreviousRoundPointsMessage(roundNumber=' + this.g6q_1 + ', points=' + toString(this.h6q_1) + ', roundContractState=' + this.i6q_1.toString() + ', roundCommitted=' + toString(this.j6q_1) + ', roundWinners=' + toString(this.k6q_1) + ', id=' + this.l6q_1 + ', isShowing=' + this.m6q_1 + ', createdAt=' + this.n6q_1.toString() + ')';
|
|
2713
2713
|
};
|
|
2714
2714
|
protoOf(PreviousRoundPointsMessage).hashCode = function () {
|
|
2715
|
-
var result = this.
|
|
2716
|
-
result = imul(result, 31) + hashCode(this.
|
|
2717
|
-
result = imul(result, 31) + this.
|
|
2718
|
-
result = imul(result, 31) + hashCode(this.i6q_1) | 0;
|
|
2715
|
+
var result = this.g6q_1;
|
|
2716
|
+
result = imul(result, 31) + hashCode(this.h6q_1) | 0;
|
|
2717
|
+
result = imul(result, 31) + this.i6q_1.hashCode() | 0;
|
|
2719
2718
|
result = imul(result, 31) + hashCode(this.j6q_1) | 0;
|
|
2720
|
-
result = imul(result, 31) +
|
|
2721
|
-
result = imul(result, 31) +
|
|
2722
|
-
result = imul(result, 31) + this.m6q_1
|
|
2719
|
+
result = imul(result, 31) + hashCode(this.k6q_1) | 0;
|
|
2720
|
+
result = imul(result, 31) + getStringHashCode(this.l6q_1) | 0;
|
|
2721
|
+
result = imul(result, 31) + getBooleanHashCode(this.m6q_1) | 0;
|
|
2722
|
+
result = imul(result, 31) + this.n6q_1.hashCode() | 0;
|
|
2723
2723
|
return result;
|
|
2724
2724
|
};
|
|
2725
2725
|
protoOf(PreviousRoundPointsMessage).equals = function (other) {
|
|
@@ -2728,34 +2728,34 @@
|
|
|
2728
2728
|
if (!(other instanceof PreviousRoundPointsMessage))
|
|
2729
2729
|
return false;
|
|
2730
2730
|
var tmp0_other_with_cast = other instanceof PreviousRoundPointsMessage ? other : THROW_CCE();
|
|
2731
|
-
if (!(this.
|
|
2732
|
-
return false;
|
|
2733
|
-
if (!equals(this.g6q_1, tmp0_other_with_cast.g6q_1))
|
|
2731
|
+
if (!(this.g6q_1 === tmp0_other_with_cast.g6q_1))
|
|
2734
2732
|
return false;
|
|
2735
|
-
if (!this.h6q_1
|
|
2733
|
+
if (!equals(this.h6q_1, tmp0_other_with_cast.h6q_1))
|
|
2736
2734
|
return false;
|
|
2737
|
-
if (!
|
|
2735
|
+
if (!this.i6q_1.equals(tmp0_other_with_cast.i6q_1))
|
|
2738
2736
|
return false;
|
|
2739
2737
|
if (!equals(this.j6q_1, tmp0_other_with_cast.j6q_1))
|
|
2740
2738
|
return false;
|
|
2741
|
-
if (!(this.k6q_1
|
|
2739
|
+
if (!equals(this.k6q_1, tmp0_other_with_cast.k6q_1))
|
|
2742
2740
|
return false;
|
|
2743
2741
|
if (!(this.l6q_1 === tmp0_other_with_cast.l6q_1))
|
|
2744
2742
|
return false;
|
|
2745
|
-
if (!this.m6q_1
|
|
2743
|
+
if (!(this.m6q_1 === tmp0_other_with_cast.m6q_1))
|
|
2744
|
+
return false;
|
|
2745
|
+
if (!this.n6q_1.equals(tmp0_other_with_cast.n6q_1))
|
|
2746
2746
|
return false;
|
|
2747
2747
|
return true;
|
|
2748
2748
|
};
|
|
2749
2749
|
function PointItemViewModel(users, points) {
|
|
2750
|
-
this.
|
|
2751
|
-
this.
|
|
2750
|
+
this.o6q_1 = users;
|
|
2751
|
+
this.p6q_1 = points;
|
|
2752
2752
|
}
|
|
2753
2753
|
protoOf(PointItemViewModel).toString = function () {
|
|
2754
|
-
return 'PointItemViewModel(users=' + toString(this.
|
|
2754
|
+
return 'PointItemViewModel(users=' + toString(this.o6q_1) + ', points=' + this.p6q_1 + ')';
|
|
2755
2755
|
};
|
|
2756
2756
|
protoOf(PointItemViewModel).hashCode = function () {
|
|
2757
|
-
var result = hashCode(this.
|
|
2758
|
-
result = imul(result, 31) + this.
|
|
2757
|
+
var result = hashCode(this.o6q_1);
|
|
2758
|
+
result = imul(result, 31) + this.p6q_1 | 0;
|
|
2759
2759
|
return result;
|
|
2760
2760
|
};
|
|
2761
2761
|
protoOf(PointItemViewModel).equals = function (other) {
|
|
@@ -2764,27 +2764,27 @@
|
|
|
2764
2764
|
if (!(other instanceof PointItemViewModel))
|
|
2765
2765
|
return false;
|
|
2766
2766
|
var tmp0_other_with_cast = other instanceof PointItemViewModel ? other : THROW_CCE();
|
|
2767
|
-
if (!equals(this.
|
|
2767
|
+
if (!equals(this.o6q_1, tmp0_other_with_cast.o6q_1))
|
|
2768
2768
|
return false;
|
|
2769
|
-
if (!(this.
|
|
2769
|
+
if (!(this.p6q_1 === tmp0_other_with_cast.p6q_1))
|
|
2770
2770
|
return false;
|
|
2771
2771
|
return true;
|
|
2772
2772
|
};
|
|
2773
2773
|
function RandomSignatureMessage(randomData, id, isShowing, createdAt) {
|
|
2774
2774
|
isShowing = isShowing === VOID ? true : isShowing;
|
|
2775
|
-
this.
|
|
2776
|
-
this.
|
|
2777
|
-
this.
|
|
2778
|
-
this.
|
|
2775
|
+
this.q6q_1 = randomData;
|
|
2776
|
+
this.r6q_1 = id;
|
|
2777
|
+
this.s6q_1 = isShowing;
|
|
2778
|
+
this.t6q_1 = createdAt;
|
|
2779
2779
|
}
|
|
2780
2780
|
protoOf(RandomSignatureMessage).toString = function () {
|
|
2781
|
-
return 'RandomSignatureMessage(randomData=' + this.
|
|
2781
|
+
return 'RandomSignatureMessage(randomData=' + this.q6q_1.toString() + ', id=' + this.r6q_1 + ', isShowing=' + this.s6q_1 + ', createdAt=' + this.t6q_1.toString() + ')';
|
|
2782
2782
|
};
|
|
2783
2783
|
protoOf(RandomSignatureMessage).hashCode = function () {
|
|
2784
|
-
var result = this.
|
|
2785
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2786
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2787
|
-
result = imul(result, 31) + this.
|
|
2784
|
+
var result = this.q6q_1.hashCode();
|
|
2785
|
+
result = imul(result, 31) + getStringHashCode(this.r6q_1) | 0;
|
|
2786
|
+
result = imul(result, 31) + getBooleanHashCode(this.s6q_1) | 0;
|
|
2787
|
+
result = imul(result, 31) + this.t6q_1.hashCode() | 0;
|
|
2788
2788
|
return result;
|
|
2789
2789
|
};
|
|
2790
2790
|
protoOf(RandomSignatureMessage).equals = function (other) {
|
|
@@ -2793,20 +2793,20 @@
|
|
|
2793
2793
|
if (!(other instanceof RandomSignatureMessage))
|
|
2794
2794
|
return false;
|
|
2795
2795
|
var tmp0_other_with_cast = other instanceof RandomSignatureMessage ? other : THROW_CCE();
|
|
2796
|
-
if (!this.
|
|
2797
|
-
return false;
|
|
2798
|
-
if (!(this.q6q_1 === tmp0_other_with_cast.q6q_1))
|
|
2796
|
+
if (!this.q6q_1.equals(tmp0_other_with_cast.q6q_1))
|
|
2799
2797
|
return false;
|
|
2800
2798
|
if (!(this.r6q_1 === tmp0_other_with_cast.r6q_1))
|
|
2801
2799
|
return false;
|
|
2802
|
-
if (!this.s6q_1
|
|
2800
|
+
if (!(this.s6q_1 === tmp0_other_with_cast.s6q_1))
|
|
2801
|
+
return false;
|
|
2802
|
+
if (!this.t6q_1.equals(tmp0_other_with_cast.t6q_1))
|
|
2803
2803
|
return false;
|
|
2804
2804
|
return true;
|
|
2805
2805
|
};
|
|
2806
2806
|
function Companion_7() {
|
|
2807
|
-
this.
|
|
2807
|
+
this.u6q_1 = 500;
|
|
2808
2808
|
}
|
|
2809
|
-
protoOf(Companion_7).
|
|
2809
|
+
protoOf(Companion_7).v6q = function () {
|
|
2810
2810
|
var tmp1_createdAt = System_instance.i52();
|
|
2811
2811
|
return new ServiceMessage(500, 'UNKNOWN', VOID, tmp1_createdAt);
|
|
2812
2812
|
};
|
|
@@ -2816,19 +2816,19 @@
|
|
|
2816
2816
|
}
|
|
2817
2817
|
function ServiceMessage(code, id, isShowing, createdAt) {
|
|
2818
2818
|
isShowing = isShowing === VOID ? true : isShowing;
|
|
2819
|
-
this.
|
|
2820
|
-
this.
|
|
2821
|
-
this.
|
|
2822
|
-
this.
|
|
2819
|
+
this.w6q_1 = code;
|
|
2820
|
+
this.x6q_1 = id;
|
|
2821
|
+
this.y6q_1 = isShowing;
|
|
2822
|
+
this.z6q_1 = createdAt;
|
|
2823
2823
|
}
|
|
2824
2824
|
protoOf(ServiceMessage).toString = function () {
|
|
2825
|
-
return 'ServiceMessage(code=' + this.
|
|
2825
|
+
return 'ServiceMessage(code=' + this.w6q_1 + ', id=' + this.x6q_1 + ', isShowing=' + this.y6q_1 + ', createdAt=' + this.z6q_1.toString() + ')';
|
|
2826
2826
|
};
|
|
2827
2827
|
protoOf(ServiceMessage).hashCode = function () {
|
|
2828
|
-
var result = this.
|
|
2829
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2830
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2831
|
-
result = imul(result, 31) + this.
|
|
2828
|
+
var result = this.w6q_1;
|
|
2829
|
+
result = imul(result, 31) + getStringHashCode(this.x6q_1) | 0;
|
|
2830
|
+
result = imul(result, 31) + getBooleanHashCode(this.y6q_1) | 0;
|
|
2831
|
+
result = imul(result, 31) + this.z6q_1.hashCode() | 0;
|
|
2832
2832
|
return result;
|
|
2833
2833
|
};
|
|
2834
2834
|
protoOf(ServiceMessage).equals = function (other) {
|
|
@@ -2837,37 +2837,37 @@
|
|
|
2837
2837
|
if (!(other instanceof ServiceMessage))
|
|
2838
2838
|
return false;
|
|
2839
2839
|
var tmp0_other_with_cast = other instanceof ServiceMessage ? other : THROW_CCE();
|
|
2840
|
-
if (!(this.v6q_1 === tmp0_other_with_cast.v6q_1))
|
|
2841
|
-
return false;
|
|
2842
2840
|
if (!(this.w6q_1 === tmp0_other_with_cast.w6q_1))
|
|
2843
2841
|
return false;
|
|
2844
2842
|
if (!(this.x6q_1 === tmp0_other_with_cast.x6q_1))
|
|
2845
2843
|
return false;
|
|
2846
|
-
if (!this.y6q_1
|
|
2844
|
+
if (!(this.y6q_1 === tmp0_other_with_cast.y6q_1))
|
|
2845
|
+
return false;
|
|
2846
|
+
if (!this.z6q_1.equals(tmp0_other_with_cast.z6q_1))
|
|
2847
2847
|
return false;
|
|
2848
2848
|
return true;
|
|
2849
2849
|
};
|
|
2850
2850
|
function UserMessage() {
|
|
2851
2851
|
}
|
|
2852
2852
|
function WhoShuffleCardsMessage(trumpCard, id, userInfo, isShowing, createdAt) {
|
|
2853
|
-
this.
|
|
2854
|
-
this.
|
|
2855
|
-
this.
|
|
2856
|
-
this.
|
|
2857
|
-
this.
|
|
2853
|
+
this.b6r_1 = trumpCard;
|
|
2854
|
+
this.c6r_1 = id;
|
|
2855
|
+
this.d6r_1 = userInfo;
|
|
2856
|
+
this.e6r_1 = isShowing;
|
|
2857
|
+
this.f6r_1 = createdAt;
|
|
2858
2858
|
}
|
|
2859
|
-
protoOf(WhoShuffleCardsMessage).
|
|
2860
|
-
return this.
|
|
2859
|
+
protoOf(WhoShuffleCardsMessage).a6r = function () {
|
|
2860
|
+
return this.d6r_1;
|
|
2861
2861
|
};
|
|
2862
2862
|
protoOf(WhoShuffleCardsMessage).toString = function () {
|
|
2863
|
-
return 'WhoShuffleCardsMessage(trumpCard=' + toString_0(this.
|
|
2863
|
+
return 'WhoShuffleCardsMessage(trumpCard=' + toString_0(this.b6r_1) + ', id=' + this.c6r_1 + ', userInfo=' + this.d6r_1.toString() + ', isShowing=' + this.e6r_1 + ', createdAt=' + this.f6r_1.toString() + ')';
|
|
2864
2864
|
};
|
|
2865
2865
|
protoOf(WhoShuffleCardsMessage).hashCode = function () {
|
|
2866
|
-
var result = this.
|
|
2867
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2868
|
-
result = imul(result, 31) + this.
|
|
2869
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2870
|
-
result = imul(result, 31) + this.
|
|
2866
|
+
var result = this.b6r_1 == null ? 0 : this.b6r_1.hashCode();
|
|
2867
|
+
result = imul(result, 31) + getStringHashCode(this.c6r_1) | 0;
|
|
2868
|
+
result = imul(result, 31) + this.d6r_1.hashCode() | 0;
|
|
2869
|
+
result = imul(result, 31) + getBooleanHashCode(this.e6r_1) | 0;
|
|
2870
|
+
result = imul(result, 31) + this.f6r_1.hashCode() | 0;
|
|
2871
2871
|
return result;
|
|
2872
2872
|
};
|
|
2873
2873
|
protoOf(WhoShuffleCardsMessage).equals = function (other) {
|
|
@@ -2876,38 +2876,38 @@
|
|
|
2876
2876
|
if (!(other instanceof WhoShuffleCardsMessage))
|
|
2877
2877
|
return false;
|
|
2878
2878
|
var tmp0_other_with_cast = other instanceof WhoShuffleCardsMessage ? other : THROW_CCE();
|
|
2879
|
-
if (!equals(this.
|
|
2879
|
+
if (!equals(this.b6r_1, tmp0_other_with_cast.b6r_1))
|
|
2880
2880
|
return false;
|
|
2881
|
-
if (!(this.
|
|
2881
|
+
if (!(this.c6r_1 === tmp0_other_with_cast.c6r_1))
|
|
2882
2882
|
return false;
|
|
2883
|
-
if (!this.
|
|
2883
|
+
if (!this.d6r_1.equals(tmp0_other_with_cast.d6r_1))
|
|
2884
2884
|
return false;
|
|
2885
|
-
if (!(this.
|
|
2885
|
+
if (!(this.e6r_1 === tmp0_other_with_cast.e6r_1))
|
|
2886
2886
|
return false;
|
|
2887
|
-
if (!this.
|
|
2887
|
+
if (!this.f6r_1.equals(tmp0_other_with_cast.f6r_1))
|
|
2888
2888
|
return false;
|
|
2889
2889
|
return true;
|
|
2890
2890
|
};
|
|
2891
2891
|
function AnnouncedCombinationMessage(combinationTypes, id, userInfo, isShowing, createdAt) {
|
|
2892
2892
|
isShowing = isShowing === VOID ? true : isShowing;
|
|
2893
|
-
this.
|
|
2894
|
-
this.
|
|
2895
|
-
this.
|
|
2896
|
-
this.
|
|
2897
|
-
this.
|
|
2893
|
+
this.g6r_1 = combinationTypes;
|
|
2894
|
+
this.h6r_1 = id;
|
|
2895
|
+
this.i6r_1 = userInfo;
|
|
2896
|
+
this.j6r_1 = isShowing;
|
|
2897
|
+
this.k6r_1 = createdAt;
|
|
2898
2898
|
}
|
|
2899
|
-
protoOf(AnnouncedCombinationMessage).
|
|
2900
|
-
return this.
|
|
2899
|
+
protoOf(AnnouncedCombinationMessage).a6r = function () {
|
|
2900
|
+
return this.i6r_1;
|
|
2901
2901
|
};
|
|
2902
2902
|
protoOf(AnnouncedCombinationMessage).toString = function () {
|
|
2903
|
-
return 'AnnouncedCombinationMessage(combinationTypes=' + toString(this.
|
|
2903
|
+
return 'AnnouncedCombinationMessage(combinationTypes=' + toString(this.g6r_1) + ', id=' + this.h6r_1 + ', userInfo=' + this.i6r_1.toString() + ', isShowing=' + this.j6r_1 + ', createdAt=' + this.k6r_1.toString() + ')';
|
|
2904
2904
|
};
|
|
2905
2905
|
protoOf(AnnouncedCombinationMessage).hashCode = function () {
|
|
2906
|
-
var result = hashCode(this.
|
|
2907
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2908
|
-
result = imul(result, 31) + this.
|
|
2909
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2910
|
-
result = imul(result, 31) + this.
|
|
2906
|
+
var result = hashCode(this.g6r_1);
|
|
2907
|
+
result = imul(result, 31) + getStringHashCode(this.h6r_1) | 0;
|
|
2908
|
+
result = imul(result, 31) + this.i6r_1.hashCode() | 0;
|
|
2909
|
+
result = imul(result, 31) + getBooleanHashCode(this.j6r_1) | 0;
|
|
2910
|
+
result = imul(result, 31) + this.k6r_1.hashCode() | 0;
|
|
2911
2911
|
return result;
|
|
2912
2912
|
};
|
|
2913
2913
|
protoOf(AnnouncedCombinationMessage).equals = function (other) {
|
|
@@ -2916,15 +2916,15 @@
|
|
|
2916
2916
|
if (!(other instanceof AnnouncedCombinationMessage))
|
|
2917
2917
|
return false;
|
|
2918
2918
|
var tmp0_other_with_cast = other instanceof AnnouncedCombinationMessage ? other : THROW_CCE();
|
|
2919
|
-
if (!equals(this.
|
|
2919
|
+
if (!equals(this.g6r_1, tmp0_other_with_cast.g6r_1))
|
|
2920
2920
|
return false;
|
|
2921
|
-
if (!(this.
|
|
2921
|
+
if (!(this.h6r_1 === tmp0_other_with_cast.h6r_1))
|
|
2922
2922
|
return false;
|
|
2923
|
-
if (!this.
|
|
2923
|
+
if (!this.i6r_1.equals(tmp0_other_with_cast.i6r_1))
|
|
2924
2924
|
return false;
|
|
2925
|
-
if (!(this.
|
|
2925
|
+
if (!(this.j6r_1 === tmp0_other_with_cast.j6r_1))
|
|
2926
2926
|
return false;
|
|
2927
|
-
if (!this.
|
|
2927
|
+
if (!this.k6r_1.equals(tmp0_other_with_cast.k6r_1))
|
|
2928
2928
|
return false;
|
|
2929
2929
|
return true;
|
|
2930
2930
|
};
|
|
@@ -3005,19 +3005,19 @@
|
|
|
3005
3005
|
return CombinationReason_REJECTED_NOT_TRUMP_SEVEN_IN_ROW_COMBINATION_instance;
|
|
3006
3006
|
}
|
|
3007
3007
|
function WinnerCombinationsMessage(combinations, id, isShowing, createdAt) {
|
|
3008
|
-
this.
|
|
3009
|
-
this.
|
|
3010
|
-
this.
|
|
3011
|
-
this.
|
|
3008
|
+
this.n6r_1 = combinations;
|
|
3009
|
+
this.o6r_1 = id;
|
|
3010
|
+
this.p6r_1 = isShowing;
|
|
3011
|
+
this.q6r_1 = createdAt;
|
|
3012
3012
|
}
|
|
3013
3013
|
protoOf(WinnerCombinationsMessage).toString = function () {
|
|
3014
|
-
return 'WinnerCombinationsMessage(combinations=' + toString(this.
|
|
3014
|
+
return 'WinnerCombinationsMessage(combinations=' + toString(this.n6r_1) + ', id=' + this.o6r_1 + ', isShowing=' + this.p6r_1 + ', createdAt=' + this.q6r_1.toString() + ')';
|
|
3015
3015
|
};
|
|
3016
3016
|
protoOf(WinnerCombinationsMessage).hashCode = function () {
|
|
3017
|
-
var result = hashCode(this.
|
|
3018
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3019
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3020
|
-
result = imul(result, 31) + this.
|
|
3017
|
+
var result = hashCode(this.n6r_1);
|
|
3018
|
+
result = imul(result, 31) + getStringHashCode(this.o6r_1) | 0;
|
|
3019
|
+
result = imul(result, 31) + getBooleanHashCode(this.p6r_1) | 0;
|
|
3020
|
+
result = imul(result, 31) + this.q6r_1.hashCode() | 0;
|
|
3021
3021
|
return result;
|
|
3022
3022
|
};
|
|
3023
3023
|
protoOf(WinnerCombinationsMessage).equals = function (other) {
|
|
@@ -3026,28 +3026,28 @@
|
|
|
3026
3026
|
if (!(other instanceof WinnerCombinationsMessage))
|
|
3027
3027
|
return false;
|
|
3028
3028
|
var tmp0_other_with_cast = other instanceof WinnerCombinationsMessage ? other : THROW_CCE();
|
|
3029
|
-
if (!equals(this.
|
|
3030
|
-
return false;
|
|
3031
|
-
if (!(this.n6r_1 === tmp0_other_with_cast.n6r_1))
|
|
3029
|
+
if (!equals(this.n6r_1, tmp0_other_with_cast.n6r_1))
|
|
3032
3030
|
return false;
|
|
3033
3031
|
if (!(this.o6r_1 === tmp0_other_with_cast.o6r_1))
|
|
3034
3032
|
return false;
|
|
3035
|
-
if (!this.p6r_1
|
|
3033
|
+
if (!(this.p6r_1 === tmp0_other_with_cast.p6r_1))
|
|
3034
|
+
return false;
|
|
3035
|
+
if (!this.q6r_1.equals(tmp0_other_with_cast.q6r_1))
|
|
3036
3036
|
return false;
|
|
3037
3037
|
return true;
|
|
3038
3038
|
};
|
|
3039
3039
|
function WinnerCombinationsViewModel(reason, combinations, userInfo) {
|
|
3040
|
-
this.
|
|
3041
|
-
this.
|
|
3042
|
-
this.
|
|
3040
|
+
this.r6r_1 = reason;
|
|
3041
|
+
this.s6r_1 = combinations;
|
|
3042
|
+
this.t6r_1 = userInfo;
|
|
3043
3043
|
}
|
|
3044
3044
|
protoOf(WinnerCombinationsViewModel).toString = function () {
|
|
3045
|
-
return 'WinnerCombinationsViewModel(reason=' + this.
|
|
3045
|
+
return 'WinnerCombinationsViewModel(reason=' + this.r6r_1 + ', combinations=' + toString(this.s6r_1) + ', userInfo=' + this.t6r_1.toString() + ')';
|
|
3046
3046
|
};
|
|
3047
3047
|
protoOf(WinnerCombinationsViewModel).hashCode = function () {
|
|
3048
|
-
var result = getStringHashCode(this.
|
|
3049
|
-
result = imul(result, 31) + hashCode(this.
|
|
3050
|
-
result = imul(result, 31) + this.
|
|
3048
|
+
var result = getStringHashCode(this.r6r_1);
|
|
3049
|
+
result = imul(result, 31) + hashCode(this.s6r_1) | 0;
|
|
3050
|
+
result = imul(result, 31) + this.t6r_1.hashCode() | 0;
|
|
3051
3051
|
return result;
|
|
3052
3052
|
};
|
|
3053
3053
|
protoOf(WinnerCombinationsViewModel).equals = function (other) {
|
|
@@ -3056,34 +3056,34 @@
|
|
|
3056
3056
|
if (!(other instanceof WinnerCombinationsViewModel))
|
|
3057
3057
|
return false;
|
|
3058
3058
|
var tmp0_other_with_cast = other instanceof WinnerCombinationsViewModel ? other : THROW_CCE();
|
|
3059
|
-
if (!(this.
|
|
3059
|
+
if (!(this.r6r_1 === tmp0_other_with_cast.r6r_1))
|
|
3060
3060
|
return false;
|
|
3061
|
-
if (!equals(this.
|
|
3061
|
+
if (!equals(this.s6r_1, tmp0_other_with_cast.s6r_1))
|
|
3062
3062
|
return false;
|
|
3063
|
-
if (!this.
|
|
3063
|
+
if (!this.t6r_1.equals(tmp0_other_with_cast.t6r_1))
|
|
3064
3064
|
return false;
|
|
3065
3065
|
return true;
|
|
3066
3066
|
};
|
|
3067
3067
|
function PhraseMessage(key, id, userInfo, isShowing, createdAt) {
|
|
3068
3068
|
isShowing = isShowing === VOID ? true : isShowing;
|
|
3069
|
-
this.
|
|
3070
|
-
this.
|
|
3071
|
-
this.
|
|
3072
|
-
this.
|
|
3073
|
-
this.
|
|
3069
|
+
this.u6r_1 = key;
|
|
3070
|
+
this.v6r_1 = id;
|
|
3071
|
+
this.w6r_1 = userInfo;
|
|
3072
|
+
this.x6r_1 = isShowing;
|
|
3073
|
+
this.y6r_1 = createdAt;
|
|
3074
3074
|
}
|
|
3075
|
-
protoOf(PhraseMessage).
|
|
3076
|
-
return this.
|
|
3075
|
+
protoOf(PhraseMessage).a6r = function () {
|
|
3076
|
+
return this.w6r_1;
|
|
3077
3077
|
};
|
|
3078
3078
|
protoOf(PhraseMessage).toString = function () {
|
|
3079
|
-
return 'PhraseMessage(key=' + this.
|
|
3079
|
+
return 'PhraseMessage(key=' + this.u6r_1 + ', id=' + this.v6r_1 + ', userInfo=' + this.w6r_1.toString() + ', isShowing=' + this.x6r_1 + ', createdAt=' + this.y6r_1.toString() + ')';
|
|
3080
3080
|
};
|
|
3081
3081
|
protoOf(PhraseMessage).hashCode = function () {
|
|
3082
|
-
var result = getStringHashCode(this.
|
|
3083
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3084
|
-
result = imul(result, 31) + this.
|
|
3085
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3086
|
-
result = imul(result, 31) + this.
|
|
3082
|
+
var result = getStringHashCode(this.u6r_1);
|
|
3083
|
+
result = imul(result, 31) + getStringHashCode(this.v6r_1) | 0;
|
|
3084
|
+
result = imul(result, 31) + this.w6r_1.hashCode() | 0;
|
|
3085
|
+
result = imul(result, 31) + getBooleanHashCode(this.x6r_1) | 0;
|
|
3086
|
+
result = imul(result, 31) + this.y6r_1.hashCode() | 0;
|
|
3087
3087
|
return result;
|
|
3088
3088
|
};
|
|
3089
3089
|
protoOf(PhraseMessage).equals = function (other) {
|
|
@@ -3092,38 +3092,38 @@
|
|
|
3092
3092
|
if (!(other instanceof PhraseMessage))
|
|
3093
3093
|
return false;
|
|
3094
3094
|
var tmp0_other_with_cast = other instanceof PhraseMessage ? other : THROW_CCE();
|
|
3095
|
-
if (!(this.t6r_1 === tmp0_other_with_cast.t6r_1))
|
|
3096
|
-
return false;
|
|
3097
3095
|
if (!(this.u6r_1 === tmp0_other_with_cast.u6r_1))
|
|
3098
3096
|
return false;
|
|
3099
|
-
if (!this.v6r_1
|
|
3097
|
+
if (!(this.v6r_1 === tmp0_other_with_cast.v6r_1))
|
|
3098
|
+
return false;
|
|
3099
|
+
if (!this.w6r_1.equals(tmp0_other_with_cast.w6r_1))
|
|
3100
3100
|
return false;
|
|
3101
|
-
if (!(this.
|
|
3101
|
+
if (!(this.x6r_1 === tmp0_other_with_cast.x6r_1))
|
|
3102
3102
|
return false;
|
|
3103
|
-
if (!this.
|
|
3103
|
+
if (!this.y6r_1.equals(tmp0_other_with_cast.y6r_1))
|
|
3104
3104
|
return false;
|
|
3105
3105
|
return true;
|
|
3106
3106
|
};
|
|
3107
3107
|
function StickerMessage(url, id, userInfo, isShowing, createdAt) {
|
|
3108
3108
|
isShowing = isShowing === VOID ? true : isShowing;
|
|
3109
|
-
this.
|
|
3110
|
-
this.
|
|
3111
|
-
this.
|
|
3112
|
-
this.
|
|
3113
|
-
this.
|
|
3109
|
+
this.z6r_1 = url;
|
|
3110
|
+
this.a6s_1 = id;
|
|
3111
|
+
this.b6s_1 = userInfo;
|
|
3112
|
+
this.c6s_1 = isShowing;
|
|
3113
|
+
this.d6s_1 = createdAt;
|
|
3114
3114
|
}
|
|
3115
|
-
protoOf(StickerMessage).
|
|
3116
|
-
return this.
|
|
3115
|
+
protoOf(StickerMessage).a6r = function () {
|
|
3116
|
+
return this.b6s_1;
|
|
3117
3117
|
};
|
|
3118
3118
|
protoOf(StickerMessage).toString = function () {
|
|
3119
|
-
return 'StickerMessage(url=' + this.
|
|
3119
|
+
return 'StickerMessage(url=' + this.z6r_1 + ', id=' + this.a6s_1 + ', userInfo=' + this.b6s_1.toString() + ', isShowing=' + this.c6s_1 + ', createdAt=' + this.d6s_1.toString() + ')';
|
|
3120
3120
|
};
|
|
3121
3121
|
protoOf(StickerMessage).hashCode = function () {
|
|
3122
|
-
var result = getStringHashCode(this.
|
|
3123
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3124
|
-
result = imul(result, 31) + this.
|
|
3125
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3126
|
-
result = imul(result, 31) + this.
|
|
3122
|
+
var result = getStringHashCode(this.z6r_1);
|
|
3123
|
+
result = imul(result, 31) + getStringHashCode(this.a6s_1) | 0;
|
|
3124
|
+
result = imul(result, 31) + this.b6s_1.hashCode() | 0;
|
|
3125
|
+
result = imul(result, 31) + getBooleanHashCode(this.c6s_1) | 0;
|
|
3126
|
+
result = imul(result, 31) + this.d6s_1.hashCode() | 0;
|
|
3127
3127
|
return result;
|
|
3128
3128
|
};
|
|
3129
3129
|
protoOf(StickerMessage).equals = function (other) {
|
|
@@ -3132,37 +3132,37 @@
|
|
|
3132
3132
|
if (!(other instanceof StickerMessage))
|
|
3133
3133
|
return false;
|
|
3134
3134
|
var tmp0_other_with_cast = other instanceof StickerMessage ? other : THROW_CCE();
|
|
3135
|
-
if (!(this.y6r_1 === tmp0_other_with_cast.y6r_1))
|
|
3136
|
-
return false;
|
|
3137
3135
|
if (!(this.z6r_1 === tmp0_other_with_cast.z6r_1))
|
|
3138
3136
|
return false;
|
|
3139
|
-
if (!this.a6s_1
|
|
3137
|
+
if (!(this.a6s_1 === tmp0_other_with_cast.a6s_1))
|
|
3140
3138
|
return false;
|
|
3141
|
-
if (!
|
|
3139
|
+
if (!this.b6s_1.equals(tmp0_other_with_cast.b6s_1))
|
|
3142
3140
|
return false;
|
|
3143
|
-
if (!this.c6s_1
|
|
3141
|
+
if (!(this.c6s_1 === tmp0_other_with_cast.c6s_1))
|
|
3142
|
+
return false;
|
|
3143
|
+
if (!this.d6s_1.equals(tmp0_other_with_cast.d6s_1))
|
|
3144
3144
|
return false;
|
|
3145
3145
|
return true;
|
|
3146
3146
|
};
|
|
3147
3147
|
function TextMessage(message, id, userInfo, isShowing, createdAt) {
|
|
3148
|
-
this.
|
|
3149
|
-
this.
|
|
3150
|
-
this.
|
|
3151
|
-
this.
|
|
3152
|
-
this.
|
|
3148
|
+
this.e6s_1 = message;
|
|
3149
|
+
this.f6s_1 = id;
|
|
3150
|
+
this.g6s_1 = userInfo;
|
|
3151
|
+
this.h6s_1 = isShowing;
|
|
3152
|
+
this.i6s_1 = createdAt;
|
|
3153
3153
|
}
|
|
3154
|
-
protoOf(TextMessage).
|
|
3155
|
-
return this.
|
|
3154
|
+
protoOf(TextMessage).a6r = function () {
|
|
3155
|
+
return this.g6s_1;
|
|
3156
3156
|
};
|
|
3157
3157
|
protoOf(TextMessage).toString = function () {
|
|
3158
|
-
return 'TextMessage(message=' + this.
|
|
3158
|
+
return 'TextMessage(message=' + this.e6s_1 + ', id=' + this.f6s_1 + ', userInfo=' + this.g6s_1.toString() + ', isShowing=' + this.h6s_1 + ', createdAt=' + this.i6s_1.toString() + ')';
|
|
3159
3159
|
};
|
|
3160
3160
|
protoOf(TextMessage).hashCode = function () {
|
|
3161
|
-
var result = getStringHashCode(this.
|
|
3162
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3163
|
-
result = imul(result, 31) + this.
|
|
3164
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3165
|
-
result = imul(result, 31) + this.
|
|
3161
|
+
var result = getStringHashCode(this.e6s_1);
|
|
3162
|
+
result = imul(result, 31) + getStringHashCode(this.f6s_1) | 0;
|
|
3163
|
+
result = imul(result, 31) + this.g6s_1.hashCode() | 0;
|
|
3164
|
+
result = imul(result, 31) + getBooleanHashCode(this.h6s_1) | 0;
|
|
3165
|
+
result = imul(result, 31) + this.i6s_1.hashCode() | 0;
|
|
3166
3166
|
return result;
|
|
3167
3167
|
};
|
|
3168
3168
|
protoOf(TextMessage).equals = function (other) {
|
|
@@ -3171,20 +3171,20 @@
|
|
|
3171
3171
|
if (!(other instanceof TextMessage))
|
|
3172
3172
|
return false;
|
|
3173
3173
|
var tmp0_other_with_cast = other instanceof TextMessage ? other : THROW_CCE();
|
|
3174
|
-
if (!(this.d6s_1 === tmp0_other_with_cast.d6s_1))
|
|
3175
|
-
return false;
|
|
3176
3174
|
if (!(this.e6s_1 === tmp0_other_with_cast.e6s_1))
|
|
3177
3175
|
return false;
|
|
3178
|
-
if (!this.f6s_1
|
|
3176
|
+
if (!(this.f6s_1 === tmp0_other_with_cast.f6s_1))
|
|
3177
|
+
return false;
|
|
3178
|
+
if (!this.g6s_1.equals(tmp0_other_with_cast.g6s_1))
|
|
3179
3179
|
return false;
|
|
3180
|
-
if (!(this.
|
|
3180
|
+
if (!(this.h6s_1 === tmp0_other_with_cast.h6s_1))
|
|
3181
3181
|
return false;
|
|
3182
|
-
if (!this.
|
|
3182
|
+
if (!this.i6s_1.equals(tmp0_other_with_cast.i6s_1))
|
|
3183
3183
|
return false;
|
|
3184
3184
|
return true;
|
|
3185
3185
|
};
|
|
3186
3186
|
function _get_$cachedSerializer__te6jhj_0($this) {
|
|
3187
|
-
return $this.
|
|
3187
|
+
return $this.j6s_1.u();
|
|
3188
3188
|
}
|
|
3189
3189
|
function ValidationCode$Companion$_anonymous__cymgvr() {
|
|
3190
3190
|
return createSimpleEnumSerializer('games.jass.logic.data.models.messages.validation.ValidationCode', values_3());
|
|
@@ -3200,7 +3200,7 @@
|
|
|
3200
3200
|
Companion_instance_13 = this;
|
|
3201
3201
|
var tmp = this;
|
|
3202
3202
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
3203
|
-
tmp.
|
|
3203
|
+
tmp.j6s_1 = lazy_0(tmp_0, ValidationCode$Companion$_anonymous__cymgvr);
|
|
3204
3204
|
}
|
|
3205
3205
|
protoOf(Companion_8).j4t = function () {
|
|
3206
3206
|
return _get_$cachedSerializer__te6jhj_0(this);
|
|
@@ -3247,19 +3247,19 @@
|
|
|
3247
3247
|
}
|
|
3248
3248
|
function ValidationMessage(validationCode, id, isShowing, createdAt) {
|
|
3249
3249
|
isShowing = isShowing === VOID ? true : isShowing;
|
|
3250
|
-
this.
|
|
3251
|
-
this.
|
|
3252
|
-
this.
|
|
3253
|
-
this.
|
|
3250
|
+
this.k6s_1 = validationCode;
|
|
3251
|
+
this.l6s_1 = id;
|
|
3252
|
+
this.m6s_1 = isShowing;
|
|
3253
|
+
this.n6s_1 = createdAt;
|
|
3254
3254
|
}
|
|
3255
3255
|
protoOf(ValidationMessage).toString = function () {
|
|
3256
|
-
return 'ValidationMessage(validationCode=' + this.
|
|
3256
|
+
return 'ValidationMessage(validationCode=' + this.k6s_1.toString() + ', id=' + this.l6s_1 + ', isShowing=' + this.m6s_1 + ', createdAt=' + this.n6s_1.toString() + ')';
|
|
3257
3257
|
};
|
|
3258
3258
|
protoOf(ValidationMessage).hashCode = function () {
|
|
3259
|
-
var result = this.
|
|
3260
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
3261
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
3262
|
-
result = imul(result, 31) + this.
|
|
3259
|
+
var result = this.k6s_1.hashCode();
|
|
3260
|
+
result = imul(result, 31) + getStringHashCode(this.l6s_1) | 0;
|
|
3261
|
+
result = imul(result, 31) + getBooleanHashCode(this.m6s_1) | 0;
|
|
3262
|
+
result = imul(result, 31) + this.n6s_1.hashCode() | 0;
|
|
3263
3263
|
return result;
|
|
3264
3264
|
};
|
|
3265
3265
|
protoOf(ValidationMessage).equals = function (other) {
|
|
@@ -3268,37 +3268,37 @@
|
|
|
3268
3268
|
if (!(other instanceof ValidationMessage))
|
|
3269
3269
|
return false;
|
|
3270
3270
|
var tmp0_other_with_cast = other instanceof ValidationMessage ? other : THROW_CCE();
|
|
3271
|
-
if (!this.
|
|
3272
|
-
return false;
|
|
3273
|
-
if (!(this.k6s_1 === tmp0_other_with_cast.k6s_1))
|
|
3271
|
+
if (!this.k6s_1.equals(tmp0_other_with_cast.k6s_1))
|
|
3274
3272
|
return false;
|
|
3275
3273
|
if (!(this.l6s_1 === tmp0_other_with_cast.l6s_1))
|
|
3276
3274
|
return false;
|
|
3277
|
-
if (!this.m6s_1
|
|
3275
|
+
if (!(this.m6s_1 === tmp0_other_with_cast.m6s_1))
|
|
3276
|
+
return false;
|
|
3277
|
+
if (!this.n6s_1.equals(tmp0_other_with_cast.n6s_1))
|
|
3278
3278
|
return false;
|
|
3279
3279
|
return true;
|
|
3280
3280
|
};
|
|
3281
3281
|
function ClientJassPlayer(userInfo, state, options, points, cards, amountOfCards) {
|
|
3282
|
-
this.
|
|
3283
|
-
this.
|
|
3284
|
-
this.
|
|
3285
|
-
this.
|
|
3286
|
-
this.
|
|
3287
|
-
this.
|
|
3282
|
+
this.o6s_1 = userInfo;
|
|
3283
|
+
this.p6s_1 = state;
|
|
3284
|
+
this.q6s_1 = options;
|
|
3285
|
+
this.r6s_1 = points;
|
|
3286
|
+
this.s6s_1 = cards;
|
|
3287
|
+
this.t6s_1 = amountOfCards;
|
|
3288
3288
|
}
|
|
3289
3289
|
protoOf(ClientJassPlayer).q66 = function () {
|
|
3290
|
-
return this.
|
|
3290
|
+
return this.o6s_1.f67_1;
|
|
3291
3291
|
};
|
|
3292
3292
|
protoOf(ClientJassPlayer).toString = function () {
|
|
3293
|
-
return 'ClientJassPlayer(userInfo=' + this.
|
|
3293
|
+
return 'ClientJassPlayer(userInfo=' + this.o6s_1.toString() + ', state=' + this.p6s_1.toString() + ', options=' + this.q6s_1.toString() + ', points=' + this.r6s_1.toString() + ', cards=' + toString_0(this.s6s_1) + ', amountOfCards=' + this.t6s_1 + ')';
|
|
3294
3294
|
};
|
|
3295
3295
|
protoOf(ClientJassPlayer).hashCode = function () {
|
|
3296
|
-
var result = this.
|
|
3297
|
-
result = imul(result, 31) + this.o6s_1.hashCode() | 0;
|
|
3296
|
+
var result = this.o6s_1.hashCode();
|
|
3298
3297
|
result = imul(result, 31) + this.p6s_1.hashCode() | 0;
|
|
3299
3298
|
result = imul(result, 31) + this.q6s_1.hashCode() | 0;
|
|
3300
|
-
result = imul(result, 31) +
|
|
3301
|
-
result = imul(result, 31) + (this.s6s_1 == null ? 0 : this.s6s_1) | 0;
|
|
3299
|
+
result = imul(result, 31) + this.r6s_1.hashCode() | 0;
|
|
3300
|
+
result = imul(result, 31) + (this.s6s_1 == null ? 0 : hashCode(this.s6s_1)) | 0;
|
|
3301
|
+
result = imul(result, 31) + (this.t6s_1 == null ? 0 : this.t6s_1) | 0;
|
|
3302
3302
|
return result;
|
|
3303
3303
|
};
|
|
3304
3304
|
protoOf(ClientJassPlayer).equals = function (other) {
|
|
@@ -3307,17 +3307,17 @@
|
|
|
3307
3307
|
if (!(other instanceof ClientJassPlayer))
|
|
3308
3308
|
return false;
|
|
3309
3309
|
var tmp0_other_with_cast = other instanceof ClientJassPlayer ? other : THROW_CCE();
|
|
3310
|
-
if (!this.n6s_1.equals(tmp0_other_with_cast.n6s_1))
|
|
3311
|
-
return false;
|
|
3312
3310
|
if (!this.o6s_1.equals(tmp0_other_with_cast.o6s_1))
|
|
3313
3311
|
return false;
|
|
3314
3312
|
if (!this.p6s_1.equals(tmp0_other_with_cast.p6s_1))
|
|
3315
3313
|
return false;
|
|
3316
3314
|
if (!this.q6s_1.equals(tmp0_other_with_cast.q6s_1))
|
|
3317
3315
|
return false;
|
|
3318
|
-
if (!
|
|
3316
|
+
if (!this.r6s_1.equals(tmp0_other_with_cast.r6s_1))
|
|
3317
|
+
return false;
|
|
3318
|
+
if (!equals(this.s6s_1, tmp0_other_with_cast.s6s_1))
|
|
3319
3319
|
return false;
|
|
3320
|
-
if (!(this.
|
|
3320
|
+
if (!(this.t6s_1 == tmp0_other_with_cast.t6s_1))
|
|
3321
3321
|
return false;
|
|
3322
3322
|
return true;
|
|
3323
3323
|
};
|
|
@@ -3364,13 +3364,13 @@
|
|
|
3364
3364
|
var playerNumberComparator;
|
|
3365
3365
|
function Companion_9() {
|
|
3366
3366
|
}
|
|
3367
|
-
protoOf(Companion_9).
|
|
3367
|
+
protoOf(Companion_9).u6s = function (userInfo, playerNumber, isGameCreator, isShuffleCards, state, hand) {
|
|
3368
3368
|
return new JassPlayer(userInfo, state, VOID, new PlayerOptions(isGameCreator, playerNumber, VOID, isShuffleCards), hand);
|
|
3369
3369
|
};
|
|
3370
|
-
protoOf(Companion_9).
|
|
3370
|
+
protoOf(Companion_9).v6s = function (userInfo, playerNumber, isGameCreator, isShuffleCards, state, hand, $super) {
|
|
3371
3371
|
isShuffleCards = isShuffleCards === VOID ? false : isShuffleCards;
|
|
3372
3372
|
hand = hand === VOID ? new PlayerHand() : hand;
|
|
3373
|
-
return $super === VOID ? this.
|
|
3373
|
+
return $super === VOID ? this.u6s(userInfo, playerNumber, isGameCreator, isShuffleCards, state, hand) : $super.u6s.call(this, userInfo, playerNumber, isGameCreator, isShuffleCards, state, hand);
|
|
3374
3374
|
};
|
|
3375
3375
|
var Companion_instance_14;
|
|
3376
3376
|
function Companion_getInstance_16() {
|
|
@@ -3380,68 +3380,68 @@
|
|
|
3380
3380
|
cards = cards === VOID ? emptyList() : cards;
|
|
3381
3381
|
hand = hand === VOID ? new PlayerHand() : hand;
|
|
3382
3382
|
points = points === VOID ? new PlayerPoints() : points;
|
|
3383
|
-
this.
|
|
3384
|
-
this.
|
|
3385
|
-
this.
|
|
3386
|
-
this.
|
|
3387
|
-
this.
|
|
3388
|
-
this.
|
|
3383
|
+
this.w6s_1 = userInfo;
|
|
3384
|
+
this.x6s_1 = state;
|
|
3385
|
+
this.y6s_1 = cards;
|
|
3386
|
+
this.z6s_1 = options;
|
|
3387
|
+
this.a6t_1 = hand;
|
|
3388
|
+
this.b6t_1 = points;
|
|
3389
3389
|
}
|
|
3390
3390
|
protoOf(JassPlayer).p67 = function () {
|
|
3391
|
-
return this.
|
|
3391
|
+
return this.x6s_1;
|
|
3392
3392
|
};
|
|
3393
3393
|
protoOf(JassPlayer).m5j = function () {
|
|
3394
|
-
return this.
|
|
3394
|
+
return this.y6s_1;
|
|
3395
3395
|
};
|
|
3396
3396
|
protoOf(JassPlayer).y68 = function () {
|
|
3397
|
-
if (this.
|
|
3397
|
+
if (this.w6s_1.isBot) {
|
|
3398
3398
|
return false;
|
|
3399
3399
|
}
|
|
3400
|
-
var connection = this.
|
|
3400
|
+
var connection = this.x6s_1.d68_1;
|
|
3401
3401
|
return !(connection == null) && connection.j68_1.isLive;
|
|
3402
3402
|
};
|
|
3403
3403
|
protoOf(JassPlayer).q66 = function () {
|
|
3404
|
-
return this.
|
|
3404
|
+
return this.w6s_1.f67_1;
|
|
3405
3405
|
};
|
|
3406
|
-
protoOf(JassPlayer).
|
|
3407
|
-
return this.
|
|
3406
|
+
protoOf(JassPlayer).c6t = function () {
|
|
3407
|
+
return this.z6s_1.g6t_1;
|
|
3408
3408
|
};
|
|
3409
3409
|
protoOf(JassPlayer).toString = function () {
|
|
3410
|
-
var tmp = 'userInfo=' + this.
|
|
3411
|
-
var tmp_0 = 'state=' + this.
|
|
3410
|
+
var tmp = 'userInfo=' + this.w6s_1.toString();
|
|
3411
|
+
var tmp_0 = 'state=' + this.x6s_1.toString();
|
|
3412
3412
|
// Inline function 'kotlin.takeIf' call
|
|
3413
|
-
var this_0 = 'cards=' + toString(this.
|
|
3413
|
+
var this_0 = 'cards=' + toString(this.y6s_1);
|
|
3414
3414
|
// Inline function 'kotlin.contracts.contract' call
|
|
3415
3415
|
var tmp_1;
|
|
3416
3416
|
// Inline function 'games.jass.logic.data.models.player.JassPlayer.toString.<anonymous>' call
|
|
3417
3417
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
3418
|
-
if (!this.
|
|
3418
|
+
if (!this.y6s_1.p()) {
|
|
3419
3419
|
tmp_1 = this_0;
|
|
3420
3420
|
} else {
|
|
3421
3421
|
tmp_1 = null;
|
|
3422
3422
|
}
|
|
3423
3423
|
var tmp$ret$2 = tmp_1;
|
|
3424
|
-
return 'JassPlayer(' + joinToString(listOfNotNull([tmp, tmp_0, tmp$ret$2, 'options=' + this.
|
|
3424
|
+
return 'JassPlayer(' + joinToString(listOfNotNull([tmp, tmp_0, tmp$ret$2, 'options=' + this.z6s_1.toString(), 'hand=' + this.a6t_1.toString(), 'points=' + this.b6t_1.toString()])) + ')';
|
|
3425
3425
|
};
|
|
3426
|
-
protoOf(JassPlayer).
|
|
3426
|
+
protoOf(JassPlayer).q6t = function (userInfo, state, cards, options, hand, points) {
|
|
3427
3427
|
return new JassPlayer(userInfo, state, cards, options, hand, points);
|
|
3428
3428
|
};
|
|
3429
|
-
protoOf(JassPlayer).
|
|
3430
|
-
userInfo = userInfo === VOID ? this.
|
|
3431
|
-
state = state === VOID ? this.
|
|
3432
|
-
cards = cards === VOID ? this.
|
|
3433
|
-
options = options === VOID ? this.
|
|
3434
|
-
hand = hand === VOID ? this.
|
|
3435
|
-
points = points === VOID ? this.
|
|
3436
|
-
return $super === VOID ? this.
|
|
3429
|
+
protoOf(JassPlayer).r6t = function (userInfo, state, cards, options, hand, points, $super) {
|
|
3430
|
+
userInfo = userInfo === VOID ? this.w6s_1 : userInfo;
|
|
3431
|
+
state = state === VOID ? this.x6s_1 : state;
|
|
3432
|
+
cards = cards === VOID ? this.y6s_1 : cards;
|
|
3433
|
+
options = options === VOID ? this.z6s_1 : options;
|
|
3434
|
+
hand = hand === VOID ? this.a6t_1 : hand;
|
|
3435
|
+
points = points === VOID ? this.b6t_1 : points;
|
|
3436
|
+
return $super === VOID ? this.q6t(userInfo, state, cards, options, hand, points) : $super.q6t.call(this, userInfo, state, cards, options, hand, points);
|
|
3437
3437
|
};
|
|
3438
3438
|
protoOf(JassPlayer).hashCode = function () {
|
|
3439
|
-
var result = this.
|
|
3440
|
-
result = imul(result, 31) + this.
|
|
3441
|
-
result = imul(result, 31) + hashCode(this.
|
|
3442
|
-
result = imul(result, 31) + this.y6s_1.hashCode() | 0;
|
|
3439
|
+
var result = this.w6s_1.hashCode();
|
|
3440
|
+
result = imul(result, 31) + this.x6s_1.hashCode() | 0;
|
|
3441
|
+
result = imul(result, 31) + hashCode(this.y6s_1) | 0;
|
|
3443
3442
|
result = imul(result, 31) + this.z6s_1.hashCode() | 0;
|
|
3444
3443
|
result = imul(result, 31) + this.a6t_1.hashCode() | 0;
|
|
3444
|
+
result = imul(result, 31) + this.b6t_1.hashCode() | 0;
|
|
3445
3445
|
return result;
|
|
3446
3446
|
};
|
|
3447
3447
|
protoOf(JassPlayer).equals = function (other) {
|
|
@@ -3450,18 +3450,18 @@
|
|
|
3450
3450
|
if (!(other instanceof JassPlayer))
|
|
3451
3451
|
return false;
|
|
3452
3452
|
var tmp0_other_with_cast = other instanceof JassPlayer ? other : THROW_CCE();
|
|
3453
|
-
if (!this.v6s_1.equals(tmp0_other_with_cast.v6s_1))
|
|
3454
|
-
return false;
|
|
3455
3453
|
if (!this.w6s_1.equals(tmp0_other_with_cast.w6s_1))
|
|
3456
3454
|
return false;
|
|
3457
|
-
if (!
|
|
3455
|
+
if (!this.x6s_1.equals(tmp0_other_with_cast.x6s_1))
|
|
3458
3456
|
return false;
|
|
3459
|
-
if (!this.y6s_1
|
|
3457
|
+
if (!equals(this.y6s_1, tmp0_other_with_cast.y6s_1))
|
|
3460
3458
|
return false;
|
|
3461
3459
|
if (!this.z6s_1.equals(tmp0_other_with_cast.z6s_1))
|
|
3462
3460
|
return false;
|
|
3463
3461
|
if (!this.a6t_1.equals(tmp0_other_with_cast.a6t_1))
|
|
3464
3462
|
return false;
|
|
3463
|
+
if (!this.b6t_1.equals(tmp0_other_with_cast.b6t_1))
|
|
3464
|
+
return false;
|
|
3465
3465
|
return true;
|
|
3466
3466
|
};
|
|
3467
3467
|
function filterByGameWinner(_this__u8e3s4) {
|
|
@@ -3600,16 +3600,16 @@
|
|
|
3600
3600
|
return destination;
|
|
3601
3601
|
}
|
|
3602
3602
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
3603
|
-
this.
|
|
3603
|
+
this.s6t_1 = function_0;
|
|
3604
3604
|
}
|
|
3605
3605
|
protoOf(sam$kotlin_Comparator$0_0).mc = function (a, b) {
|
|
3606
|
-
return this.
|
|
3606
|
+
return this.s6t_1(a, b);
|
|
3607
3607
|
};
|
|
3608
3608
|
protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
|
|
3609
3609
|
return this.mc(a, b);
|
|
3610
3610
|
};
|
|
3611
3611
|
protoOf(sam$kotlin_Comparator$0_0).o3 = function () {
|
|
3612
|
-
return this.
|
|
3612
|
+
return this.s6t_1;
|
|
3613
3613
|
};
|
|
3614
3614
|
protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
|
|
3615
3615
|
var tmp;
|
|
@@ -3631,40 +3631,40 @@
|
|
|
3631
3631
|
};
|
|
3632
3632
|
function shuffleCardsPredicate$lambda(p1) {
|
|
3633
3633
|
_init_properties_JassPlayer_kt__igzf5k();
|
|
3634
|
-
return p1.
|
|
3634
|
+
return p1.c6t();
|
|
3635
3635
|
}
|
|
3636
3636
|
function choseSuitPredicate$lambda(p1) {
|
|
3637
3637
|
_init_properties_JassPlayer_kt__igzf5k();
|
|
3638
|
-
return p1.
|
|
3638
|
+
return p1.z6s_1.o6t_1;
|
|
3639
3639
|
}
|
|
3640
3640
|
function gotLastBribePredicate$lambda(p1) {
|
|
3641
3641
|
_init_properties_JassPlayer_kt__igzf5k();
|
|
3642
|
-
return p1.
|
|
3642
|
+
return p1.z6s_1.m6t_1;
|
|
3643
3643
|
}
|
|
3644
3644
|
function gameWinnerPredicate$lambda(p1) {
|
|
3645
3645
|
_init_properties_JassPlayer_kt__igzf5k();
|
|
3646
|
-
return p1.
|
|
3646
|
+
return p1.z6s_1.f6t_1;
|
|
3647
3647
|
}
|
|
3648
3648
|
function roundWinnerPredicate$lambda(p1) {
|
|
3649
3649
|
_init_properties_JassPlayer_kt__igzf5k();
|
|
3650
|
-
return p1.
|
|
3650
|
+
return p1.z6s_1.h6t_1;
|
|
3651
3651
|
}
|
|
3652
3652
|
function gameCreatorPredicate$lambda(p1) {
|
|
3653
3653
|
_init_properties_JassPlayer_kt__igzf5k();
|
|
3654
|
-
return p1.
|
|
3654
|
+
return p1.z6s_1.d6t_1;
|
|
3655
3655
|
}
|
|
3656
3656
|
function earnedBiggestPointInLastGamePredicate$lambda(p1) {
|
|
3657
3657
|
_init_properties_JassPlayer_kt__igzf5k();
|
|
3658
|
-
return p1.
|
|
3658
|
+
return p1.z6s_1.j6t_1;
|
|
3659
3659
|
}
|
|
3660
3660
|
function wonCardLotPredicate$lambda(p1) {
|
|
3661
3661
|
_init_properties_JassPlayer_kt__igzf5k();
|
|
3662
|
-
return p1.
|
|
3662
|
+
return p1.z6s_1.i6t_1;
|
|
3663
3663
|
}
|
|
3664
3664
|
function playerNumberComparator$lambda(player1, player2) {
|
|
3665
3665
|
_init_properties_JassPlayer_kt__igzf5k();
|
|
3666
|
-
var comparator1 = player1.
|
|
3667
|
-
var comparator2 = player2.
|
|
3666
|
+
var comparator1 = player1.z6s_1.e6t_1;
|
|
3667
|
+
var comparator2 = player2.z6s_1.e6t_1;
|
|
3668
3668
|
return comparator1 - comparator2 | 0;
|
|
3669
3669
|
}
|
|
3670
3670
|
var properties_initialized_JassPlayer_kt_k1key;
|
|
@@ -3688,13 +3688,13 @@
|
|
|
3688
3688
|
this.options = options;
|
|
3689
3689
|
this.points = points;
|
|
3690
3690
|
}
|
|
3691
|
-
protoOf(JassPlayerLite).
|
|
3691
|
+
protoOf(JassPlayerLite).a6r = function () {
|
|
3692
3692
|
return this.userInfo;
|
|
3693
3693
|
};
|
|
3694
|
-
protoOf(JassPlayerLite).
|
|
3694
|
+
protoOf(JassPlayerLite).t6t = function () {
|
|
3695
3695
|
return this.options;
|
|
3696
3696
|
};
|
|
3697
|
-
protoOf(JassPlayerLite).
|
|
3697
|
+
protoOf(JassPlayerLite).u6t = function () {
|
|
3698
3698
|
return this.points;
|
|
3699
3699
|
};
|
|
3700
3700
|
protoOf(JassPlayerLite).pe = function () {
|
|
@@ -3706,14 +3706,14 @@
|
|
|
3706
3706
|
protoOf(JassPlayerLite).hk = function () {
|
|
3707
3707
|
return this.points;
|
|
3708
3708
|
};
|
|
3709
|
-
protoOf(JassPlayerLite).
|
|
3709
|
+
protoOf(JassPlayerLite).v6t = function (userInfo, options, points) {
|
|
3710
3710
|
return new JassPlayerLite(userInfo, options, points);
|
|
3711
3711
|
};
|
|
3712
3712
|
protoOf(JassPlayerLite).copy = function (userInfo, options, points, $super) {
|
|
3713
3713
|
userInfo = userInfo === VOID ? this.userInfo : userInfo;
|
|
3714
3714
|
options = options === VOID ? this.options : options;
|
|
3715
3715
|
points = points === VOID ? this.points : points;
|
|
3716
|
-
return this.
|
|
3716
|
+
return this.v6t(userInfo, options, points);
|
|
3717
3717
|
};
|
|
3718
3718
|
protoOf(JassPlayerLite).toString = function () {
|
|
3719
3719
|
return 'JassPlayerLite(userInfo=' + this.userInfo.toString() + ', options=' + this.options.toString() + ', points=' + this.points.toString() + ')';
|
|
@@ -3740,33 +3740,33 @@
|
|
|
3740
3740
|
};
|
|
3741
3741
|
function mapToSessionAnalytics(_this__u8e3s4, gameDuration) {
|
|
3742
3742
|
var tmp = _this__u8e3s4.playerId;
|
|
3743
|
-
var tmp_0 = _this__u8e3s4.
|
|
3744
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3743
|
+
var tmp_0 = _this__u8e3s4.a6t_1.f6u();
|
|
3744
|
+
var tmp0_safe_receiver = _this__u8e3s4.x6s_1.d68_1;
|
|
3745
3745
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u68(gameDuration);
|
|
3746
3746
|
var tmp_1 = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
3747
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
3748
|
-
return new PlayerAnalytics(tmp, tmp_0, tmp_1, tmp2_safe_receiver == null ? null : tmp2_safe_receiver.t68(gameDuration), _this__u8e3s4.
|
|
3747
|
+
var tmp2_safe_receiver = _this__u8e3s4.x6s_1.d68_1;
|
|
3748
|
+
return new PlayerAnalytics(tmp, tmp_0, tmp_1, tmp2_safe_receiver == null ? null : tmp2_safe_receiver.t68(gameDuration), _this__u8e3s4.a6t_1.z6t_1);
|
|
3749
3749
|
}
|
|
3750
3750
|
function mapToGameAnalytics(_this__u8e3s4, gameDuration) {
|
|
3751
3751
|
var tmp = _this__u8e3s4.playerId;
|
|
3752
|
-
var tmp_0 = _this__u8e3s4.
|
|
3753
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3752
|
+
var tmp_0 = _this__u8e3s4.a6t_1.g6u();
|
|
3753
|
+
var tmp0_safe_receiver = _this__u8e3s4.x6s_1.d68_1;
|
|
3754
3754
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u68(gameDuration);
|
|
3755
3755
|
var tmp_1 = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
3756
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
3757
|
-
return new PlayerAnalytics(tmp, tmp_0, tmp_1, tmp2_safe_receiver == null ? null : tmp2_safe_receiver.t68(gameDuration), _this__u8e3s4.
|
|
3756
|
+
var tmp2_safe_receiver = _this__u8e3s4.x6s_1.d68_1;
|
|
3757
|
+
return new PlayerAnalytics(tmp, tmp_0, tmp_1, tmp2_safe_receiver == null ? null : tmp2_safe_receiver.t68(gameDuration), _this__u8e3s4.a6t_1.y6t_1);
|
|
3758
3758
|
}
|
|
3759
3759
|
function mapToRoundAnalytics(_this__u8e3s4, gameDuration) {
|
|
3760
3760
|
var tmp = _this__u8e3s4.playerId;
|
|
3761
|
-
var tmp_0 = _this__u8e3s4.
|
|
3762
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3761
|
+
var tmp_0 = _this__u8e3s4.a6t_1.j6u().h6u_1;
|
|
3762
|
+
var tmp0_safe_receiver = _this__u8e3s4.x6s_1.d68_1;
|
|
3763
3763
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u68(gameDuration);
|
|
3764
3764
|
var tmp_1 = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
3765
|
-
var tmp2_safe_receiver = _this__u8e3s4.
|
|
3765
|
+
var tmp2_safe_receiver = _this__u8e3s4.x6s_1.d68_1;
|
|
3766
3766
|
var tmp_2 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.t68(gameDuration);
|
|
3767
3767
|
// Inline function 'kotlin.collections.map' call
|
|
3768
3768
|
// Inline function 'kotlin.collections.filter' call
|
|
3769
|
-
var this_0 = _this__u8e3s4.
|
|
3769
|
+
var this_0 = _this__u8e3s4.b6t_1.l6u_1;
|
|
3770
3770
|
var predicate = get_withFirstCardOrBelaCombinationsPredicate();
|
|
3771
3771
|
// Inline function 'kotlin.collections.filterTo' call
|
|
3772
3772
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -3790,7 +3790,7 @@
|
|
|
3790
3790
|
}
|
|
3791
3791
|
function mapToCell(_this__u8e3s4, roundLostState) {
|
|
3792
3792
|
// Inline function 'kotlin.collections.map' call
|
|
3793
|
-
var this_0 = _this__u8e3s4.
|
|
3793
|
+
var this_0 = _this__u8e3s4.o6u_1;
|
|
3794
3794
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3795
3795
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3796
3796
|
var tmp0_iterator = this_0.j();
|
|
@@ -3800,19 +3800,19 @@
|
|
|
3800
3800
|
var tmp$ret$0 = mapToCell_0(item, roundLostState);
|
|
3801
3801
|
destination.e(tmp$ret$0);
|
|
3802
3802
|
}
|
|
3803
|
-
return new PointsCell(destination, roundLostState.
|
|
3803
|
+
return new PointsCell(destination, roundLostState.s6u(_this__u8e3s4.p6u()));
|
|
3804
3804
|
}
|
|
3805
3805
|
function mapToHistory(_this__u8e3s4, achievements) {
|
|
3806
|
-
return new PlayerHistoryAnalytics(_this__u8e3s4.
|
|
3806
|
+
return new PlayerHistoryAnalytics(_this__u8e3s4.t6u_1, _this__u8e3s4.liveDurationPercentage, toList(_this__u8e3s4.combinationsAnalytics.combinations), achievements);
|
|
3807
3807
|
}
|
|
3808
3808
|
function mapToCell_0(_this__u8e3s4, roundLostState) {
|
|
3809
|
-
var tmp0_playerId = _this__u8e3s4.
|
|
3810
|
-
var tmp1_earnedCardsPoints = _this__u8e3s4.
|
|
3811
|
-
var tmp2_beforeEarnedPoints = _this__u8e3s4.
|
|
3812
|
-
var tmp3_roundEarnedPoints = _this__u8e3s4.
|
|
3813
|
-
var tmp4_finalRoundPoints = _this__u8e3s4.
|
|
3814
|
-
var tmp5_finalGamePoints = _this__u8e3s4.
|
|
3815
|
-
var tmp6_combinations = _this__u8e3s4.
|
|
3809
|
+
var tmp0_playerId = _this__u8e3s4.u6u_1;
|
|
3810
|
+
var tmp1_earnedCardsPoints = _this__u8e3s4.b6v();
|
|
3811
|
+
var tmp2_beforeEarnedPoints = _this__u8e3s4.w6u_1;
|
|
3812
|
+
var tmp3_roundEarnedPoints = _this__u8e3s4.c6v();
|
|
3813
|
+
var tmp4_finalRoundPoints = _this__u8e3s4.d6v(roundLostState);
|
|
3814
|
+
var tmp5_finalGamePoints = _this__u8e3s4.e6v(roundLostState);
|
|
3815
|
+
var tmp6_combinations = _this__u8e3s4.f6v();
|
|
3816
3816
|
return new PlayerPointsCell(tmp0_playerId, tmp2_beforeEarnedPoints, tmp1_earnedCardsPoints, tmp3_roundEarnedPoints, tmp4_finalRoundPoints, tmp5_finalGamePoints, tmp6_combinations);
|
|
3817
3817
|
}
|
|
3818
3818
|
function PlayerTurnModel_init_$Init$(tag, playerId, $this) {
|
|
@@ -3823,18 +3823,18 @@
|
|
|
3823
3823
|
return PlayerTurnModel_init_$Init$(tag, playerId, objectCreate(protoOf(PlayerTurnModel)));
|
|
3824
3824
|
}
|
|
3825
3825
|
function PlayerTurnModel(tag, playerIds) {
|
|
3826
|
-
this.
|
|
3827
|
-
this.
|
|
3826
|
+
this.g6v_1 = tag;
|
|
3827
|
+
this.h6v_1 = playerIds;
|
|
3828
3828
|
}
|
|
3829
3829
|
protoOf(PlayerTurnModel).q66 = function () {
|
|
3830
|
-
return single(this.
|
|
3830
|
+
return single(this.h6v_1);
|
|
3831
3831
|
};
|
|
3832
3832
|
protoOf(PlayerTurnModel).toString = function () {
|
|
3833
|
-
return 'PlayerTurnModel(tag=' + this.
|
|
3833
|
+
return 'PlayerTurnModel(tag=' + this.g6v_1 + ', playerIds=' + toString(this.h6v_1) + ')';
|
|
3834
3834
|
};
|
|
3835
3835
|
protoOf(PlayerTurnModel).hashCode = function () {
|
|
3836
|
-
var result = getStringHashCode(this.
|
|
3837
|
-
result = imul(result, 31) + hashCode(this.
|
|
3836
|
+
var result = getStringHashCode(this.g6v_1);
|
|
3837
|
+
result = imul(result, 31) + hashCode(this.h6v_1) | 0;
|
|
3838
3838
|
return result;
|
|
3839
3839
|
};
|
|
3840
3840
|
protoOf(PlayerTurnModel).equals = function (other) {
|
|
@@ -3843,23 +3843,23 @@
|
|
|
3843
3843
|
if (!(other instanceof PlayerTurnModel))
|
|
3844
3844
|
return false;
|
|
3845
3845
|
var tmp0_other_with_cast = other instanceof PlayerTurnModel ? other : THROW_CCE();
|
|
3846
|
-
if (!(this.
|
|
3846
|
+
if (!(this.g6v_1 === tmp0_other_with_cast.g6v_1))
|
|
3847
3847
|
return false;
|
|
3848
|
-
if (!equals(this.
|
|
3848
|
+
if (!equals(this.h6v_1, tmp0_other_with_cast.h6v_1))
|
|
3849
3849
|
return false;
|
|
3850
3850
|
return true;
|
|
3851
3851
|
};
|
|
3852
3852
|
function Spectator(userInfo) {
|
|
3853
|
-
this.
|
|
3853
|
+
this.i6v_1 = userInfo;
|
|
3854
3854
|
}
|
|
3855
3855
|
protoOf(Spectator).q66 = function () {
|
|
3856
|
-
return this.
|
|
3856
|
+
return this.i6v_1.f67_1;
|
|
3857
3857
|
};
|
|
3858
3858
|
protoOf(Spectator).toString = function () {
|
|
3859
|
-
return 'Spectator(userInfo=' + this.
|
|
3859
|
+
return 'Spectator(userInfo=' + this.i6v_1.toString() + ')';
|
|
3860
3860
|
};
|
|
3861
3861
|
protoOf(Spectator).hashCode = function () {
|
|
3862
|
-
return this.
|
|
3862
|
+
return this.i6v_1.hashCode();
|
|
3863
3863
|
};
|
|
3864
3864
|
protoOf(Spectator).equals = function (other) {
|
|
3865
3865
|
if (this === other)
|
|
@@ -3867,23 +3867,18 @@
|
|
|
3867
3867
|
if (!(other instanceof Spectator))
|
|
3868
3868
|
return false;
|
|
3869
3869
|
var tmp0_other_with_cast = other instanceof Spectator ? other : THROW_CCE();
|
|
3870
|
-
if (!this.
|
|
3870
|
+
if (!this.i6v_1.equals(tmp0_other_with_cast.i6v_1))
|
|
3871
3871
|
return false;
|
|
3872
3872
|
return true;
|
|
3873
3873
|
};
|
|
3874
|
-
function UserProfilePayload(socketId,
|
|
3874
|
+
function UserProfilePayload(socketId, playedGamesCount) {
|
|
3875
3875
|
socketId = socketId === VOID ? null : socketId;
|
|
3876
|
-
rating = rating === VOID ? null : rating;
|
|
3877
3876
|
playedGamesCount = playedGamesCount === VOID ? 0 : playedGamesCount;
|
|
3878
3877
|
this.socketId = socketId;
|
|
3879
|
-
this.rating = rating;
|
|
3880
3878
|
this.playedGamesCount = playedGamesCount;
|
|
3881
3879
|
}
|
|
3882
|
-
protoOf(UserProfilePayload).i6v = function () {
|
|
3883
|
-
return this.socketId;
|
|
3884
|
-
};
|
|
3885
3880
|
protoOf(UserProfilePayload).j6v = function () {
|
|
3886
|
-
return this.
|
|
3881
|
+
return this.socketId;
|
|
3887
3882
|
};
|
|
3888
3883
|
protoOf(UserProfilePayload).k6v = function () {
|
|
3889
3884
|
return this.playedGamesCount;
|
|
@@ -3892,26 +3887,21 @@
|
|
|
3892
3887
|
return this.socketId;
|
|
3893
3888
|
};
|
|
3894
3889
|
protoOf(UserProfilePayload).qe = function () {
|
|
3895
|
-
return this.rating;
|
|
3896
|
-
};
|
|
3897
|
-
protoOf(UserProfilePayload).hk = function () {
|
|
3898
3890
|
return this.playedGamesCount;
|
|
3899
3891
|
};
|
|
3900
|
-
protoOf(UserProfilePayload).l6v = function (socketId,
|
|
3901
|
-
return new UserProfilePayload(socketId,
|
|
3892
|
+
protoOf(UserProfilePayload).l6v = function (socketId, playedGamesCount) {
|
|
3893
|
+
return new UserProfilePayload(socketId, playedGamesCount);
|
|
3902
3894
|
};
|
|
3903
|
-
protoOf(UserProfilePayload).copy = function (socketId,
|
|
3895
|
+
protoOf(UserProfilePayload).copy = function (socketId, playedGamesCount, $super) {
|
|
3904
3896
|
socketId = socketId === VOID ? this.socketId : socketId;
|
|
3905
|
-
rating = rating === VOID ? this.rating : rating;
|
|
3906
3897
|
playedGamesCount = playedGamesCount === VOID ? this.playedGamesCount : playedGamesCount;
|
|
3907
|
-
return this.l6v(socketId,
|
|
3898
|
+
return this.l6v(socketId, playedGamesCount);
|
|
3908
3899
|
};
|
|
3909
3900
|
protoOf(UserProfilePayload).toString = function () {
|
|
3910
|
-
return 'UserProfilePayload(socketId=' + this.socketId + ',
|
|
3901
|
+
return 'UserProfilePayload(socketId=' + this.socketId + ', playedGamesCount=' + this.playedGamesCount + ')';
|
|
3911
3902
|
};
|
|
3912
3903
|
protoOf(UserProfilePayload).hashCode = function () {
|
|
3913
3904
|
var result = this.socketId == null ? 0 : getStringHashCode(this.socketId);
|
|
3914
|
-
result = imul(result, 31) + (this.rating == null ? 0 : getNumberHashCode(this.rating)) | 0;
|
|
3915
3905
|
result = imul(result, 31) + this.playedGamesCount | 0;
|
|
3916
3906
|
return result;
|
|
3917
3907
|
};
|
|
@@ -3923,8 +3913,6 @@
|
|
|
3923
3913
|
var tmp0_other_with_cast = other instanceof UserProfilePayload ? other : THROW_CCE();
|
|
3924
3914
|
if (!(this.socketId == tmp0_other_with_cast.socketId))
|
|
3925
3915
|
return false;
|
|
3926
|
-
if (!equals(this.rating, tmp0_other_with_cast.rating))
|
|
3927
|
-
return false;
|
|
3928
3916
|
if (!(this.playedGamesCount === tmp0_other_with_cast.playedGamesCount))
|
|
3929
3917
|
return false;
|
|
3930
3918
|
return true;
|
|
@@ -3933,10 +3921,10 @@
|
|
|
3933
3921
|
var tmp = _this__u8e3s4.payload;
|
|
3934
3922
|
return tmp instanceof UserProfilePayload ? tmp : null;
|
|
3935
3923
|
}
|
|
3936
|
-
function getUserProfilePayloadOrDefault(_this__u8e3s4
|
|
3924
|
+
function getUserProfilePayloadOrDefault(_this__u8e3s4) {
|
|
3937
3925
|
var tmp = _this__u8e3s4.payload;
|
|
3938
3926
|
var tmp0_elvis_lhs = tmp instanceof UserProfilePayload ? tmp : null;
|
|
3939
|
-
return tmp0_elvis_lhs == null ? new UserProfilePayload(VOID,
|
|
3927
|
+
return tmp0_elvis_lhs == null ? new UserProfilePayload(VOID, 0) : tmp0_elvis_lhs;
|
|
3940
3928
|
}
|
|
3941
3929
|
function Achievements(oldRating, newRating) {
|
|
3942
3930
|
this.oldRating = oldRating;
|
|
@@ -4168,14 +4156,14 @@
|
|
|
4168
4156
|
return compareValues(tmp, tmp$ret$1);
|
|
4169
4157
|
}
|
|
4170
4158
|
function PlayerAnalytics(playerId, factor, wasLiveDuringGame, liveDurationPercentage, combinationRecords) {
|
|
4171
|
-
this.
|
|
4159
|
+
this.t6u_1 = playerId;
|
|
4172
4160
|
this.factor = factor;
|
|
4173
4161
|
this.wasLiveDuringGame = wasLiveDuringGame;
|
|
4174
4162
|
this.liveDurationPercentage = liveDurationPercentage;
|
|
4175
4163
|
this.combinationRecords = combinationRecords;
|
|
4176
4164
|
}
|
|
4177
4165
|
protoOf(PlayerAnalytics).q66 = function () {
|
|
4178
|
-
return this.
|
|
4166
|
+
return this.t6u_1;
|
|
4179
4167
|
};
|
|
4180
4168
|
protoOf(PlayerAnalytics).x6v = function () {
|
|
4181
4169
|
return this.factor;
|
|
@@ -4292,7 +4280,7 @@
|
|
|
4292
4280
|
return new CombinationsAnalytics(tmp$ret$17);
|
|
4293
4281
|
};
|
|
4294
4282
|
protoOf(PlayerAnalytics).toString = function () {
|
|
4295
|
-
var tmp = "playerId='" + this.
|
|
4283
|
+
var tmp = "playerId='" + this.t6u_1 + "'";
|
|
4296
4284
|
var tmp_0 = 'factor=' + this.factor;
|
|
4297
4285
|
// Inline function 'kotlin.takeIf' call
|
|
4298
4286
|
var this_0 = 'wasLiveDuringGame=' + this.wasLiveDuringGame;
|
|
@@ -4331,7 +4319,7 @@
|
|
|
4331
4319
|
return 'PlayerAnalytics(' + joinToString(listOfNotNull([tmp, tmp_0, tmp_2, tmp_4, tmp$ret$6])) + ')';
|
|
4332
4320
|
};
|
|
4333
4321
|
protoOf(PlayerAnalytics).pe = function () {
|
|
4334
|
-
return this.
|
|
4322
|
+
return this.t6u_1;
|
|
4335
4323
|
};
|
|
4336
4324
|
protoOf(PlayerAnalytics).qe = function () {
|
|
4337
4325
|
return this.factor;
|
|
@@ -4349,7 +4337,7 @@
|
|
|
4349
4337
|
return new PlayerAnalytics(playerId, factor, wasLiveDuringGame, liveDurationPercentage, combinationRecords);
|
|
4350
4338
|
};
|
|
4351
4339
|
protoOf(PlayerAnalytics).copy = function (playerId, factor, wasLiveDuringGame, liveDurationPercentage, combinationRecords, $super) {
|
|
4352
|
-
playerId = playerId === VOID ? this.
|
|
4340
|
+
playerId = playerId === VOID ? this.t6u_1 : playerId;
|
|
4353
4341
|
factor = factor === VOID ? this.factor : factor;
|
|
4354
4342
|
wasLiveDuringGame = wasLiveDuringGame === VOID ? this.wasLiveDuringGame : wasLiveDuringGame;
|
|
4355
4343
|
liveDurationPercentage = liveDurationPercentage === VOID ? this.liveDurationPercentage : liveDurationPercentage;
|
|
@@ -4357,7 +4345,7 @@
|
|
|
4357
4345
|
return this.d6w(playerId, factor, wasLiveDuringGame, liveDurationPercentage, combinationRecords);
|
|
4358
4346
|
};
|
|
4359
4347
|
protoOf(PlayerAnalytics).hashCode = function () {
|
|
4360
|
-
var result = getStringHashCode(this.
|
|
4348
|
+
var result = getStringHashCode(this.t6u_1);
|
|
4361
4349
|
result = imul(result, 31) + getNumberHashCode(this.factor) | 0;
|
|
4362
4350
|
result = imul(result, 31) + getBooleanHashCode(this.wasLiveDuringGame) | 0;
|
|
4363
4351
|
result = imul(result, 31) + (this.liveDurationPercentage == null ? 0 : this.liveDurationPercentage) | 0;
|
|
@@ -4370,7 +4358,7 @@
|
|
|
4370
4358
|
if (!(other instanceof PlayerAnalytics))
|
|
4371
4359
|
return false;
|
|
4372
4360
|
var tmp0_other_with_cast = other instanceof PlayerAnalytics ? other : THROW_CCE();
|
|
4373
|
-
if (!(this.
|
|
4361
|
+
if (!(this.t6u_1 === tmp0_other_with_cast.t6u_1))
|
|
4374
4362
|
return false;
|
|
4375
4363
|
if (!equals(this.factor, tmp0_other_with_cast.factor))
|
|
4376
4364
|
return false;
|
|
@@ -4874,15 +4862,15 @@
|
|
|
4874
4862
|
return Companion_instance_16;
|
|
4875
4863
|
}
|
|
4876
4864
|
function LuckyFactorRecord(factor, value) {
|
|
4877
|
-
this.
|
|
4878
|
-
this.
|
|
4865
|
+
this.h6u_1 = factor;
|
|
4866
|
+
this.i6u_1 = value;
|
|
4879
4867
|
}
|
|
4880
4868
|
protoOf(LuckyFactorRecord).toString = function () {
|
|
4881
|
-
return 'LuckyFactorRecord(factor=' + this.
|
|
4869
|
+
return 'LuckyFactorRecord(factor=' + this.h6u_1 + ', value=' + this.i6u_1 + ')';
|
|
4882
4870
|
};
|
|
4883
4871
|
protoOf(LuckyFactorRecord).hashCode = function () {
|
|
4884
|
-
var result = getNumberHashCode(this.
|
|
4885
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
4872
|
+
var result = getNumberHashCode(this.h6u_1);
|
|
4873
|
+
result = imul(result, 31) + getNumberHashCode(this.i6u_1) | 0;
|
|
4886
4874
|
return result;
|
|
4887
4875
|
};
|
|
4888
4876
|
protoOf(LuckyFactorRecord).equals = function (other) {
|
|
@@ -4891,26 +4879,26 @@
|
|
|
4891
4879
|
if (!(other instanceof LuckyFactorRecord))
|
|
4892
4880
|
return false;
|
|
4893
4881
|
var tmp0_other_with_cast = other instanceof LuckyFactorRecord ? other : THROW_CCE();
|
|
4894
|
-
if (!equals(this.g6u_1, tmp0_other_with_cast.g6u_1))
|
|
4895
|
-
return false;
|
|
4896
4882
|
if (!equals(this.h6u_1, tmp0_other_with_cast.h6u_1))
|
|
4897
4883
|
return false;
|
|
4884
|
+
if (!equals(this.i6u_1, tmp0_other_with_cast.i6u_1))
|
|
4885
|
+
return false;
|
|
4898
4886
|
return true;
|
|
4899
4887
|
};
|
|
4900
4888
|
function Companion_12() {
|
|
4901
4889
|
}
|
|
4902
4890
|
protoOf(Companion_12).u6w = function (_this__u8e3s4) {
|
|
4903
|
-
return new PlayerHand(_this__u8e3s4.
|
|
4891
|
+
return new PlayerHand(_this__u8e3s4.w6t_1, _this__u8e3s4.x6t_1, _this__u8e3s4.y6t_1, _this__u8e3s4.z6t_1);
|
|
4904
4892
|
};
|
|
4905
4893
|
protoOf(Companion_12).v6w = function (_this__u8e3s4) {
|
|
4906
|
-
return new PlayerHand((_this__u8e3s4.
|
|
4894
|
+
return new PlayerHand((_this__u8e3s4.g6u() + _this__u8e3s4.w6t_1) / 2.0, VOID, VOID, _this__u8e3s4.z6t_1);
|
|
4907
4895
|
};
|
|
4908
4896
|
var Companion_instance_17;
|
|
4909
4897
|
function Companion_getInstance_19() {
|
|
4910
4898
|
return Companion_instance_17;
|
|
4911
4899
|
}
|
|
4912
4900
|
function PlayerHand(averageLuckyFactor, luckyFactors, gameCombinationRecords, sessionCombinationRecords, hasNoTrump, hasNoDiamond, hasNoSpade, hasNoHeart, hasNoClub) {
|
|
4913
|
-
averageLuckyFactor = averageLuckyFactor === VOID ? Companion_instance_16.r6w().
|
|
4901
|
+
averageLuckyFactor = averageLuckyFactor === VOID ? Companion_instance_16.r6w().h6u_1 : averageLuckyFactor;
|
|
4914
4902
|
luckyFactors = luckyFactors === VOID ? listOf_0(Companion_instance_16.t6w(averageLuckyFactor)) : luckyFactors;
|
|
4915
4903
|
gameCombinationRecords = gameCombinationRecords === VOID ? emptyList() : gameCombinationRecords;
|
|
4916
4904
|
sessionCombinationRecords = sessionCombinationRecords === VOID ? emptyList() : sessionCombinationRecords;
|
|
@@ -4919,52 +4907,52 @@
|
|
|
4919
4907
|
hasNoSpade = hasNoSpade === VOID ? false : hasNoSpade;
|
|
4920
4908
|
hasNoHeart = hasNoHeart === VOID ? false : hasNoHeart;
|
|
4921
4909
|
hasNoClub = hasNoClub === VOID ? false : hasNoClub;
|
|
4922
|
-
this.
|
|
4923
|
-
this.
|
|
4924
|
-
this.
|
|
4925
|
-
this.
|
|
4926
|
-
this.
|
|
4927
|
-
this.
|
|
4928
|
-
this.
|
|
4929
|
-
this.
|
|
4930
|
-
this.
|
|
4910
|
+
this.w6t_1 = averageLuckyFactor;
|
|
4911
|
+
this.x6t_1 = luckyFactors;
|
|
4912
|
+
this.y6t_1 = gameCombinationRecords;
|
|
4913
|
+
this.z6t_1 = sessionCombinationRecords;
|
|
4914
|
+
this.a6u_1 = hasNoTrump;
|
|
4915
|
+
this.b6u_1 = hasNoDiamond;
|
|
4916
|
+
this.c6u_1 = hasNoSpade;
|
|
4917
|
+
this.d6u_1 = hasNoHeart;
|
|
4918
|
+
this.e6u_1 = hasNoClub;
|
|
4931
4919
|
}
|
|
4932
|
-
protoOf(PlayerHand).
|
|
4933
|
-
if (this.
|
|
4934
|
-
return (this.
|
|
4920
|
+
protoOf(PlayerHand).f6u = function () {
|
|
4921
|
+
if (this.x6t_1.m() > 1) {
|
|
4922
|
+
return (this.g6u() + this.w6t_1) / 2.0;
|
|
4935
4923
|
}
|
|
4936
|
-
return this.
|
|
4924
|
+
return this.w6t_1;
|
|
4937
4925
|
};
|
|
4938
|
-
protoOf(PlayerHand).
|
|
4939
|
-
return last(this.
|
|
4926
|
+
protoOf(PlayerHand).j6u = function () {
|
|
4927
|
+
return last(this.x6t_1);
|
|
4940
4928
|
};
|
|
4941
|
-
protoOf(PlayerHand).
|
|
4929
|
+
protoOf(PlayerHand).g6u = function () {
|
|
4942
4930
|
// Inline function 'kotlin.collections.map' call
|
|
4943
|
-
var this_0 = this.
|
|
4931
|
+
var this_0 = this.x6t_1;
|
|
4944
4932
|
// Inline function 'kotlin.collections.mapTo' call
|
|
4945
4933
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
4946
4934
|
var tmp0_iterator = this_0.j();
|
|
4947
4935
|
while (tmp0_iterator.k()) {
|
|
4948
4936
|
var item = tmp0_iterator.l();
|
|
4949
4937
|
// Inline function 'games.jass.logic.data.models.player.hand.PlayerHand.getAverageLuckyFactorInGame.<anonymous>' call
|
|
4950
|
-
var tmp$ret$0 = item.
|
|
4938
|
+
var tmp$ret$0 = item.h6u_1;
|
|
4951
4939
|
destination.e(tmp$ret$0);
|
|
4952
4940
|
}
|
|
4953
|
-
return sum(destination) / this.
|
|
4941
|
+
return sum(destination) / this.x6t_1.m();
|
|
4954
4942
|
};
|
|
4955
4943
|
protoOf(PlayerHand).w6w = function () {
|
|
4956
|
-
return this.
|
|
4944
|
+
return this.z6t_1.m();
|
|
4957
4945
|
};
|
|
4958
4946
|
protoOf(PlayerHand).toString = function () {
|
|
4959
|
-
var tmp = 'averageFactor=' + this.
|
|
4960
|
-
var tmp_0 = 'latestFactor=' + this.
|
|
4947
|
+
var tmp = 'averageFactor=' + this.w6t_1;
|
|
4948
|
+
var tmp_0 = 'latestFactor=' + this.j6u().toString();
|
|
4961
4949
|
// Inline function 'kotlin.takeIf' call
|
|
4962
|
-
var this_0 = 'roundCombinationRecords=' + toString(this.
|
|
4950
|
+
var this_0 = 'roundCombinationRecords=' + toString(this.y6t_1);
|
|
4963
4951
|
// Inline function 'kotlin.contracts.contract' call
|
|
4964
4952
|
var tmp_1;
|
|
4965
4953
|
// Inline function 'games.jass.logic.data.models.player.hand.PlayerHand.toString.<anonymous>' call
|
|
4966
4954
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
4967
|
-
if (!this.
|
|
4955
|
+
if (!this.y6t_1.p()) {
|
|
4968
4956
|
tmp_1 = this_0;
|
|
4969
4957
|
} else {
|
|
4970
4958
|
tmp_1 = null;
|
|
@@ -4982,55 +4970,55 @@
|
|
|
4982
4970
|
}
|
|
4983
4971
|
var tmp_4 = tmp_3;
|
|
4984
4972
|
// Inline function 'kotlin.takeIf' call
|
|
4985
|
-
var this_2 = 'hasNoTrump=' + this.
|
|
4973
|
+
var this_2 = 'hasNoTrump=' + this.a6u_1;
|
|
4986
4974
|
// Inline function 'kotlin.contracts.contract' call
|
|
4987
4975
|
var tmp_5;
|
|
4988
4976
|
// Inline function 'games.jass.logic.data.models.player.hand.PlayerHand.toString.<anonymous>' call
|
|
4989
|
-
if (this.
|
|
4977
|
+
if (this.a6u_1) {
|
|
4990
4978
|
tmp_5 = this_2;
|
|
4991
4979
|
} else {
|
|
4992
4980
|
tmp_5 = null;
|
|
4993
4981
|
}
|
|
4994
4982
|
var tmp_6 = tmp_5;
|
|
4995
4983
|
// Inline function 'kotlin.takeIf' call
|
|
4996
|
-
var this_3 = 'hasNoDiamond=' + this.
|
|
4984
|
+
var this_3 = 'hasNoDiamond=' + this.b6u_1;
|
|
4997
4985
|
// Inline function 'kotlin.contracts.contract' call
|
|
4998
4986
|
var tmp_7;
|
|
4999
4987
|
// Inline function 'games.jass.logic.data.models.player.hand.PlayerHand.toString.<anonymous>' call
|
|
5000
|
-
if (this.
|
|
4988
|
+
if (this.b6u_1) {
|
|
5001
4989
|
tmp_7 = this_3;
|
|
5002
4990
|
} else {
|
|
5003
4991
|
tmp_7 = null;
|
|
5004
4992
|
}
|
|
5005
4993
|
var tmp_8 = tmp_7;
|
|
5006
4994
|
// Inline function 'kotlin.takeIf' call
|
|
5007
|
-
var this_4 = 'hasNoSpade=' + this.
|
|
4995
|
+
var this_4 = 'hasNoSpade=' + this.c6u_1;
|
|
5008
4996
|
// Inline function 'kotlin.contracts.contract' call
|
|
5009
4997
|
var tmp_9;
|
|
5010
4998
|
// Inline function 'games.jass.logic.data.models.player.hand.PlayerHand.toString.<anonymous>' call
|
|
5011
|
-
if (this.
|
|
4999
|
+
if (this.c6u_1) {
|
|
5012
5000
|
tmp_9 = this_4;
|
|
5013
5001
|
} else {
|
|
5014
5002
|
tmp_9 = null;
|
|
5015
5003
|
}
|
|
5016
5004
|
var tmp_10 = tmp_9;
|
|
5017
5005
|
// Inline function 'kotlin.takeIf' call
|
|
5018
|
-
var this_5 = 'hasNoHeart=' + this.
|
|
5006
|
+
var this_5 = 'hasNoHeart=' + this.d6u_1;
|
|
5019
5007
|
// Inline function 'kotlin.contracts.contract' call
|
|
5020
5008
|
var tmp_11;
|
|
5021
5009
|
// Inline function 'games.jass.logic.data.models.player.hand.PlayerHand.toString.<anonymous>' call
|
|
5022
|
-
if (this.
|
|
5010
|
+
if (this.d6u_1) {
|
|
5023
5011
|
tmp_11 = this_5;
|
|
5024
5012
|
} else {
|
|
5025
5013
|
tmp_11 = null;
|
|
5026
5014
|
}
|
|
5027
5015
|
var tmp_12 = tmp_11;
|
|
5028
5016
|
// Inline function 'kotlin.takeIf' call
|
|
5029
|
-
var this_6 = 'hasNoClub=' + this.
|
|
5017
|
+
var this_6 = 'hasNoClub=' + this.e6u_1;
|
|
5030
5018
|
// Inline function 'kotlin.contracts.contract' call
|
|
5031
5019
|
var tmp_13;
|
|
5032
5020
|
// Inline function 'games.jass.logic.data.models.player.hand.PlayerHand.toString.<anonymous>' call
|
|
5033
|
-
if (this.
|
|
5021
|
+
if (this.e6u_1) {
|
|
5034
5022
|
tmp_13 = this_6;
|
|
5035
5023
|
} else {
|
|
5036
5024
|
tmp_13 = null;
|
|
@@ -5042,27 +5030,27 @@
|
|
|
5042
5030
|
return new PlayerHand(averageLuckyFactor, luckyFactors, gameCombinationRecords, sessionCombinationRecords, hasNoTrump, hasNoDiamond, hasNoSpade, hasNoHeart, hasNoClub);
|
|
5043
5031
|
};
|
|
5044
5032
|
protoOf(PlayerHand).y6w = function (averageLuckyFactor, luckyFactors, gameCombinationRecords, sessionCombinationRecords, hasNoTrump, hasNoDiamond, hasNoSpade, hasNoHeart, hasNoClub, $super) {
|
|
5045
|
-
averageLuckyFactor = averageLuckyFactor === VOID ? this.
|
|
5046
|
-
luckyFactors = luckyFactors === VOID ? this.
|
|
5047
|
-
gameCombinationRecords = gameCombinationRecords === VOID ? this.
|
|
5048
|
-
sessionCombinationRecords = sessionCombinationRecords === VOID ? this.
|
|
5049
|
-
hasNoTrump = hasNoTrump === VOID ? this.
|
|
5050
|
-
hasNoDiamond = hasNoDiamond === VOID ? this.
|
|
5051
|
-
hasNoSpade = hasNoSpade === VOID ? this.
|
|
5052
|
-
hasNoHeart = hasNoHeart === VOID ? this.
|
|
5053
|
-
hasNoClub = hasNoClub === VOID ? this.
|
|
5033
|
+
averageLuckyFactor = averageLuckyFactor === VOID ? this.w6t_1 : averageLuckyFactor;
|
|
5034
|
+
luckyFactors = luckyFactors === VOID ? this.x6t_1 : luckyFactors;
|
|
5035
|
+
gameCombinationRecords = gameCombinationRecords === VOID ? this.y6t_1 : gameCombinationRecords;
|
|
5036
|
+
sessionCombinationRecords = sessionCombinationRecords === VOID ? this.z6t_1 : sessionCombinationRecords;
|
|
5037
|
+
hasNoTrump = hasNoTrump === VOID ? this.a6u_1 : hasNoTrump;
|
|
5038
|
+
hasNoDiamond = hasNoDiamond === VOID ? this.b6u_1 : hasNoDiamond;
|
|
5039
|
+
hasNoSpade = hasNoSpade === VOID ? this.c6u_1 : hasNoSpade;
|
|
5040
|
+
hasNoHeart = hasNoHeart === VOID ? this.d6u_1 : hasNoHeart;
|
|
5041
|
+
hasNoClub = hasNoClub === VOID ? this.e6u_1 : hasNoClub;
|
|
5054
5042
|
return $super === VOID ? this.x6w(averageLuckyFactor, luckyFactors, gameCombinationRecords, sessionCombinationRecords, hasNoTrump, hasNoDiamond, hasNoSpade, hasNoHeart, hasNoClub) : $super.x6w.call(this, averageLuckyFactor, luckyFactors, gameCombinationRecords, sessionCombinationRecords, hasNoTrump, hasNoDiamond, hasNoSpade, hasNoHeart, hasNoClub);
|
|
5055
5043
|
};
|
|
5056
5044
|
protoOf(PlayerHand).hashCode = function () {
|
|
5057
|
-
var result = getNumberHashCode(this.
|
|
5058
|
-
result = imul(result, 31) + hashCode(this.w6t_1) | 0;
|
|
5045
|
+
var result = getNumberHashCode(this.w6t_1);
|
|
5059
5046
|
result = imul(result, 31) + hashCode(this.x6t_1) | 0;
|
|
5060
5047
|
result = imul(result, 31) + hashCode(this.y6t_1) | 0;
|
|
5061
|
-
result = imul(result, 31) +
|
|
5048
|
+
result = imul(result, 31) + hashCode(this.z6t_1) | 0;
|
|
5062
5049
|
result = imul(result, 31) + getBooleanHashCode(this.a6u_1) | 0;
|
|
5063
5050
|
result = imul(result, 31) + getBooleanHashCode(this.b6u_1) | 0;
|
|
5064
5051
|
result = imul(result, 31) + getBooleanHashCode(this.c6u_1) | 0;
|
|
5065
5052
|
result = imul(result, 31) + getBooleanHashCode(this.d6u_1) | 0;
|
|
5053
|
+
result = imul(result, 31) + getBooleanHashCode(this.e6u_1) | 0;
|
|
5066
5054
|
return result;
|
|
5067
5055
|
};
|
|
5068
5056
|
protoOf(PlayerHand).equals = function (other) {
|
|
@@ -5071,15 +5059,13 @@
|
|
|
5071
5059
|
if (!(other instanceof PlayerHand))
|
|
5072
5060
|
return false;
|
|
5073
5061
|
var tmp0_other_with_cast = other instanceof PlayerHand ? other : THROW_CCE();
|
|
5074
|
-
if (!equals(this.v6t_1, tmp0_other_with_cast.v6t_1))
|
|
5075
|
-
return false;
|
|
5076
5062
|
if (!equals(this.w6t_1, tmp0_other_with_cast.w6t_1))
|
|
5077
5063
|
return false;
|
|
5078
5064
|
if (!equals(this.x6t_1, tmp0_other_with_cast.x6t_1))
|
|
5079
5065
|
return false;
|
|
5080
5066
|
if (!equals(this.y6t_1, tmp0_other_with_cast.y6t_1))
|
|
5081
5067
|
return false;
|
|
5082
|
-
if (!(this.z6t_1
|
|
5068
|
+
if (!equals(this.z6t_1, tmp0_other_with_cast.z6t_1))
|
|
5083
5069
|
return false;
|
|
5084
5070
|
if (!(this.a6u_1 === tmp0_other_with_cast.a6u_1))
|
|
5085
5071
|
return false;
|
|
@@ -5089,6 +5075,8 @@
|
|
|
5089
5075
|
return false;
|
|
5090
5076
|
if (!(this.d6u_1 === tmp0_other_with_cast.d6u_1))
|
|
5091
5077
|
return false;
|
|
5078
|
+
if (!(this.e6u_1 === tmp0_other_with_cast.e6u_1))
|
|
5079
|
+
return false;
|
|
5092
5080
|
return true;
|
|
5093
5081
|
};
|
|
5094
5082
|
function _get_$cachedSerializer__te6jhj_2($this) {
|
|
@@ -5177,32 +5165,32 @@
|
|
|
5177
5165
|
numberOfCircle = numberOfCircle === VOID ? RoundNumber_CIRCLE_NOT_STARTED_getInstance() : numberOfCircle;
|
|
5178
5166
|
isChoseSuit = isChoseSuit === VOID ? false : isChoseSuit;
|
|
5179
5167
|
isChoseSuitInLastGame = isChoseSuitInLastGame === VOID ? false : isChoseSuitInLastGame;
|
|
5180
|
-
this.
|
|
5181
|
-
this.
|
|
5182
|
-
this.
|
|
5183
|
-
this.
|
|
5184
|
-
this.
|
|
5185
|
-
this.
|
|
5186
|
-
this.
|
|
5187
|
-
this.
|
|
5188
|
-
this.
|
|
5189
|
-
this.
|
|
5190
|
-
this.
|
|
5191
|
-
this.
|
|
5192
|
-
this.
|
|
5168
|
+
this.d6t_1 = isGameCreator;
|
|
5169
|
+
this.e6t_1 = playerNumber;
|
|
5170
|
+
this.f6t_1 = isGameWinner;
|
|
5171
|
+
this.g6t_1 = isShuffleCards;
|
|
5172
|
+
this.h6t_1 = isRoundWinner;
|
|
5173
|
+
this.i6t_1 = isWonCardLot;
|
|
5174
|
+
this.j6t_1 = isEarnedBiggestPointInLastGame;
|
|
5175
|
+
this.k6t_1 = failedContractsCount;
|
|
5176
|
+
this.l6t_1 = sentVoicesCount;
|
|
5177
|
+
this.m6t_1 = isGotLastBribe;
|
|
5178
|
+
this.n6t_1 = numberOfCircle;
|
|
5179
|
+
this.o6t_1 = isChoseSuit;
|
|
5180
|
+
this.p6t_1 = isChoseSuitInLastGame;
|
|
5193
5181
|
}
|
|
5194
5182
|
protoOf(PlayerOptions).e6x = function () {
|
|
5195
|
-
return this.
|
|
5183
|
+
return this.n6t_1.equals(RoundNumber_CIRCLE_NOT_STARTED_getInstance());
|
|
5196
5184
|
};
|
|
5197
5185
|
protoOf(PlayerOptions).f6x = function () {
|
|
5198
|
-
return this.
|
|
5186
|
+
return this.n6t_1.equals(RoundNumber_FIRST_CIRCLE_PASSED_getInstance());
|
|
5199
5187
|
};
|
|
5200
5188
|
protoOf(PlayerOptions).g6x = function () {
|
|
5201
|
-
return this.
|
|
5189
|
+
return this.n6t_1.equals(RoundNumber_SECOND_CIRCLE_PASSED_getInstance());
|
|
5202
5190
|
};
|
|
5203
5191
|
protoOf(PlayerOptions).h6x = function () {
|
|
5204
5192
|
var tmp;
|
|
5205
|
-
switch (this.
|
|
5193
|
+
switch (this.n6t_1.n2_1) {
|
|
5206
5194
|
case 0:
|
|
5207
5195
|
tmp = RoundNumber_FIRST_CIRCLE_PASSED_getInstance();
|
|
5208
5196
|
break;
|
|
@@ -5220,123 +5208,123 @@
|
|
|
5220
5208
|
};
|
|
5221
5209
|
protoOf(PlayerOptions).toString = function () {
|
|
5222
5210
|
// Inline function 'kotlin.takeIf' call
|
|
5223
|
-
var this_0 = 'isGameCreator=' + this.
|
|
5211
|
+
var this_0 = 'isGameCreator=' + this.d6t_1;
|
|
5224
5212
|
// Inline function 'kotlin.contracts.contract' call
|
|
5225
5213
|
var tmp;
|
|
5226
5214
|
// Inline function 'games.jass.logic.data.models.player.options.PlayerOptions.toString.<anonymous>' call
|
|
5227
|
-
if (this.
|
|
5215
|
+
if (this.d6t_1) {
|
|
5228
5216
|
tmp = this_0;
|
|
5229
5217
|
} else {
|
|
5230
5218
|
tmp = null;
|
|
5231
5219
|
}
|
|
5232
5220
|
var tmp_0 = tmp;
|
|
5233
|
-
var tmp_1 = 'playerNumber=' + this.
|
|
5221
|
+
var tmp_1 = 'playerNumber=' + this.e6t_1;
|
|
5234
5222
|
// Inline function 'kotlin.takeIf' call
|
|
5235
|
-
var this_1 = 'isGameWinner=' + this.
|
|
5223
|
+
var this_1 = 'isGameWinner=' + this.f6t_1;
|
|
5236
5224
|
// Inline function 'kotlin.contracts.contract' call
|
|
5237
5225
|
var tmp_2;
|
|
5238
5226
|
// Inline function 'games.jass.logic.data.models.player.options.PlayerOptions.toString.<anonymous>' call
|
|
5239
|
-
if (this.
|
|
5227
|
+
if (this.f6t_1) {
|
|
5240
5228
|
tmp_2 = this_1;
|
|
5241
5229
|
} else {
|
|
5242
5230
|
tmp_2 = null;
|
|
5243
5231
|
}
|
|
5244
5232
|
var tmp_3 = tmp_2;
|
|
5245
5233
|
// Inline function 'kotlin.takeIf' call
|
|
5246
|
-
var this_2 = 'isShuffleCards=' + this.
|
|
5234
|
+
var this_2 = 'isShuffleCards=' + this.g6t_1;
|
|
5247
5235
|
// Inline function 'kotlin.contracts.contract' call
|
|
5248
5236
|
var tmp_4;
|
|
5249
5237
|
// Inline function 'games.jass.logic.data.models.player.options.PlayerOptions.toString.<anonymous>' call
|
|
5250
|
-
if (this.
|
|
5238
|
+
if (this.g6t_1) {
|
|
5251
5239
|
tmp_4 = this_2;
|
|
5252
5240
|
} else {
|
|
5253
5241
|
tmp_4 = null;
|
|
5254
5242
|
}
|
|
5255
5243
|
var tmp_5 = tmp_4;
|
|
5256
5244
|
// Inline function 'kotlin.takeIf' call
|
|
5257
|
-
var this_3 = 'isRoundWinner=' + this.
|
|
5245
|
+
var this_3 = 'isRoundWinner=' + this.h6t_1;
|
|
5258
5246
|
// Inline function 'kotlin.contracts.contract' call
|
|
5259
5247
|
var tmp_6;
|
|
5260
5248
|
// Inline function 'games.jass.logic.data.models.player.options.PlayerOptions.toString.<anonymous>' call
|
|
5261
|
-
if (this.
|
|
5249
|
+
if (this.h6t_1) {
|
|
5262
5250
|
tmp_6 = this_3;
|
|
5263
5251
|
} else {
|
|
5264
5252
|
tmp_6 = null;
|
|
5265
5253
|
}
|
|
5266
5254
|
var tmp_7 = tmp_6;
|
|
5267
5255
|
// Inline function 'kotlin.takeIf' call
|
|
5268
|
-
var this_4 = 'isWonCardLot=' + this.
|
|
5256
|
+
var this_4 = 'isWonCardLot=' + this.i6t_1;
|
|
5269
5257
|
// Inline function 'kotlin.contracts.contract' call
|
|
5270
5258
|
var tmp_8;
|
|
5271
5259
|
// Inline function 'games.jass.logic.data.models.player.options.PlayerOptions.toString.<anonymous>' call
|
|
5272
|
-
if (this.
|
|
5260
|
+
if (this.i6t_1) {
|
|
5273
5261
|
tmp_8 = this_4;
|
|
5274
5262
|
} else {
|
|
5275
5263
|
tmp_8 = null;
|
|
5276
5264
|
}
|
|
5277
5265
|
var tmp_9 = tmp_8;
|
|
5278
5266
|
// Inline function 'kotlin.takeIf' call
|
|
5279
|
-
var this_5 = 'isEarnedBiggestPointInLastGame=' + this.
|
|
5267
|
+
var this_5 = 'isEarnedBiggestPointInLastGame=' + this.j6t_1;
|
|
5280
5268
|
// Inline function 'kotlin.contracts.contract' call
|
|
5281
5269
|
var tmp_10;
|
|
5282
5270
|
// Inline function 'games.jass.logic.data.models.player.options.PlayerOptions.toString.<anonymous>' call
|
|
5283
|
-
if (this.
|
|
5271
|
+
if (this.j6t_1) {
|
|
5284
5272
|
tmp_10 = this_5;
|
|
5285
5273
|
} else {
|
|
5286
5274
|
tmp_10 = null;
|
|
5287
5275
|
}
|
|
5288
5276
|
var tmp_11 = tmp_10;
|
|
5289
5277
|
// Inline function 'kotlin.takeIf' call
|
|
5290
|
-
var this_6 = 'countOfBytes=' + this.
|
|
5278
|
+
var this_6 = 'countOfBytes=' + this.k6t_1;
|
|
5291
5279
|
// Inline function 'kotlin.contracts.contract' call
|
|
5292
5280
|
var tmp_12;
|
|
5293
5281
|
// Inline function 'games.jass.logic.data.models.player.options.PlayerOptions.toString.<anonymous>' call
|
|
5294
|
-
if (!(this.
|
|
5282
|
+
if (!(this.k6t_1 === 0)) {
|
|
5295
5283
|
tmp_12 = this_6;
|
|
5296
5284
|
} else {
|
|
5297
5285
|
tmp_12 = null;
|
|
5298
5286
|
}
|
|
5299
5287
|
var tmp_13 = tmp_12;
|
|
5300
5288
|
// Inline function 'kotlin.takeIf' call
|
|
5301
|
-
var this_7 = 'sentVoicesCount=' + this.
|
|
5289
|
+
var this_7 = 'sentVoicesCount=' + this.l6t_1;
|
|
5302
5290
|
// Inline function 'kotlin.contracts.contract' call
|
|
5303
5291
|
var tmp_14;
|
|
5304
5292
|
// Inline function 'games.jass.logic.data.models.player.options.PlayerOptions.toString.<anonymous>' call
|
|
5305
|
-
if (!(this.
|
|
5293
|
+
if (!(this.l6t_1 === 0)) {
|
|
5306
5294
|
tmp_14 = this_7;
|
|
5307
5295
|
} else {
|
|
5308
5296
|
tmp_14 = null;
|
|
5309
5297
|
}
|
|
5310
5298
|
var tmp_15 = tmp_14;
|
|
5311
5299
|
// Inline function 'kotlin.takeIf' call
|
|
5312
|
-
var this_8 = 'isGotBribe=' + this.
|
|
5300
|
+
var this_8 = 'isGotBribe=' + this.m6t_1;
|
|
5313
5301
|
// Inline function 'kotlin.contracts.contract' call
|
|
5314
5302
|
var tmp_16;
|
|
5315
5303
|
// Inline function 'games.jass.logic.data.models.player.options.PlayerOptions.toString.<anonymous>' call
|
|
5316
|
-
if (this.
|
|
5304
|
+
if (this.m6t_1) {
|
|
5317
5305
|
tmp_16 = this_8;
|
|
5318
5306
|
} else {
|
|
5319
5307
|
tmp_16 = null;
|
|
5320
5308
|
}
|
|
5321
5309
|
var tmp_17 = tmp_16;
|
|
5322
|
-
var tmp_18 = 'numberOfCircle=' + this.
|
|
5310
|
+
var tmp_18 = 'numberOfCircle=' + this.n6t_1.toString();
|
|
5323
5311
|
// Inline function 'kotlin.takeIf' call
|
|
5324
|
-
var this_9 = 'isChoseSuit=' + this.
|
|
5312
|
+
var this_9 = 'isChoseSuit=' + this.o6t_1;
|
|
5325
5313
|
// Inline function 'kotlin.contracts.contract' call
|
|
5326
5314
|
var tmp_19;
|
|
5327
5315
|
// Inline function 'games.jass.logic.data.models.player.options.PlayerOptions.toString.<anonymous>' call
|
|
5328
|
-
if (this.
|
|
5316
|
+
if (this.o6t_1) {
|
|
5329
5317
|
tmp_19 = this_9;
|
|
5330
5318
|
} else {
|
|
5331
5319
|
tmp_19 = null;
|
|
5332
5320
|
}
|
|
5333
5321
|
var tmp_20 = tmp_19;
|
|
5334
5322
|
// Inline function 'kotlin.takeIf' call
|
|
5335
|
-
var this_10 = 'isChoseSuitInLastGame=' + this.
|
|
5323
|
+
var this_10 = 'isChoseSuitInLastGame=' + this.p6t_1;
|
|
5336
5324
|
// Inline function 'kotlin.contracts.contract' call
|
|
5337
5325
|
var tmp_21;
|
|
5338
5326
|
// Inline function 'games.jass.logic.data.models.player.options.PlayerOptions.toString.<anonymous>' call
|
|
5339
|
-
if (this.
|
|
5327
|
+
if (this.p6t_1) {
|
|
5340
5328
|
tmp_21 = this_10;
|
|
5341
5329
|
} else {
|
|
5342
5330
|
tmp_21 = null;
|
|
@@ -5348,35 +5336,35 @@
|
|
|
5348
5336
|
return new PlayerOptions(isGameCreator, playerNumber, isGameWinner, isShuffleCards, isRoundWinner, isWonCardLot, isEarnedBiggestPointInLastGame, failedContractsCount, sentVoicesCount, isGotLastBribe, numberOfCircle, isChoseSuit, isChoseSuitInLastGame);
|
|
5349
5337
|
};
|
|
5350
5338
|
protoOf(PlayerOptions).j6x = function (isGameCreator, playerNumber, isGameWinner, isShuffleCards, isRoundWinner, isWonCardLot, isEarnedBiggestPointInLastGame, failedContractsCount, sentVoicesCount, isGotLastBribe, numberOfCircle, isChoseSuit, isChoseSuitInLastGame, $super) {
|
|
5351
|
-
isGameCreator = isGameCreator === VOID ? this.
|
|
5352
|
-
playerNumber = playerNumber === VOID ? this.
|
|
5353
|
-
isGameWinner = isGameWinner === VOID ? this.
|
|
5354
|
-
isShuffleCards = isShuffleCards === VOID ? this.
|
|
5355
|
-
isRoundWinner = isRoundWinner === VOID ? this.
|
|
5356
|
-
isWonCardLot = isWonCardLot === VOID ? this.
|
|
5357
|
-
isEarnedBiggestPointInLastGame = isEarnedBiggestPointInLastGame === VOID ? this.
|
|
5358
|
-
failedContractsCount = failedContractsCount === VOID ? this.
|
|
5359
|
-
sentVoicesCount = sentVoicesCount === VOID ? this.
|
|
5360
|
-
isGotLastBribe = isGotLastBribe === VOID ? this.
|
|
5361
|
-
numberOfCircle = numberOfCircle === VOID ? this.
|
|
5362
|
-
isChoseSuit = isChoseSuit === VOID ? this.
|
|
5363
|
-
isChoseSuitInLastGame = isChoseSuitInLastGame === VOID ? this.
|
|
5339
|
+
isGameCreator = isGameCreator === VOID ? this.d6t_1 : isGameCreator;
|
|
5340
|
+
playerNumber = playerNumber === VOID ? this.e6t_1 : playerNumber;
|
|
5341
|
+
isGameWinner = isGameWinner === VOID ? this.f6t_1 : isGameWinner;
|
|
5342
|
+
isShuffleCards = isShuffleCards === VOID ? this.g6t_1 : isShuffleCards;
|
|
5343
|
+
isRoundWinner = isRoundWinner === VOID ? this.h6t_1 : isRoundWinner;
|
|
5344
|
+
isWonCardLot = isWonCardLot === VOID ? this.i6t_1 : isWonCardLot;
|
|
5345
|
+
isEarnedBiggestPointInLastGame = isEarnedBiggestPointInLastGame === VOID ? this.j6t_1 : isEarnedBiggestPointInLastGame;
|
|
5346
|
+
failedContractsCount = failedContractsCount === VOID ? this.k6t_1 : failedContractsCount;
|
|
5347
|
+
sentVoicesCount = sentVoicesCount === VOID ? this.l6t_1 : sentVoicesCount;
|
|
5348
|
+
isGotLastBribe = isGotLastBribe === VOID ? this.m6t_1 : isGotLastBribe;
|
|
5349
|
+
numberOfCircle = numberOfCircle === VOID ? this.n6t_1 : numberOfCircle;
|
|
5350
|
+
isChoseSuit = isChoseSuit === VOID ? this.o6t_1 : isChoseSuit;
|
|
5351
|
+
isChoseSuitInLastGame = isChoseSuitInLastGame === VOID ? this.p6t_1 : isChoseSuitInLastGame;
|
|
5364
5352
|
return $super === VOID ? this.i6x(isGameCreator, playerNumber, isGameWinner, isShuffleCards, isRoundWinner, isWonCardLot, isEarnedBiggestPointInLastGame, failedContractsCount, sentVoicesCount, isGotLastBribe, numberOfCircle, isChoseSuit, isChoseSuitInLastGame) : $super.i6x.call(this, isGameCreator, playerNumber, isGameWinner, isShuffleCards, isRoundWinner, isWonCardLot, isEarnedBiggestPointInLastGame, failedContractsCount, sentVoicesCount, isGotLastBribe, numberOfCircle, isChoseSuit, isChoseSuitInLastGame);
|
|
5365
5353
|
};
|
|
5366
5354
|
protoOf(PlayerOptions).hashCode = function () {
|
|
5367
|
-
var result = getBooleanHashCode(this.
|
|
5368
|
-
result = imul(result, 31) + this.
|
|
5369
|
-
result = imul(result, 31) + getBooleanHashCode(this.e6t_1) | 0;
|
|
5355
|
+
var result = getBooleanHashCode(this.d6t_1);
|
|
5356
|
+
result = imul(result, 31) + this.e6t_1 | 0;
|
|
5370
5357
|
result = imul(result, 31) + getBooleanHashCode(this.f6t_1) | 0;
|
|
5371
5358
|
result = imul(result, 31) + getBooleanHashCode(this.g6t_1) | 0;
|
|
5372
5359
|
result = imul(result, 31) + getBooleanHashCode(this.h6t_1) | 0;
|
|
5373
5360
|
result = imul(result, 31) + getBooleanHashCode(this.i6t_1) | 0;
|
|
5374
|
-
result = imul(result, 31) + this.j6t_1 | 0;
|
|
5361
|
+
result = imul(result, 31) + getBooleanHashCode(this.j6t_1) | 0;
|
|
5375
5362
|
result = imul(result, 31) + this.k6t_1 | 0;
|
|
5376
|
-
result = imul(result, 31) +
|
|
5377
|
-
result = imul(result, 31) + this.m6t_1
|
|
5378
|
-
result = imul(result, 31) +
|
|
5363
|
+
result = imul(result, 31) + this.l6t_1 | 0;
|
|
5364
|
+
result = imul(result, 31) + getBooleanHashCode(this.m6t_1) | 0;
|
|
5365
|
+
result = imul(result, 31) + this.n6t_1.hashCode() | 0;
|
|
5379
5366
|
result = imul(result, 31) + getBooleanHashCode(this.o6t_1) | 0;
|
|
5367
|
+
result = imul(result, 31) + getBooleanHashCode(this.p6t_1) | 0;
|
|
5380
5368
|
return result;
|
|
5381
5369
|
};
|
|
5382
5370
|
protoOf(PlayerOptions).equals = function (other) {
|
|
@@ -5385,8 +5373,6 @@
|
|
|
5385
5373
|
if (!(other instanceof PlayerOptions))
|
|
5386
5374
|
return false;
|
|
5387
5375
|
var tmp0_other_with_cast = other instanceof PlayerOptions ? other : THROW_CCE();
|
|
5388
|
-
if (!(this.c6t_1 === tmp0_other_with_cast.c6t_1))
|
|
5389
|
-
return false;
|
|
5390
5376
|
if (!(this.d6t_1 === tmp0_other_with_cast.d6t_1))
|
|
5391
5377
|
return false;
|
|
5392
5378
|
if (!(this.e6t_1 === tmp0_other_with_cast.e6t_1))
|
|
@@ -5405,53 +5391,55 @@
|
|
|
5405
5391
|
return false;
|
|
5406
5392
|
if (!(this.l6t_1 === tmp0_other_with_cast.l6t_1))
|
|
5407
5393
|
return false;
|
|
5408
|
-
if (!this.m6t_1
|
|
5394
|
+
if (!(this.m6t_1 === tmp0_other_with_cast.m6t_1))
|
|
5409
5395
|
return false;
|
|
5410
|
-
if (!
|
|
5396
|
+
if (!this.n6t_1.equals(tmp0_other_with_cast.n6t_1))
|
|
5411
5397
|
return false;
|
|
5412
5398
|
if (!(this.o6t_1 === tmp0_other_with_cast.o6t_1))
|
|
5413
5399
|
return false;
|
|
5400
|
+
if (!(this.p6t_1 === tmp0_other_with_cast.p6t_1))
|
|
5401
|
+
return false;
|
|
5414
5402
|
return true;
|
|
5415
5403
|
};
|
|
5416
5404
|
function PlayerPoints(earnedPoints, combinations, earnedCards) {
|
|
5417
5405
|
earnedPoints = earnedPoints === VOID ? 0 : earnedPoints;
|
|
5418
5406
|
combinations = combinations === VOID ? emptyList() : combinations;
|
|
5419
5407
|
earnedCards = earnedCards === VOID ? emptyList() : earnedCards;
|
|
5420
|
-
this.
|
|
5421
|
-
this.
|
|
5422
|
-
this.
|
|
5408
|
+
this.k6u_1 = earnedPoints;
|
|
5409
|
+
this.l6u_1 = combinations;
|
|
5410
|
+
this.m6u_1 = earnedCards;
|
|
5423
5411
|
}
|
|
5424
5412
|
protoOf(PlayerPoints).toString = function () {
|
|
5425
5413
|
// Inline function 'kotlin.takeIf' call
|
|
5426
|
-
var this_0 = 'earnedPoints=' + this.
|
|
5414
|
+
var this_0 = 'earnedPoints=' + this.k6u_1;
|
|
5427
5415
|
// Inline function 'kotlin.contracts.contract' call
|
|
5428
5416
|
var tmp;
|
|
5429
5417
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPoints.toString.<anonymous>' call
|
|
5430
|
-
if (!(this.
|
|
5418
|
+
if (!(this.k6u_1 === 0)) {
|
|
5431
5419
|
tmp = this_0;
|
|
5432
5420
|
} else {
|
|
5433
5421
|
tmp = null;
|
|
5434
5422
|
}
|
|
5435
5423
|
var tmp_0 = tmp;
|
|
5436
5424
|
// Inline function 'kotlin.takeIf' call
|
|
5437
|
-
var this_1 = 'combinations=' + toString(this.
|
|
5425
|
+
var this_1 = 'combinations=' + toString(this.l6u_1);
|
|
5438
5426
|
// Inline function 'kotlin.contracts.contract' call
|
|
5439
5427
|
var tmp_1;
|
|
5440
5428
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPoints.toString.<anonymous>' call
|
|
5441
5429
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
5442
|
-
if (!this.
|
|
5430
|
+
if (!this.l6u_1.p()) {
|
|
5443
5431
|
tmp_1 = this_1;
|
|
5444
5432
|
} else {
|
|
5445
5433
|
tmp_1 = null;
|
|
5446
5434
|
}
|
|
5447
5435
|
var tmp_2 = tmp_1;
|
|
5448
5436
|
// Inline function 'kotlin.takeIf' call
|
|
5449
|
-
var this_2 = 'earnedCards=' + toString(this.
|
|
5437
|
+
var this_2 = 'earnedCards=' + toString(this.m6u_1);
|
|
5450
5438
|
// Inline function 'kotlin.contracts.contract' call
|
|
5451
5439
|
var tmp_3;
|
|
5452
5440
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPoints.toString.<anonymous>' call
|
|
5453
5441
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
5454
|
-
if (!this.
|
|
5442
|
+
if (!this.m6u_1.p()) {
|
|
5455
5443
|
tmp_3 = this_2;
|
|
5456
5444
|
} else {
|
|
5457
5445
|
tmp_3 = null;
|
|
@@ -5463,15 +5451,15 @@
|
|
|
5463
5451
|
return new PlayerPoints(earnedPoints, combinations, earnedCards);
|
|
5464
5452
|
};
|
|
5465
5453
|
protoOf(PlayerPoints).l6x = function (earnedPoints, combinations, earnedCards, $super) {
|
|
5466
|
-
earnedPoints = earnedPoints === VOID ? this.
|
|
5467
|
-
combinations = combinations === VOID ? this.
|
|
5468
|
-
earnedCards = earnedCards === VOID ? this.
|
|
5454
|
+
earnedPoints = earnedPoints === VOID ? this.k6u_1 : earnedPoints;
|
|
5455
|
+
combinations = combinations === VOID ? this.l6u_1 : combinations;
|
|
5456
|
+
earnedCards = earnedCards === VOID ? this.m6u_1 : earnedCards;
|
|
5469
5457
|
return $super === VOID ? this.k6x(earnedPoints, combinations, earnedCards) : $super.k6x.call(this, earnedPoints, combinations, earnedCards);
|
|
5470
5458
|
};
|
|
5471
5459
|
protoOf(PlayerPoints).hashCode = function () {
|
|
5472
|
-
var result = this.
|
|
5473
|
-
result = imul(result, 31) + hashCode(this.k6u_1) | 0;
|
|
5460
|
+
var result = this.k6u_1;
|
|
5474
5461
|
result = imul(result, 31) + hashCode(this.l6u_1) | 0;
|
|
5462
|
+
result = imul(result, 31) + hashCode(this.m6u_1) | 0;
|
|
5475
5463
|
return result;
|
|
5476
5464
|
};
|
|
5477
5465
|
protoOf(PlayerPoints).equals = function (other) {
|
|
@@ -5480,19 +5468,19 @@
|
|
|
5480
5468
|
if (!(other instanceof PlayerPoints))
|
|
5481
5469
|
return false;
|
|
5482
5470
|
var tmp0_other_with_cast = other instanceof PlayerPoints ? other : THROW_CCE();
|
|
5483
|
-
if (!(this.
|
|
5484
|
-
return false;
|
|
5485
|
-
if (!equals(this.k6u_1, tmp0_other_with_cast.k6u_1))
|
|
5471
|
+
if (!(this.k6u_1 === tmp0_other_with_cast.k6u_1))
|
|
5486
5472
|
return false;
|
|
5487
5473
|
if (!equals(this.l6u_1, tmp0_other_with_cast.l6u_1))
|
|
5488
5474
|
return false;
|
|
5475
|
+
if (!equals(this.m6u_1, tmp0_other_with_cast.m6u_1))
|
|
5476
|
+
return false;
|
|
5489
5477
|
return true;
|
|
5490
5478
|
};
|
|
5491
5479
|
function hasThirdByte($this, byteState) {
|
|
5492
5480
|
var tmp$ret$0;
|
|
5493
5481
|
$l$block_0: {
|
|
5494
5482
|
// Inline function 'kotlin.collections.all' call
|
|
5495
|
-
var this_0 = $this.
|
|
5483
|
+
var this_0 = $this.o6u_1;
|
|
5496
5484
|
var tmp;
|
|
5497
5485
|
if (isInterface(this_0, Collection)) {
|
|
5498
5486
|
tmp = this_0.p();
|
|
@@ -5507,7 +5495,7 @@
|
|
|
5507
5495
|
while (tmp0_iterator.k()) {
|
|
5508
5496
|
var element = tmp0_iterator.l();
|
|
5509
5497
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorDecorator.hasThirdByte.<anonymous>' call
|
|
5510
|
-
if (!(byteState.m6x(element.
|
|
5498
|
+
if (!(byteState.m6x(element.u6u_1).isFailed && element.v6u_1 >= 2)) {
|
|
5511
5499
|
tmp$ret$0 = false;
|
|
5512
5500
|
break $l$block_0;
|
|
5513
5501
|
}
|
|
@@ -5520,8 +5508,8 @@
|
|
|
5520
5508
|
this.n6x_1 = roundLostState;
|
|
5521
5509
|
}
|
|
5522
5510
|
protoOf(GameWinnerComparator).o6x = function (a, b) {
|
|
5523
|
-
var points1 = a.
|
|
5524
|
-
var points2 = b.
|
|
5511
|
+
var points1 = a.e6v(this.n6x_1);
|
|
5512
|
+
var points2 = b.e6v(this.n6x_1);
|
|
5525
5513
|
var tmp;
|
|
5526
5514
|
if (points1 > points2) {
|
|
5527
5515
|
tmp = -1;
|
|
@@ -5529,9 +5517,9 @@
|
|
|
5529
5517
|
tmp = 1;
|
|
5530
5518
|
} else {
|
|
5531
5519
|
var tmp_0;
|
|
5532
|
-
if (a.
|
|
5520
|
+
if (a.n6u_1) {
|
|
5533
5521
|
tmp_0 = -1;
|
|
5534
|
-
} else if (b.
|
|
5522
|
+
} else if (b.n6u_1) {
|
|
5535
5523
|
tmp_0 = 1;
|
|
5536
5524
|
} else {
|
|
5537
5525
|
tmp_0 = 0;
|
|
@@ -5547,8 +5535,8 @@
|
|
|
5547
5535
|
function RoundEarnedPointsPlayersContainerComparator() {
|
|
5548
5536
|
}
|
|
5549
5537
|
protoOf(RoundEarnedPointsPlayersContainerComparator).o6x = function (a, b) {
|
|
5550
|
-
var points1 = a.
|
|
5551
|
-
var points2 = b.
|
|
5538
|
+
var points1 = a.c6v();
|
|
5539
|
+
var points2 = b.c6v();
|
|
5552
5540
|
var tmp;
|
|
5553
5541
|
if (points1 > points2) {
|
|
5554
5542
|
tmp = -1;
|
|
@@ -5571,8 +5559,8 @@
|
|
|
5571
5559
|
this.p6x_1 = byteState;
|
|
5572
5560
|
}
|
|
5573
5561
|
protoOf(RoundPointsPlayersContainerComparator).o6x = function (a, b) {
|
|
5574
|
-
var points1 = a.
|
|
5575
|
-
var points2 = b.
|
|
5562
|
+
var points1 = a.d6v(this.p6x_1);
|
|
5563
|
+
var points2 = b.d6v(this.p6x_1);
|
|
5576
5564
|
var tmp;
|
|
5577
5565
|
if (points1 > points2) {
|
|
5578
5566
|
tmp = -1;
|
|
@@ -5640,19 +5628,19 @@
|
|
|
5640
5628
|
return Companion_instance_19;
|
|
5641
5629
|
}
|
|
5642
5630
|
function PlayerPointsCalculatorDecorator(isPlaying, playersPoints) {
|
|
5643
|
-
this.
|
|
5644
|
-
this.
|
|
5631
|
+
this.n6u_1 = isPlaying;
|
|
5632
|
+
this.o6u_1 = playersPoints;
|
|
5645
5633
|
}
|
|
5646
|
-
protoOf(PlayerPointsCalculatorDecorator).
|
|
5634
|
+
protoOf(PlayerPointsCalculatorDecorator).p6u = function () {
|
|
5647
5635
|
// Inline function 'kotlin.collections.map' call
|
|
5648
|
-
var this_0 = this.
|
|
5636
|
+
var this_0 = this.o6u_1;
|
|
5649
5637
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5650
5638
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
5651
5639
|
var tmp0_iterator = this_0.j();
|
|
5652
5640
|
while (tmp0_iterator.k()) {
|
|
5653
5641
|
var item = tmp0_iterator.l();
|
|
5654
5642
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorDecorator.<get-playersIds>.<anonymous>' call
|
|
5655
|
-
var tmp$ret$0 = item.
|
|
5643
|
+
var tmp$ret$0 = item.u6u_1;
|
|
5656
5644
|
destination.e(tmp$ret$0);
|
|
5657
5645
|
}
|
|
5658
5646
|
return destination;
|
|
@@ -5661,7 +5649,7 @@
|
|
|
5661
5649
|
var tmp$ret$0;
|
|
5662
5650
|
$l$block_0: {
|
|
5663
5651
|
// Inline function 'kotlin.collections.all' call
|
|
5664
|
-
var this_0 = this.
|
|
5652
|
+
var this_0 = this.o6u_1;
|
|
5665
5653
|
var tmp;
|
|
5666
5654
|
if (isInterface(this_0, Collection)) {
|
|
5667
5655
|
tmp = this_0.p();
|
|
@@ -5676,7 +5664,7 @@
|
|
|
5676
5664
|
while (tmp0_iterator.k()) {
|
|
5677
5665
|
var element = tmp0_iterator.l();
|
|
5678
5666
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorDecorator.isFulfilled.<anonymous>' call
|
|
5679
|
-
if (!byteState.m6x(element.
|
|
5667
|
+
if (!byteState.m6x(element.u6u_1).isFulfilled) {
|
|
5680
5668
|
tmp$ret$0 = false;
|
|
5681
5669
|
break $l$block_0;
|
|
5682
5670
|
}
|
|
@@ -5689,7 +5677,7 @@
|
|
|
5689
5677
|
var tmp$ret$0;
|
|
5690
5678
|
$l$block_0: {
|
|
5691
5679
|
// Inline function 'kotlin.collections.all' call
|
|
5692
|
-
var this_0 = this.
|
|
5680
|
+
var this_0 = this.o6u_1;
|
|
5693
5681
|
var tmp;
|
|
5694
5682
|
if (isInterface(this_0, Collection)) {
|
|
5695
5683
|
tmp = this_0.p();
|
|
@@ -5704,7 +5692,7 @@
|
|
|
5704
5692
|
while (tmp0_iterator.k()) {
|
|
5705
5693
|
var element = tmp0_iterator.l();
|
|
5706
5694
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorDecorator.isControversial.<anonymous>' call
|
|
5707
|
-
if (!byteState.m6x(element.
|
|
5695
|
+
if (!byteState.m6x(element.u6u_1).isControversial) {
|
|
5708
5696
|
tmp$ret$0 = false;
|
|
5709
5697
|
break $l$block_0;
|
|
5710
5698
|
}
|
|
@@ -5713,39 +5701,39 @@
|
|
|
5713
5701
|
}
|
|
5714
5702
|
return tmp$ret$0;
|
|
5715
5703
|
};
|
|
5716
|
-
protoOf(PlayerPointsCalculatorDecorator).
|
|
5704
|
+
protoOf(PlayerPointsCalculatorDecorator).e6v = function (byteState) {
|
|
5717
5705
|
// Inline function 'kotlin.collections.sumOf' call
|
|
5718
5706
|
var sum = 0;
|
|
5719
|
-
var tmp0_iterator = this.
|
|
5707
|
+
var tmp0_iterator = this.o6u_1.j();
|
|
5720
5708
|
while (tmp0_iterator.k()) {
|
|
5721
5709
|
var element = tmp0_iterator.l();
|
|
5722
5710
|
var tmp = sum;
|
|
5723
5711
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorDecorator.finalGamePoints.<anonymous>' call
|
|
5724
|
-
sum = tmp + element.
|
|
5712
|
+
sum = tmp + element.e6v(byteState) | 0;
|
|
5725
5713
|
}
|
|
5726
5714
|
return sum;
|
|
5727
5715
|
};
|
|
5728
|
-
protoOf(PlayerPointsCalculatorDecorator).
|
|
5716
|
+
protoOf(PlayerPointsCalculatorDecorator).d6v = function (byteState) {
|
|
5729
5717
|
// Inline function 'kotlin.collections.sumOf' call
|
|
5730
5718
|
var sum = 0;
|
|
5731
|
-
var tmp0_iterator = this.
|
|
5719
|
+
var tmp0_iterator = this.o6u_1.j();
|
|
5732
5720
|
while (tmp0_iterator.k()) {
|
|
5733
5721
|
var element = tmp0_iterator.l();
|
|
5734
5722
|
var tmp = sum;
|
|
5735
5723
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorDecorator.finalRoundPoints.<anonymous>' call
|
|
5736
|
-
sum = tmp + element.
|
|
5724
|
+
sum = tmp + element.d6v(byteState) | 0;
|
|
5737
5725
|
}
|
|
5738
5726
|
return sum;
|
|
5739
5727
|
};
|
|
5740
|
-
protoOf(PlayerPointsCalculatorDecorator).
|
|
5728
|
+
protoOf(PlayerPointsCalculatorDecorator).c6v = function () {
|
|
5741
5729
|
// Inline function 'kotlin.collections.sumOf' call
|
|
5742
5730
|
var sum = 0;
|
|
5743
|
-
var tmp0_iterator = this.
|
|
5731
|
+
var tmp0_iterator = this.o6u_1.j();
|
|
5744
5732
|
while (tmp0_iterator.k()) {
|
|
5745
5733
|
var element = tmp0_iterator.l();
|
|
5746
5734
|
var tmp = sum;
|
|
5747
5735
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorDecorator.<get-roundEarnedPoints>.<anonymous>' call
|
|
5748
|
-
sum = tmp + element.
|
|
5736
|
+
sum = tmp + element.c6v() | 0;
|
|
5749
5737
|
}
|
|
5750
5738
|
return sum;
|
|
5751
5739
|
};
|
|
@@ -5753,7 +5741,7 @@
|
|
|
5753
5741
|
var tmp$ret$0;
|
|
5754
5742
|
$l$block_0: {
|
|
5755
5743
|
// Inline function 'kotlin.collections.any' call
|
|
5756
|
-
var this_0 = this.
|
|
5744
|
+
var this_0 = this.o6u_1;
|
|
5757
5745
|
var tmp;
|
|
5758
5746
|
if (isInterface(this_0, Collection)) {
|
|
5759
5747
|
tmp = this_0.p();
|
|
@@ -5787,10 +5775,10 @@
|
|
|
5787
5775
|
tmp = rules.fineAfterThirdFailedContract;
|
|
5788
5776
|
}
|
|
5789
5777
|
var fine = tmp;
|
|
5790
|
-
Companion_instance_19.v6x(this.
|
|
5778
|
+
Companion_instance_19.v6x(this.o6u_1, -fine | 0, CombinationType_FINE_THIRD_FAILED_CONTRACT_getInstance(), VOID, combinationsFactory);
|
|
5791
5779
|
}
|
|
5792
5780
|
// Inline function 'kotlin.collections.forEach' call
|
|
5793
|
-
var tmp0_iterator = this.
|
|
5781
|
+
var tmp0_iterator = this.o6u_1.j();
|
|
5794
5782
|
while (tmp0_iterator.k()) {
|
|
5795
5783
|
var element = tmp0_iterator.l();
|
|
5796
5784
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorDecorator.onFailedContract.<anonymous>' call
|
|
@@ -5798,9 +5786,9 @@
|
|
|
5798
5786
|
}
|
|
5799
5787
|
};
|
|
5800
5788
|
protoOf(PlayerPointsCalculatorDecorator).b6y = function (combinationsFactory) {
|
|
5801
|
-
Companion_instance_19.r6x(this.
|
|
5789
|
+
Companion_instance_19.r6x(this.o6u_1, this.c6v(), CombinationType_BONUS_CONTROVERSIAL_CONTRACT_getInstance(), CombinationState_VERIFYING_getInstance(), combinationsFactory);
|
|
5802
5790
|
// Inline function 'kotlin.collections.forEach' call
|
|
5803
|
-
var tmp0_iterator = this.
|
|
5791
|
+
var tmp0_iterator = this.o6u_1.j();
|
|
5804
5792
|
while (tmp0_iterator.k()) {
|
|
5805
5793
|
var element = tmp0_iterator.l();
|
|
5806
5794
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorDecorator.onControversialContract.<anonymous>' call
|
|
@@ -5817,10 +5805,10 @@
|
|
|
5817
5805
|
tmp = rules.fineIfNoBribes;
|
|
5818
5806
|
}
|
|
5819
5807
|
var fine = tmp;
|
|
5820
|
-
Companion_instance_19.v6x(this.
|
|
5808
|
+
Companion_instance_19.v6x(this.o6u_1, -fine | 0, CombinationType_FINE_NO_BRIBES_getInstance(), VOID, combinationsFactory);
|
|
5821
5809
|
}
|
|
5822
5810
|
// Inline function 'kotlin.collections.forEach' call
|
|
5823
|
-
var tmp0_iterator = this.
|
|
5811
|
+
var tmp0_iterator = this.o6u_1.j();
|
|
5824
5812
|
while (tmp0_iterator.k()) {
|
|
5825
5813
|
var element = tmp0_iterator.l();
|
|
5826
5814
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorDecorator.onNoBribes.<anonymous>' call
|
|
@@ -5828,11 +5816,11 @@
|
|
|
5828
5816
|
}
|
|
5829
5817
|
};
|
|
5830
5818
|
protoOf(PlayerPointsCalculatorDecorator).toString = function () {
|
|
5831
|
-
return 'PlayerPointsCalculatorDecorator(isPlaying=' + this.
|
|
5819
|
+
return 'PlayerPointsCalculatorDecorator(isPlaying=' + this.n6u_1 + ', playersPoints=' + toString(this.o6u_1) + ')';
|
|
5832
5820
|
};
|
|
5833
5821
|
protoOf(PlayerPointsCalculatorDecorator).hashCode = function () {
|
|
5834
|
-
var result = getBooleanHashCode(this.
|
|
5835
|
-
result = imul(result, 31) + hashCode(this.
|
|
5822
|
+
var result = getBooleanHashCode(this.n6u_1);
|
|
5823
|
+
result = imul(result, 31) + hashCode(this.o6u_1) | 0;
|
|
5836
5824
|
return result;
|
|
5837
5825
|
};
|
|
5838
5826
|
protoOf(PlayerPointsCalculatorDecorator).equals = function (other) {
|
|
@@ -5841,21 +5829,21 @@
|
|
|
5841
5829
|
if (!(other instanceof PlayerPointsCalculatorDecorator))
|
|
5842
5830
|
return false;
|
|
5843
5831
|
var tmp0_other_with_cast = other instanceof PlayerPointsCalculatorDecorator ? other : THROW_CCE();
|
|
5844
|
-
if (!(this.
|
|
5832
|
+
if (!(this.n6u_1 === tmp0_other_with_cast.n6u_1))
|
|
5845
5833
|
return false;
|
|
5846
|
-
if (!equals(this.
|
|
5834
|
+
if (!equals(this.o6u_1, tmp0_other_with_cast.o6u_1))
|
|
5847
5835
|
return false;
|
|
5848
5836
|
return true;
|
|
5849
5837
|
};
|
|
5850
5838
|
function deleteCombination($this, combination) {
|
|
5851
|
-
$this.
|
|
5839
|
+
$this.z6u_1.y1(combination);
|
|
5852
5840
|
}
|
|
5853
5841
|
function getPointsFromCombinations($this) {
|
|
5854
5842
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
5855
|
-
if (!$this.
|
|
5843
|
+
if (!$this.z6u_1.p()) {
|
|
5856
5844
|
// Inline function 'kotlin.collections.sumOf' call
|
|
5857
5845
|
var sum = 0;
|
|
5858
|
-
var tmp0_iterator = filterByCombinationState($this.
|
|
5846
|
+
var tmp0_iterator = filterByCombinationState($this.z6u_1, [CombinationState_ACCEPTED_getInstance()]).j();
|
|
5859
5847
|
while (tmp0_iterator.k()) {
|
|
5860
5848
|
var element = tmp0_iterator.l();
|
|
5861
5849
|
var tmp = sum;
|
|
@@ -5868,10 +5856,10 @@
|
|
|
5868
5856
|
}
|
|
5869
5857
|
function getPointsFromRoundCombinations($this) {
|
|
5870
5858
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
5871
|
-
if (!$this.
|
|
5859
|
+
if (!$this.z6u_1.p()) {
|
|
5872
5860
|
// Inline function 'kotlin.collections.sumOf' call
|
|
5873
5861
|
var sum = 0;
|
|
5874
|
-
var tmp0_iterator = filterCombinationsAndLastBribe(filterByCombinationState($this.
|
|
5862
|
+
var tmp0_iterator = filterCombinationsAndLastBribe(filterByCombinationState($this.z6u_1, [CombinationState_ACCEPTED_getInstance()])).j();
|
|
5875
5863
|
while (tmp0_iterator.k()) {
|
|
5876
5864
|
var element = tmp0_iterator.l();
|
|
5877
5865
|
var tmp = sum;
|
|
@@ -5886,8 +5874,8 @@
|
|
|
5886
5874
|
this.n6y_1 = byteState;
|
|
5887
5875
|
}
|
|
5888
5876
|
protoOf(RoundPointsPlayersContainerComparator_0).o6y = function (a, b) {
|
|
5889
|
-
var points1 = a.
|
|
5890
|
-
var points2 = b.
|
|
5877
|
+
var points1 = a.d6v(this.n6y_1);
|
|
5878
|
+
var points2 = b.d6v(this.n6y_1);
|
|
5891
5879
|
var tmp;
|
|
5892
5880
|
if (points1 > points2) {
|
|
5893
5881
|
tmp = -1;
|
|
@@ -5910,12 +5898,12 @@
|
|
|
5910
5898
|
} else {
|
|
5911
5899
|
// Inline function 'kotlin.collections.sumOf' call
|
|
5912
5900
|
var sum = 0;
|
|
5913
|
-
var tmp0_iterator = this$0.
|
|
5901
|
+
var tmp0_iterator = this$0.y6u_1.j();
|
|
5914
5902
|
while (tmp0_iterator.k()) {
|
|
5915
5903
|
var element = tmp0_iterator.l();
|
|
5916
5904
|
var tmp_0 = sum;
|
|
5917
5905
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorModel.earnedCardsPoints$delegate.<anonymous>.<anonymous>' call
|
|
5918
|
-
sum = tmp_0 + getPoint(element, this$0.
|
|
5906
|
+
sum = tmp_0 + getPoint(element, this$0.x6u_1) | 0;
|
|
5919
5907
|
}
|
|
5920
5908
|
tmp = sum;
|
|
5921
5909
|
}
|
|
@@ -5923,31 +5911,31 @@
|
|
|
5923
5911
|
};
|
|
5924
5912
|
}
|
|
5925
5913
|
function PlayerPointsCalculatorModel(playerId, amountOfBytes, beforeEarnedPoints, trump, earnedCards, combinations) {
|
|
5926
|
-
this.
|
|
5927
|
-
this.
|
|
5928
|
-
this.
|
|
5929
|
-
this.
|
|
5930
|
-
this.
|
|
5931
|
-
this.
|
|
5914
|
+
this.u6u_1 = playerId;
|
|
5915
|
+
this.v6u_1 = amountOfBytes;
|
|
5916
|
+
this.w6u_1 = beforeEarnedPoints;
|
|
5917
|
+
this.x6u_1 = trump;
|
|
5918
|
+
this.y6u_1 = earnedCards;
|
|
5919
|
+
this.z6u_1 = combinations;
|
|
5932
5920
|
var tmp = this;
|
|
5933
|
-
tmp.
|
|
5921
|
+
tmp.a6v_1 = lazy(PlayerPointsCalculatorModel$earnedCardsPoints$delegate$lambda(this));
|
|
5934
5922
|
}
|
|
5935
|
-
protoOf(PlayerPointsCalculatorModel).
|
|
5923
|
+
protoOf(PlayerPointsCalculatorModel).b6v = function () {
|
|
5936
5924
|
// Inline function 'kotlin.getValue' call
|
|
5937
|
-
var this_0 = this.
|
|
5925
|
+
var this_0 = this.a6v_1;
|
|
5938
5926
|
earnedCardsPoints$factory();
|
|
5939
5927
|
return this_0.u();
|
|
5940
5928
|
};
|
|
5941
|
-
protoOf(PlayerPointsCalculatorModel).
|
|
5942
|
-
return this.
|
|
5929
|
+
protoOf(PlayerPointsCalculatorModel).c6v = function () {
|
|
5930
|
+
return this.b6v() + getPointsFromRoundCombinations(this) | 0;
|
|
5943
5931
|
};
|
|
5944
|
-
protoOf(PlayerPointsCalculatorModel).
|
|
5945
|
-
return this.
|
|
5932
|
+
protoOf(PlayerPointsCalculatorModel).e6v = function (byteState) {
|
|
5933
|
+
return this.w6u_1 + this.d6v(byteState) | 0;
|
|
5946
5934
|
};
|
|
5947
|
-
protoOf(PlayerPointsCalculatorModel).
|
|
5935
|
+
protoOf(PlayerPointsCalculatorModel).d6v = function (byteState) {
|
|
5948
5936
|
var tmp;
|
|
5949
|
-
if (byteState.m6x(this.
|
|
5950
|
-
tmp = this.
|
|
5937
|
+
if (byteState.m6x(this.u6u_1).isFulfilled) {
|
|
5938
|
+
tmp = this.b6v() + getPointsFromCombinations(this) | 0;
|
|
5951
5939
|
} else {
|
|
5952
5940
|
tmp = getPointsFromCombinations(this);
|
|
5953
5941
|
}
|
|
@@ -5955,14 +5943,14 @@
|
|
|
5955
5943
|
};
|
|
5956
5944
|
protoOf(PlayerPointsCalculatorModel).y6x = function () {
|
|
5957
5945
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
5958
|
-
return !this.
|
|
5946
|
+
return !this.y6u_1.p();
|
|
5959
5947
|
};
|
|
5960
|
-
protoOf(PlayerPointsCalculatorModel).
|
|
5961
|
-
return filterByCombinationState(this.
|
|
5948
|
+
protoOf(PlayerPointsCalculatorModel).f6v = function () {
|
|
5949
|
+
return filterByCombinationState(this.z6u_1, [CombinationState_VERIFYING_getInstance(), CombinationState_REJECTED_getInstance(), CombinationState_ACCEPTED_getInstance(), CombinationState_CANCELED_getInstance()]);
|
|
5962
5950
|
};
|
|
5963
5951
|
protoOf(PlayerPointsCalculatorModel).p6y = function () {
|
|
5964
5952
|
// Inline function 'kotlin.collections.forEach' call
|
|
5965
|
-
var tmp0_iterator = filterByCombinationType(filterByCombinationState(this.
|
|
5953
|
+
var tmp0_iterator = filterByCombinationType(filterByCombinationState(this.z6u_1, [CombinationState_VERIFYING_getInstance()]), [CombinationType_BONUS_CONTROVERSIAL_CONTRACT_getInstance()]).j();
|
|
5966
5954
|
while (tmp0_iterator.k()) {
|
|
5967
5955
|
var element = tmp0_iterator.l();
|
|
5968
5956
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorModel.acceptHangingByte.<anonymous>' call
|
|
@@ -5973,7 +5961,7 @@
|
|
|
5973
5961
|
protoOf(PlayerPointsCalculatorModel).r6y = function () {
|
|
5974
5962
|
// Inline function 'kotlin.collections.sumOf' call
|
|
5975
5963
|
var sum = 0;
|
|
5976
|
-
var tmp0_iterator = filterByCombinationType(filterByCombinationState(this.
|
|
5964
|
+
var tmp0_iterator = filterByCombinationType(filterByCombinationState(this.z6u_1, [CombinationState_VERIFYING_getInstance()]), [CombinationType_BONUS_CONTROVERSIAL_CONTRACT_getInstance()]).j();
|
|
5977
5965
|
while (tmp0_iterator.k()) {
|
|
5978
5966
|
var element = tmp0_iterator.l();
|
|
5979
5967
|
var tmp = sum;
|
|
@@ -5984,7 +5972,7 @@
|
|
|
5984
5972
|
};
|
|
5985
5973
|
protoOf(PlayerPointsCalculatorModel).s6y = function () {
|
|
5986
5974
|
// Inline function 'kotlin.collections.forEach' call
|
|
5987
|
-
var tmp0_iterator = filterByCombinationType(filterByCombinationState(this.
|
|
5975
|
+
var tmp0_iterator = filterByCombinationType(filterByCombinationState(this.z6u_1, [CombinationState_VERIFYING_getInstance()]), [CombinationType_BONUS_CONTROVERSIAL_CONTRACT_getInstance()]).j();
|
|
5988
5976
|
while (tmp0_iterator.k()) {
|
|
5989
5977
|
var element = tmp0_iterator.l();
|
|
5990
5978
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorModel.cancelHangingByte.<anonymous>' call
|
|
@@ -5994,7 +5982,7 @@
|
|
|
5994
5982
|
};
|
|
5995
5983
|
protoOf(PlayerPointsCalculatorModel).d6y = function () {
|
|
5996
5984
|
// Inline function 'kotlin.collections.forEach' call
|
|
5997
|
-
var tmp0_iterator = filterByCombinationState(filterCombinationsAndLastBribe(filterWithFirstCardOrBela(this.
|
|
5985
|
+
var tmp0_iterator = filterByCombinationState(filterCombinationsAndLastBribe(filterWithFirstCardOrBela(this.z6u_1)), [CombinationState_ACCEPTED_getInstance()]).j();
|
|
5998
5986
|
while (tmp0_iterator.k()) {
|
|
5999
5987
|
var element = tmp0_iterator.l();
|
|
6000
5988
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorModel.rejectRoundCombinations.<anonymous>' call
|
|
@@ -6004,9 +5992,9 @@
|
|
|
6004
5992
|
};
|
|
6005
5993
|
protoOf(PlayerPointsCalculatorModel).a6y = function () {
|
|
6006
5994
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6007
|
-
if (!this.
|
|
5995
|
+
if (!this.z6u_1.p()) {
|
|
6008
5996
|
// Inline function 'kotlin.collections.forEach' call
|
|
6009
|
-
var tmp0_iterator = filterByCombinationState(filterCombinationsAndLastBribe(this.
|
|
5997
|
+
var tmp0_iterator = filterByCombinationState(filterCombinationsAndLastBribe(this.z6u_1), [CombinationState_ACCEPTED_getInstance()]).j();
|
|
6010
5998
|
while (tmp0_iterator.k()) {
|
|
6011
5999
|
var element = tmp0_iterator.l();
|
|
6012
6000
|
// Inline function 'games.jass.logic.data.models.player.points.PlayerPointsCalculatorModel.cancelRoundCombinations.<anonymous>' call
|
|
@@ -6017,21 +6005,21 @@
|
|
|
6017
6005
|
};
|
|
6018
6006
|
protoOf(PlayerPointsCalculatorModel).u6x = function (combination) {
|
|
6019
6007
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6020
|
-
if (!this.
|
|
6008
|
+
if (!this.z6u_1.p()) {
|
|
6021
6009
|
deleteCombination(this, combination);
|
|
6022
6010
|
}
|
|
6023
|
-
this.
|
|
6011
|
+
this.z6u_1.e(combination);
|
|
6024
6012
|
};
|
|
6025
6013
|
protoOf(PlayerPointsCalculatorModel).toString = function () {
|
|
6026
|
-
return 'PlayerPointsCalculatorModel(playerId=' + this.
|
|
6014
|
+
return 'PlayerPointsCalculatorModel(playerId=' + this.u6u_1 + ', amountOfBytes=' + this.v6u_1 + ', beforeEarnedPoints=' + this.w6u_1 + ', trump=' + this.x6u_1.toString() + ', earnedCards=' + toString(this.y6u_1) + ', combinations=' + toString(this.z6u_1) + ')';
|
|
6027
6015
|
};
|
|
6028
6016
|
protoOf(PlayerPointsCalculatorModel).hashCode = function () {
|
|
6029
|
-
var result = getStringHashCode(this.
|
|
6030
|
-
result = imul(result, 31) + this.u6u_1 | 0;
|
|
6017
|
+
var result = getStringHashCode(this.u6u_1);
|
|
6031
6018
|
result = imul(result, 31) + this.v6u_1 | 0;
|
|
6032
|
-
result = imul(result, 31) + this.w6u_1
|
|
6033
|
-
result = imul(result, 31) +
|
|
6019
|
+
result = imul(result, 31) + this.w6u_1 | 0;
|
|
6020
|
+
result = imul(result, 31) + this.x6u_1.hashCode() | 0;
|
|
6034
6021
|
result = imul(result, 31) + hashCode(this.y6u_1) | 0;
|
|
6022
|
+
result = imul(result, 31) + hashCode(this.z6u_1) | 0;
|
|
6035
6023
|
return result;
|
|
6036
6024
|
};
|
|
6037
6025
|
protoOf(PlayerPointsCalculatorModel).equals = function (other) {
|
|
@@ -6040,18 +6028,18 @@
|
|
|
6040
6028
|
if (!(other instanceof PlayerPointsCalculatorModel))
|
|
6041
6029
|
return false;
|
|
6042
6030
|
var tmp0_other_with_cast = other instanceof PlayerPointsCalculatorModel ? other : THROW_CCE();
|
|
6043
|
-
if (!(this.t6u_1 === tmp0_other_with_cast.t6u_1))
|
|
6044
|
-
return false;
|
|
6045
6031
|
if (!(this.u6u_1 === tmp0_other_with_cast.u6u_1))
|
|
6046
6032
|
return false;
|
|
6047
6033
|
if (!(this.v6u_1 === tmp0_other_with_cast.v6u_1))
|
|
6048
6034
|
return false;
|
|
6049
|
-
if (!this.w6u_1
|
|
6035
|
+
if (!(this.w6u_1 === tmp0_other_with_cast.w6u_1))
|
|
6050
6036
|
return false;
|
|
6051
|
-
if (!
|
|
6037
|
+
if (!this.x6u_1.equals(tmp0_other_with_cast.x6u_1))
|
|
6052
6038
|
return false;
|
|
6053
6039
|
if (!equals(this.y6u_1, tmp0_other_with_cast.y6u_1))
|
|
6054
6040
|
return false;
|
|
6041
|
+
if (!equals(this.z6u_1, tmp0_other_with_cast.z6u_1))
|
|
6042
|
+
return false;
|
|
6055
6043
|
return true;
|
|
6056
6044
|
};
|
|
6057
6045
|
function CalculatedPoints(earnedBiggestPoint, roundWinners, gameWinners, roundMaxPoint, points) {
|
|
@@ -6093,7 +6081,7 @@
|
|
|
6093
6081
|
};
|
|
6094
6082
|
function earnedCardsPoints$factory() {
|
|
6095
6083
|
return getPropertyCallableRef('earnedCardsPoints', 1, KProperty1, function (receiver) {
|
|
6096
|
-
return receiver.
|
|
6084
|
+
return receiver.b6v();
|
|
6097
6085
|
}, null);
|
|
6098
6086
|
}
|
|
6099
6087
|
function PointsCell(playersPoints, roundContractState) {
|
|
@@ -6275,22 +6263,22 @@
|
|
|
6275
6263
|
return PointsDistributeMode_HIGHER_THEN_FAILED_PLAYER_instance;
|
|
6276
6264
|
}
|
|
6277
6265
|
function RoundLostState(playerIds, roundContractState) {
|
|
6278
|
-
this.
|
|
6279
|
-
this.
|
|
6266
|
+
this.q6u_1 = playerIds;
|
|
6267
|
+
this.r6u_1 = roundContractState;
|
|
6280
6268
|
}
|
|
6281
6269
|
protoOf(RoundLostState).m6x = function (playerId) {
|
|
6282
6270
|
var tmp;
|
|
6283
|
-
if (this.
|
|
6284
|
-
tmp = this.
|
|
6271
|
+
if (this.q6u_1.s1(playerId)) {
|
|
6272
|
+
tmp = this.r6u_1;
|
|
6285
6273
|
} else {
|
|
6286
6274
|
tmp = RoundContractState_FULFILLED_getInstance();
|
|
6287
6275
|
}
|
|
6288
6276
|
return tmp;
|
|
6289
6277
|
};
|
|
6290
|
-
protoOf(RoundLostState).
|
|
6278
|
+
protoOf(RoundLostState).s6u = function (playerIds) {
|
|
6291
6279
|
var tmp;
|
|
6292
|
-
if (this.
|
|
6293
|
-
tmp = this.
|
|
6280
|
+
if (this.q6u_1.t1(playerIds)) {
|
|
6281
|
+
tmp = this.r6u_1;
|
|
6294
6282
|
} else {
|
|
6295
6283
|
tmp = RoundContractState_FULFILLED_getInstance();
|
|
6296
6284
|
}
|
|
@@ -7906,8 +7894,8 @@
|
|
|
7906
7894
|
return false;
|
|
7907
7895
|
}
|
|
7908
7896
|
var tmp;
|
|
7909
|
-
if (this.s75_1.
|
|
7910
|
-
tmp = !this.s75_1.
|
|
7897
|
+
if (this.s75_1.z6s_1.o6t_1) {
|
|
7898
|
+
tmp = !this.s75_1.z6s_1.g6x();
|
|
7911
7899
|
} else {
|
|
7912
7900
|
tmp = false;
|
|
7913
7901
|
}
|
|
@@ -8153,7 +8141,7 @@
|
|
|
8153
8141
|
while (tmp0_iterator_1.k()) {
|
|
8154
8142
|
var item = tmp0_iterator_1.l();
|
|
8155
8143
|
// Inline function 'games.jass.logic.data.models.rules.rule.builder.cards.released.SomeOfPlayersHasTrumpCardsRule.validate.<anonymous>' call
|
|
8156
|
-
var tmp$ret$6 = item.
|
|
8144
|
+
var tmp$ret$6 = item.a6t_1;
|
|
8157
8145
|
destination_1.e(tmp$ret$6);
|
|
8158
8146
|
}
|
|
8159
8147
|
var tmp;
|
|
@@ -8170,7 +8158,7 @@
|
|
|
8170
8158
|
while (tmp0_iterator_2.k()) {
|
|
8171
8159
|
var element_1 = tmp0_iterator_2.l();
|
|
8172
8160
|
// Inline function 'games.jass.logic.data.models.rules.rule.builder.cards.released.SomeOfPlayersHasTrumpCardsRule.validate.<anonymous>' call
|
|
8173
|
-
if (!element_1.
|
|
8161
|
+
if (!element_1.a6u_1) {
|
|
8174
8162
|
tmp$ret$9 = true;
|
|
8175
8163
|
break $l$block_0;
|
|
8176
8164
|
}
|
|
@@ -8331,7 +8319,7 @@
|
|
|
8331
8319
|
if (!this.u76_1.protectBella) {
|
|
8332
8320
|
return false;
|
|
8333
8321
|
}
|
|
8334
|
-
return !(this.v76_1.w76(this.t76_1.
|
|
8322
|
+
return !(this.v76_1.w76(this.t76_1.b6t_1.l6u_1, this.u76_1.oneTryToProtectBella) == null);
|
|
8335
8323
|
};
|
|
8336
8324
|
function PartnerExistsRule_init_$Init$(partnerCard, $this) {
|
|
8337
8325
|
PartnerExistsRule.call($this, partnerCard, true);
|
|
@@ -8357,7 +8345,7 @@
|
|
|
8357
8345
|
this.z76_1 = option;
|
|
8358
8346
|
}
|
|
8359
8347
|
protoOf(PlayerShuffleCardsRule).w74 = function (controller) {
|
|
8360
|
-
return this.z76_1.
|
|
8348
|
+
return this.z76_1.g6t_1;
|
|
8361
8349
|
};
|
|
8362
8350
|
function CardType_init_$Init$(cardName, $this) {
|
|
8363
8351
|
CardType.call($this, 1, cardName);
|
|
@@ -15415,33 +15403,33 @@
|
|
|
15415
15403
|
return tmp;
|
|
15416
15404
|
}
|
|
15417
15405
|
function mapToDto_41(_this__u8e3s4) {
|
|
15418
|
-
var tmp1_id = _this__u8e3s4.
|
|
15419
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
15406
|
+
var tmp1_id = _this__u8e3s4.c6r_1;
|
|
15407
|
+
var tmp0_safe_receiver = _this__u8e3s4.b6r_1;
|
|
15420
15408
|
var tmp2_trumpCard = tmp0_safe_receiver == null ? null : mapToDto(tmp0_safe_receiver);
|
|
15421
|
-
var tmp3_userInfo = mapToDto_0(_this__u8e3s4.
|
|
15422
|
-
var tmp4_createdAt = _this__u8e3s4.
|
|
15409
|
+
var tmp3_userInfo = mapToDto_0(_this__u8e3s4.d6r_1);
|
|
15410
|
+
var tmp4_createdAt = _this__u8e3s4.f6r_1.toString();
|
|
15423
15411
|
return new WhoShuffleCardsMessageDto(tmp2_trumpCard, tmp1_id, tmp3_userInfo, tmp4_createdAt);
|
|
15424
15412
|
}
|
|
15425
15413
|
function mapToDto_42(_this__u8e3s4) {
|
|
15426
|
-
var tmp1_id = _this__u8e3s4.
|
|
15427
|
-
var tmp0_elvis_lhs = toIntOrNull(_this__u8e3s4.
|
|
15414
|
+
var tmp1_id = _this__u8e3s4.v6r_1;
|
|
15415
|
+
var tmp0_elvis_lhs = toIntOrNull(_this__u8e3s4.u6r_1);
|
|
15428
15416
|
var tmp2_phraseType = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
|
|
15429
|
-
var tmp3_key = _this__u8e3s4.
|
|
15430
|
-
var tmp4_userInfo = mapToDto_0(_this__u8e3s4.
|
|
15431
|
-
var tmp5_createdAt = _this__u8e3s4.
|
|
15417
|
+
var tmp3_key = _this__u8e3s4.u6r_1;
|
|
15418
|
+
var tmp4_userInfo = mapToDto_0(_this__u8e3s4.w6r_1);
|
|
15419
|
+
var tmp5_createdAt = _this__u8e3s4.y6r_1.toString();
|
|
15432
15420
|
return new PhraseMessageDto(tmp2_phraseType, tmp3_key, tmp1_id, tmp4_userInfo, tmp5_createdAt);
|
|
15433
15421
|
}
|
|
15434
15422
|
function mapToDto_43(_this__u8e3s4) {
|
|
15435
|
-
var tmp0_id = _this__u8e3s4.
|
|
15436
|
-
var tmp1_url = _this__u8e3s4.
|
|
15437
|
-
var tmp2_userInfo = mapToDto_0(_this__u8e3s4.
|
|
15438
|
-
var tmp3_createdAt = _this__u8e3s4.
|
|
15423
|
+
var tmp0_id = _this__u8e3s4.a6s_1;
|
|
15424
|
+
var tmp1_url = _this__u8e3s4.z6r_1;
|
|
15425
|
+
var tmp2_userInfo = mapToDto_0(_this__u8e3s4.b6s_1);
|
|
15426
|
+
var tmp3_createdAt = _this__u8e3s4.d6s_1.toString();
|
|
15439
15427
|
return new StickerMessageDto(tmp1_url, tmp0_id, tmp2_userInfo, tmp3_createdAt);
|
|
15440
15428
|
}
|
|
15441
15429
|
function mapToDto_44(_this__u8e3s4) {
|
|
15442
|
-
var tmp0_id = _this__u8e3s4.
|
|
15430
|
+
var tmp0_id = _this__u8e3s4.h6r_1;
|
|
15443
15431
|
// Inline function 'kotlin.collections.map' call
|
|
15444
|
-
var this_0 = _this__u8e3s4.
|
|
15432
|
+
var this_0 = _this__u8e3s4.g6r_1;
|
|
15445
15433
|
// Inline function 'kotlin.collections.mapTo' call
|
|
15446
15434
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
15447
15435
|
var tmp0_iterator = this_0.j();
|
|
@@ -15451,15 +15439,15 @@
|
|
|
15451
15439
|
var tmp$ret$0 = mapToDto_7(item);
|
|
15452
15440
|
destination.e(tmp$ret$0);
|
|
15453
15441
|
}
|
|
15454
|
-
var tmp2_userInfo = mapToDto_0(_this__u8e3s4.
|
|
15455
|
-
var tmp3_createdAt = _this__u8e3s4.
|
|
15442
|
+
var tmp2_userInfo = mapToDto_0(_this__u8e3s4.i6r_1);
|
|
15443
|
+
var tmp3_createdAt = _this__u8e3s4.k6r_1.toString();
|
|
15456
15444
|
return new CombinationMessageDto(tmp0_id, tmp3_createdAt, destination, tmp2_userInfo);
|
|
15457
15445
|
}
|
|
15458
15446
|
function mapToDto_45(_this__u8e3s4) {
|
|
15459
|
-
var tmp0_id = _this__u8e3s4.
|
|
15460
|
-
var tmp1_roundNumber = _this__u8e3s4.
|
|
15447
|
+
var tmp0_id = _this__u8e3s4.l6q_1;
|
|
15448
|
+
var tmp1_roundNumber = _this__u8e3s4.g6q_1;
|
|
15461
15449
|
// Inline function 'kotlin.collections.map' call
|
|
15462
|
-
var this_0 = _this__u8e3s4.
|
|
15450
|
+
var this_0 = _this__u8e3s4.h6q_1;
|
|
15463
15451
|
// Inline function 'kotlin.collections.mapTo' call
|
|
15464
15452
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
15465
15453
|
var tmp0_iterator = this_0.j();
|
|
@@ -15469,23 +15457,23 @@
|
|
|
15469
15457
|
var tmp$ret$0 = mapToDto_51(item);
|
|
15470
15458
|
destination.e(tmp$ret$0);
|
|
15471
15459
|
}
|
|
15472
|
-
var tmp3_roundContractState = mapToDto_90(_this__u8e3s4.
|
|
15473
|
-
var tmp4_roundWinners = _this__u8e3s4.
|
|
15474
|
-
var tmp5_roundCommitted = _this__u8e3s4.
|
|
15475
|
-
var tmp6_createdAt = _this__u8e3s4.
|
|
15460
|
+
var tmp3_roundContractState = mapToDto_90(_this__u8e3s4.i6q_1);
|
|
15461
|
+
var tmp4_roundWinners = _this__u8e3s4.k6q_1;
|
|
15462
|
+
var tmp5_roundCommitted = _this__u8e3s4.j6q_1;
|
|
15463
|
+
var tmp6_createdAt = _this__u8e3s4.n6q_1.toString();
|
|
15476
15464
|
return new PreviousRoundPointsMessageDto(tmp0_id, tmp6_createdAt, tmp1_roundNumber, tmp3_roundContractState, tmp5_roundCommitted, tmp4_roundWinners, destination);
|
|
15477
15465
|
}
|
|
15478
15466
|
function mapToDto_46(_this__u8e3s4) {
|
|
15479
|
-
var tmp0_id = _this__u8e3s4.
|
|
15480
|
-
var tmp1_message = _this__u8e3s4.
|
|
15481
|
-
var tmp2_userInfo = mapToDto_0(_this__u8e3s4.
|
|
15482
|
-
var tmp3_createdAt = _this__u8e3s4.
|
|
15467
|
+
var tmp0_id = _this__u8e3s4.f6s_1;
|
|
15468
|
+
var tmp1_message = _this__u8e3s4.e6s_1;
|
|
15469
|
+
var tmp2_userInfo = mapToDto_0(_this__u8e3s4.g6s_1);
|
|
15470
|
+
var tmp3_createdAt = _this__u8e3s4.i6s_1.toString();
|
|
15483
15471
|
return new TextMessageDto(tmp0_id, tmp3_createdAt, tmp1_message, tmp2_userInfo);
|
|
15484
15472
|
}
|
|
15485
15473
|
function mapToDto_47(_this__u8e3s4) {
|
|
15486
|
-
var tmp0_id = _this__u8e3s4.
|
|
15474
|
+
var tmp0_id = _this__u8e3s4.o6r_1;
|
|
15487
15475
|
// Inline function 'kotlin.collections.map' call
|
|
15488
|
-
var this_0 = _this__u8e3s4.
|
|
15476
|
+
var this_0 = _this__u8e3s4.n6r_1;
|
|
15489
15477
|
// Inline function 'kotlin.collections.mapTo' call
|
|
15490
15478
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
15491
15479
|
var tmp0_iterator = this_0.j();
|
|
@@ -15495,31 +15483,31 @@
|
|
|
15495
15483
|
var tmp$ret$0 = mapToDto_52(item);
|
|
15496
15484
|
destination.e(tmp$ret$0);
|
|
15497
15485
|
}
|
|
15498
|
-
var tmp2_createdAt = _this__u8e3s4.
|
|
15486
|
+
var tmp2_createdAt = _this__u8e3s4.q6r_1.toString();
|
|
15499
15487
|
return new WinnerCombinationsMessageDto(tmp0_id, tmp2_createdAt, destination);
|
|
15500
15488
|
}
|
|
15501
15489
|
function mapToDto_48(_this__u8e3s4) {
|
|
15502
|
-
var tmp0_id = _this__u8e3s4.
|
|
15503
|
-
var tmp1_validationCode = _this__u8e3s4.
|
|
15504
|
-
var tmp2_createdAt = _this__u8e3s4.
|
|
15490
|
+
var tmp0_id = _this__u8e3s4.l6s_1;
|
|
15491
|
+
var tmp1_validationCode = _this__u8e3s4.k6s_1;
|
|
15492
|
+
var tmp2_createdAt = _this__u8e3s4.n6s_1.toString();
|
|
15505
15493
|
return new ValidationMessageDto(tmp0_id, tmp2_createdAt, tmp1_validationCode);
|
|
15506
15494
|
}
|
|
15507
15495
|
function mapToDto_49(_this__u8e3s4) {
|
|
15508
|
-
var tmp0_id = _this__u8e3s4.
|
|
15509
|
-
var tmp1_eventId = _this__u8e3s4.
|
|
15510
|
-
var tmp2_createdAt = _this__u8e3s4.
|
|
15496
|
+
var tmp0_id = _this__u8e3s4.d6q_1;
|
|
15497
|
+
var tmp1_eventId = _this__u8e3s4.c6q_1;
|
|
15498
|
+
var tmp2_createdAt = _this__u8e3s4.f6q_1.toString();
|
|
15511
15499
|
return new EventMessageDto(tmp0_id, tmp2_createdAt, tmp1_eventId);
|
|
15512
15500
|
}
|
|
15513
15501
|
function mapToDto_50(_this__u8e3s4) {
|
|
15514
|
-
var tmp0_id = _this__u8e3s4.
|
|
15515
|
-
var tmp1_randomData = mapToDto_15(_this__u8e3s4.
|
|
15516
|
-
var tmp2_createdAt = _this__u8e3s4.
|
|
15502
|
+
var tmp0_id = _this__u8e3s4.r6q_1;
|
|
15503
|
+
var tmp1_randomData = mapToDto_15(_this__u8e3s4.q6q_1);
|
|
15504
|
+
var tmp2_createdAt = _this__u8e3s4.t6q_1.toString();
|
|
15517
15505
|
return new RandomSignatureMessageDto(tmp0_id, tmp2_createdAt, tmp1_randomData);
|
|
15518
15506
|
}
|
|
15519
15507
|
function mapToDto_51(_this__u8e3s4) {
|
|
15520
|
-
var tmp0_points = _this__u8e3s4.
|
|
15508
|
+
var tmp0_points = _this__u8e3s4.p6q_1;
|
|
15521
15509
|
// Inline function 'kotlin.collections.map' call
|
|
15522
|
-
var this_0 = _this__u8e3s4.
|
|
15510
|
+
var this_0 = _this__u8e3s4.o6q_1;
|
|
15523
15511
|
// Inline function 'kotlin.collections.mapTo' call
|
|
15524
15512
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
15525
15513
|
var tmp0_iterator = this_0.j();
|
|
@@ -15533,7 +15521,7 @@
|
|
|
15533
15521
|
}
|
|
15534
15522
|
function mapToDto_52(_this__u8e3s4) {
|
|
15535
15523
|
// Inline function 'kotlin.collections.map' call
|
|
15536
|
-
var this_0 = _this__u8e3s4.
|
|
15524
|
+
var this_0 = _this__u8e3s4.s6r_1;
|
|
15537
15525
|
// Inline function 'kotlin.collections.mapTo' call
|
|
15538
15526
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
15539
15527
|
var tmp0_iterator = this_0.j();
|
|
@@ -15543,7 +15531,7 @@
|
|
|
15543
15531
|
var tmp$ret$0 = mapToDto_5(item);
|
|
15544
15532
|
destination.e(tmp$ret$0);
|
|
15545
15533
|
}
|
|
15546
|
-
return new WinnerCombinationViewModelDto(_this__u8e3s4.
|
|
15534
|
+
return new WinnerCombinationViewModelDto(_this__u8e3s4.r6r_1, destination, mapToDto_0(_this__u8e3s4.t6r_1));
|
|
15547
15535
|
}
|
|
15548
15536
|
function mapFromDto_38(_this__u8e3s4, isNew) {
|
|
15549
15537
|
isNew = isNew === VOID ? false : isNew;
|
|
@@ -15579,7 +15567,7 @@
|
|
|
15579
15567
|
tmp = mapFromDto_48(_this__u8e3s4, isNew);
|
|
15580
15568
|
} else {
|
|
15581
15569
|
if (_this__u8e3s4 instanceof FallbackMessageDto) {
|
|
15582
|
-
tmp = Companion_instance_12.
|
|
15570
|
+
tmp = Companion_instance_12.v6q();
|
|
15583
15571
|
} else {
|
|
15584
15572
|
noWhenBranchMatchedException();
|
|
15585
15573
|
}
|
|
@@ -16923,10 +16911,10 @@
|
|
|
16923
16911
|
return new JassPlayerLite(mapFromDto_0(_this__u8e3s4.n7v_1), mapFromDto_62(_this__u8e3s4.o7v_1), mapFromDto_63(_this__u8e3s4.p7v_1));
|
|
16924
16912
|
}
|
|
16925
16913
|
function mapToDto_85(_this__u8e3s4) {
|
|
16926
|
-
var tmp2_userInfo = mapToDto_0(_this__u8e3s4.
|
|
16927
|
-
var tmp3_state = mapToDto_86(_this__u8e3s4.
|
|
16928
|
-
var tmp4_options = mapToDto_87(_this__u8e3s4.
|
|
16929
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
16914
|
+
var tmp2_userInfo = mapToDto_0(_this__u8e3s4.o6s_1).b6b();
|
|
16915
|
+
var tmp3_state = mapToDto_86(_this__u8e3s4.p6s_1);
|
|
16916
|
+
var tmp4_options = mapToDto_87(_this__u8e3s4.q6s_1);
|
|
16917
|
+
var tmp0_safe_receiver = _this__u8e3s4.s6s_1;
|
|
16930
16918
|
var tmp;
|
|
16931
16919
|
if (tmp0_safe_receiver == null) {
|
|
16932
16920
|
tmp = null;
|
|
@@ -16961,8 +16949,8 @@
|
|
|
16961
16949
|
tmp_0 = tmp_1;
|
|
16962
16950
|
}
|
|
16963
16951
|
var tmp5_cards = tmp_0;
|
|
16964
|
-
var tmp6_points = mapToDto_88(_this__u8e3s4.
|
|
16965
|
-
var tmp7_amountOfCards = _this__u8e3s4.
|
|
16952
|
+
var tmp6_points = mapToDto_88(_this__u8e3s4.r6s_1);
|
|
16953
|
+
var tmp7_amountOfCards = _this__u8e3s4.t6s_1;
|
|
16966
16954
|
return new ClientJassPlayerDto(tmp2_userInfo, tmp3_state, tmp4_options, tmp6_points, tmp5_cards, tmp7_amountOfCards);
|
|
16967
16955
|
}
|
|
16968
16956
|
function mapFromDto_62(_this__u8e3s4) {
|
|
@@ -17042,7 +17030,7 @@
|
|
|
17042
17030
|
}
|
|
17043
17031
|
function mapToDto_87(_this__u8e3s4) {
|
|
17044
17032
|
// Inline function 'kotlin.takeIf' call
|
|
17045
|
-
var this_0 = _this__u8e3s4.
|
|
17033
|
+
var this_0 = _this__u8e3s4.d6t_1;
|
|
17046
17034
|
// Inline function 'kotlin.contracts.contract' call
|
|
17047
17035
|
var tmp;
|
|
17048
17036
|
// Inline function 'games.jass.logic.data.models.serializable.mappers.player.mapToDto.<anonymous>' call
|
|
@@ -17052,9 +17040,9 @@
|
|
|
17052
17040
|
tmp = null;
|
|
17053
17041
|
}
|
|
17054
17042
|
var tmp0_isGameCreator = tmp;
|
|
17055
|
-
var tmp1_playerNumber = _this__u8e3s4.
|
|
17043
|
+
var tmp1_playerNumber = _this__u8e3s4.e6t_1;
|
|
17056
17044
|
// Inline function 'kotlin.takeIf' call
|
|
17057
|
-
var this_1 = _this__u8e3s4.
|
|
17045
|
+
var this_1 = _this__u8e3s4.f6t_1;
|
|
17058
17046
|
// Inline function 'kotlin.contracts.contract' call
|
|
17059
17047
|
var tmp_0;
|
|
17060
17048
|
// Inline function 'games.jass.logic.data.models.serializable.mappers.player.mapToDto.<anonymous>' call
|
|
@@ -17065,7 +17053,7 @@
|
|
|
17065
17053
|
}
|
|
17066
17054
|
var tmp2_isGameWinner = tmp_0;
|
|
17067
17055
|
// Inline function 'kotlin.takeIf' call
|
|
17068
|
-
var this_2 = _this__u8e3s4.
|
|
17056
|
+
var this_2 = _this__u8e3s4.g6t_1;
|
|
17069
17057
|
// Inline function 'kotlin.contracts.contract' call
|
|
17070
17058
|
var tmp_1;
|
|
17071
17059
|
// Inline function 'games.jass.logic.data.models.serializable.mappers.player.mapToDto.<anonymous>' call
|
|
@@ -17076,7 +17064,7 @@
|
|
|
17076
17064
|
}
|
|
17077
17065
|
var tmp3_isShuffleCards = tmp_1;
|
|
17078
17066
|
// Inline function 'kotlin.takeIf' call
|
|
17079
|
-
var this_3 = _this__u8e3s4.
|
|
17067
|
+
var this_3 = _this__u8e3s4.h6t_1;
|
|
17080
17068
|
// Inline function 'kotlin.contracts.contract' call
|
|
17081
17069
|
var tmp_2;
|
|
17082
17070
|
// Inline function 'games.jass.logic.data.models.serializable.mappers.player.mapToDto.<anonymous>' call
|
|
@@ -17087,7 +17075,7 @@
|
|
|
17087
17075
|
}
|
|
17088
17076
|
var tmp4_isRoundWinner = tmp_2;
|
|
17089
17077
|
// Inline function 'kotlin.takeIf' call
|
|
17090
|
-
var this_4 = _this__u8e3s4.
|
|
17078
|
+
var this_4 = _this__u8e3s4.i6t_1;
|
|
17091
17079
|
// Inline function 'kotlin.contracts.contract' call
|
|
17092
17080
|
var tmp_3;
|
|
17093
17081
|
// Inline function 'games.jass.logic.data.models.serializable.mappers.player.mapToDto.<anonymous>' call
|
|
@@ -17098,7 +17086,7 @@
|
|
|
17098
17086
|
}
|
|
17099
17087
|
var tmp5_isWonCardLot = tmp_3;
|
|
17100
17088
|
// Inline function 'kotlin.takeIf' call
|
|
17101
|
-
var this_5 = _this__u8e3s4.
|
|
17089
|
+
var this_5 = _this__u8e3s4.j6t_1;
|
|
17102
17090
|
// Inline function 'kotlin.contracts.contract' call
|
|
17103
17091
|
var tmp_4;
|
|
17104
17092
|
// Inline function 'games.jass.logic.data.models.serializable.mappers.player.mapToDto.<anonymous>' call
|
|
@@ -17108,10 +17096,10 @@
|
|
|
17108
17096
|
tmp_4 = null;
|
|
17109
17097
|
}
|
|
17110
17098
|
var tmp6_isEarnedBiggestPointInLastGame = tmp_4;
|
|
17111
|
-
var tmp7_failedContractsCount = _this__u8e3s4.
|
|
17112
|
-
var tmp8_sentVoicesCount = _this__u8e3s4.
|
|
17099
|
+
var tmp7_failedContractsCount = _this__u8e3s4.k6t_1;
|
|
17100
|
+
var tmp8_sentVoicesCount = _this__u8e3s4.l6t_1;
|
|
17113
17101
|
// Inline function 'kotlin.takeIf' call
|
|
17114
|
-
var this_6 = _this__u8e3s4.
|
|
17102
|
+
var this_6 = _this__u8e3s4.m6t_1;
|
|
17115
17103
|
// Inline function 'kotlin.contracts.contract' call
|
|
17116
17104
|
var tmp_5;
|
|
17117
17105
|
// Inline function 'games.jass.logic.data.models.serializable.mappers.player.mapToDto.<anonymous>' call
|
|
@@ -17121,9 +17109,9 @@
|
|
|
17121
17109
|
tmp_5 = null;
|
|
17122
17110
|
}
|
|
17123
17111
|
var tmp9_isGotLastBribe = tmp_5;
|
|
17124
|
-
var tmp10_numberOfCircle = _this__u8e3s4.
|
|
17112
|
+
var tmp10_numberOfCircle = _this__u8e3s4.n6t_1;
|
|
17125
17113
|
// Inline function 'kotlin.takeIf' call
|
|
17126
|
-
var this_7 = _this__u8e3s4.
|
|
17114
|
+
var this_7 = _this__u8e3s4.o6t_1;
|
|
17127
17115
|
// Inline function 'kotlin.contracts.contract' call
|
|
17128
17116
|
var tmp_6;
|
|
17129
17117
|
// Inline function 'games.jass.logic.data.models.serializable.mappers.player.mapToDto.<anonymous>' call
|
|
@@ -17134,7 +17122,7 @@
|
|
|
17134
17122
|
}
|
|
17135
17123
|
var tmp11_isChoseSuit = tmp_6;
|
|
17136
17124
|
// Inline function 'kotlin.takeIf' call
|
|
17137
|
-
var this_8 = _this__u8e3s4.
|
|
17125
|
+
var this_8 = _this__u8e3s4.p6t_1;
|
|
17138
17126
|
// Inline function 'kotlin.contracts.contract' call
|
|
17139
17127
|
var tmp_7;
|
|
17140
17128
|
// Inline function 'games.jass.logic.data.models.serializable.mappers.player.mapToDto.<anonymous>' call
|
|
@@ -17149,7 +17137,7 @@
|
|
|
17149
17137
|
function mapToDto_88(_this__u8e3s4) {
|
|
17150
17138
|
// Inline function 'kotlin.takeIf' call
|
|
17151
17139
|
// Inline function 'kotlin.collections.map' call
|
|
17152
|
-
var this_0 = _this__u8e3s4.
|
|
17140
|
+
var this_0 = _this__u8e3s4.l6u_1;
|
|
17153
17141
|
// Inline function 'kotlin.collections.mapTo' call
|
|
17154
17142
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
17155
17143
|
var tmp0_iterator = this_0.j();
|
|
@@ -17171,7 +17159,7 @@
|
|
|
17171
17159
|
var tmp_0 = tmp;
|
|
17172
17160
|
// Inline function 'kotlin.takeIf' call
|
|
17173
17161
|
// Inline function 'kotlin.collections.map' call
|
|
17174
|
-
var this_1 = _this__u8e3s4.
|
|
17162
|
+
var this_1 = _this__u8e3s4.m6u_1;
|
|
17175
17163
|
// Inline function 'kotlin.collections.mapTo' call
|
|
17176
17164
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
17177
17165
|
var tmp0_iterator_0 = this_1.j();
|
|
@@ -17191,7 +17179,7 @@
|
|
|
17191
17179
|
tmp_1 = null;
|
|
17192
17180
|
}
|
|
17193
17181
|
var tmp$ret$11 = tmp_1;
|
|
17194
|
-
return new PlayerPointsDto(_this__u8e3s4.
|
|
17182
|
+
return new PlayerPointsDto(_this__u8e3s4.k6u_1, tmp_0, tmp$ret$11);
|
|
17195
17183
|
}
|
|
17196
17184
|
function mapFromDto_64(_this__u8e3s4) {
|
|
17197
17185
|
var tmp1_userInfo = mapFromDto_0(_this__u8e3s4.g7w_1);
|
|
@@ -27653,20 +27641,20 @@
|
|
|
27653
27641
|
return new JassTable(_this__u8e3s4.y7r_1, _this__u8e3s4.a7s_1, _this__u8e3s4.b7s_1, _this__u8e3s4.c7s_1, tmp, tmp_0, tmp_1, _this__u8e3s4.f7s_1, _this__u8e3s4.g7s_1, tmp0_safe_receiver == null ? null : mapFromClient_3(tmp0_safe_receiver), emptyList(), mapFromClient_4(_this__u8e3s4.i7s_1, _this__u8e3s4.b7s_1), Companion_instance_142.initial(_this__u8e3s4.z7r_1));
|
|
27654
27642
|
}
|
|
27655
27643
|
function mapFromClient_1(_this__u8e3s4, index, connection) {
|
|
27656
|
-
var tmp2_userInfo = _this__u8e3s4.
|
|
27657
|
-
var tmp3_state = mapFromClient(_this__u8e3s4.
|
|
27658
|
-
var tmp4_options = _this__u8e3s4.
|
|
27659
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
27644
|
+
var tmp2_userInfo = _this__u8e3s4.o6s_1;
|
|
27645
|
+
var tmp3_state = mapFromClient(_this__u8e3s4.p6s_1, connection);
|
|
27646
|
+
var tmp4_options = _this__u8e3s4.q6s_1;
|
|
27647
|
+
var tmp0_elvis_lhs = _this__u8e3s4.s6s_1;
|
|
27660
27648
|
var tmp;
|
|
27661
27649
|
if (tmp0_elvis_lhs == null) {
|
|
27662
|
-
var tmp1_elvis_lhs = _this__u8e3s4.
|
|
27650
|
+
var tmp1_elvis_lhs = _this__u8e3s4.t6s_1;
|
|
27663
27651
|
tmp = generateStubPlayerHandCards(tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs, index);
|
|
27664
27652
|
} else {
|
|
27665
27653
|
tmp = tmp0_elvis_lhs;
|
|
27666
27654
|
}
|
|
27667
27655
|
var tmp5_cards = tmp;
|
|
27668
27656
|
var tmp6_hand = new PlayerHand();
|
|
27669
|
-
var tmp7_points = _this__u8e3s4.
|
|
27657
|
+
var tmp7_points = _this__u8e3s4.r6s_1;
|
|
27670
27658
|
return new JassPlayer(tmp2_userInfo, tmp3_state, tmp5_cards, tmp4_options, tmp6_hand, tmp7_points);
|
|
27671
27659
|
}
|
|
27672
27660
|
function mapFromClient_2(_this__u8e3s4, payload) {
|
|
@@ -27700,13 +27688,13 @@
|
|
|
27700
27688
|
return new ClientJassTable(_this__u8e3s4.id, tmp, _this__u8e3s4.version, _this__u8e3s4.createdAt, _this__u8e3s4.config, tmp_0, tmp_1, _this__u8e3s4.cardsOnTable, _this__u8e3s4.bribes, tmp0_safe_receiver == null ? null : mapToClient_3(tmp0_safe_receiver), mapToClient_4(_this__u8e3s4.gameInfo));
|
|
27701
27689
|
}
|
|
27702
27690
|
function mapToClient_1(_this__u8e3s4, payload) {
|
|
27703
|
-
var isCurrentPlayer = payload.k79_1 === _this__u8e3s4.
|
|
27704
|
-
var tmp0_userInfo = _this__u8e3s4.
|
|
27705
|
-
var tmp1_state = mapToClient(_this__u8e3s4.
|
|
27706
|
-
var tmp2_options = _this__u8e3s4.
|
|
27707
|
-
var tmp3_cards = isCurrentPlayer ? _this__u8e3s4.
|
|
27708
|
-
var tmp4_points = _this__u8e3s4.
|
|
27709
|
-
var tmp5_amountOfCards = isCurrentPlayer ? null : _this__u8e3s4.
|
|
27691
|
+
var isCurrentPlayer = payload.k79_1 === _this__u8e3s4.w6s_1.f67_1;
|
|
27692
|
+
var tmp0_userInfo = _this__u8e3s4.w6s_1;
|
|
27693
|
+
var tmp1_state = mapToClient(_this__u8e3s4.x6s_1);
|
|
27694
|
+
var tmp2_options = _this__u8e3s4.z6s_1;
|
|
27695
|
+
var tmp3_cards = isCurrentPlayer ? _this__u8e3s4.y6s_1 : null;
|
|
27696
|
+
var tmp4_points = _this__u8e3s4.b6t_1;
|
|
27697
|
+
var tmp5_amountOfCards = isCurrentPlayer ? null : _this__u8e3s4.y6s_1.m();
|
|
27710
27698
|
return new ClientJassPlayer(tmp0_userInfo, tmp1_state, tmp2_options, tmp4_points, tmp3_cards, tmp5_amountOfCards);
|
|
27711
27699
|
}
|
|
27712
27700
|
function mapToClient_2(_this__u8e3s4, payload) {
|
|
@@ -28442,7 +28430,7 @@
|
|
|
28442
28430
|
while (tmp0_iterator.k()) {
|
|
28443
28431
|
var item = tmp0_iterator.l();
|
|
28444
28432
|
// Inline function 'games.jass.logic.data.models.table.JassTable.<get-playersConnections>.<anonymous>' call
|
|
28445
|
-
var tmp$ret$0 = to(item.playerId, item.
|
|
28433
|
+
var tmp$ret$0 = to(item.playerId, item.x6s_1.s69().j68_1);
|
|
28446
28434
|
destination.e(tmp$ret$0);
|
|
28447
28435
|
}
|
|
28448
28436
|
return destination;
|
|
@@ -28457,7 +28445,7 @@
|
|
|
28457
28445
|
while (tmp0_iterator.k()) {
|
|
28458
28446
|
var item = tmp0_iterator.l();
|
|
28459
28447
|
// Inline function 'games.jass.logic.data.models.table.JassTable.<get-users>.<anonymous>' call
|
|
28460
|
-
var tmp$ret$0 = item.
|
|
28448
|
+
var tmp$ret$0 = item.w6s_1;
|
|
28461
28449
|
destination.e(tmp$ret$0);
|
|
28462
28450
|
}
|
|
28463
28451
|
return copyToArray(destination);
|
|
@@ -28810,7 +28798,7 @@
|
|
|
28810
28798
|
var item = tmp0_iterator.l();
|
|
28811
28799
|
// Inline function 'games.jass.logic.data.models.table.toLoggerPayload.<anonymous>' call
|
|
28812
28800
|
var tmp_0 = item.playerId;
|
|
28813
|
-
var tmp0_safe_receiver = item.
|
|
28801
|
+
var tmp0_safe_receiver = item.x6s_1.d68_1;
|
|
28814
28802
|
var tmp$ret$0 = new PlayerLoggerPayload(tmp_0, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j68_1);
|
|
28815
28803
|
destination.e(tmp$ret$0);
|
|
28816
28804
|
}
|
|
@@ -30103,7 +30091,7 @@
|
|
|
30103
30091
|
}
|
|
30104
30092
|
function mapToDetailedFull(_this__u8e3s4, player, config, players, newState, newReason) {
|
|
30105
30093
|
newReason = newReason === VOID ? null : newReason;
|
|
30106
|
-
var previousCombination = firstOrNull(filterCombination(player.
|
|
30094
|
+
var previousCombination = firstOrNull(filterCombination(player.b6t_1.l6u_1, _this__u8e3s4.n77_1));
|
|
30107
30095
|
var points = Companion_instance_134.l87(_this__u8e3s4.o77_1, config);
|
|
30108
30096
|
var numberOfPlayer = Companion_instance_135.u87(player.playerId, players);
|
|
30109
30097
|
var tmp1_elvis_lhs = previousCombination == null ? null : previousCombination.h6y_1;
|
|
@@ -30682,7 +30670,7 @@
|
|
|
30682
30670
|
protoOf(Config).u88 = function () {
|
|
30683
30671
|
return this.rulesSetType;
|
|
30684
30672
|
};
|
|
30685
|
-
protoOf(Config).
|
|
30673
|
+
protoOf(Config).t6t = function () {
|
|
30686
30674
|
return this.options;
|
|
30687
30675
|
};
|
|
30688
30676
|
protoOf(Config).v88 = function () {
|
|
@@ -30700,7 +30688,7 @@
|
|
|
30700
30688
|
protoOf(Config).r6n = function () {
|
|
30701
30689
|
return this.dealerStrategy;
|
|
30702
30690
|
};
|
|
30703
|
-
protoOf(Config).
|
|
30691
|
+
protoOf(Config).x6p = function () {
|
|
30704
30692
|
return this.league;
|
|
30705
30693
|
};
|
|
30706
30694
|
protoOf(Config).z88 = function () {
|
|
@@ -30822,7 +30810,7 @@
|
|
|
30822
30810
|
protoOf(ConfigLite).x5i = function () {
|
|
30823
30811
|
return this.players;
|
|
30824
30812
|
};
|
|
30825
|
-
protoOf(ConfigLite).
|
|
30813
|
+
protoOf(ConfigLite).u6t = function () {
|
|
30826
30814
|
return this.points;
|
|
30827
30815
|
};
|
|
30828
30816
|
protoOf(ConfigLite).x88 = function () {
|
|
@@ -31266,7 +31254,7 @@
|
|
|
31266
31254
|
protoOf(RoomConfig).x5i = function () {
|
|
31267
31255
|
return this.players;
|
|
31268
31256
|
};
|
|
31269
|
-
protoOf(RoomConfig).
|
|
31257
|
+
protoOf(RoomConfig).u6t = function () {
|
|
31270
31258
|
return this.points;
|
|
31271
31259
|
};
|
|
31272
31260
|
protoOf(RoomConfig).o89 = function () {
|
|
@@ -31290,7 +31278,7 @@
|
|
|
31290
31278
|
protoOf(RoomConfig).r6n = function () {
|
|
31291
31279
|
return this.dealerStrategy;
|
|
31292
31280
|
};
|
|
31293
|
-
protoOf(RoomConfig).
|
|
31281
|
+
protoOf(RoomConfig).x6p = function () {
|
|
31294
31282
|
return this.league;
|
|
31295
31283
|
};
|
|
31296
31284
|
protoOf(RoomConfig).pe = function () {
|
|
@@ -33326,7 +33314,7 @@
|
|
|
33326
33314
|
function getPlayerChoiceRules($this, provider) {
|
|
33327
33315
|
var playerOption = provider.s8c_1;
|
|
33328
33316
|
var isCircleNotStarted = playerOption.e6x();
|
|
33329
|
-
var isShuffleCards = playerOption.
|
|
33317
|
+
var isShuffleCards = playerOption.g6t_1;
|
|
33330
33318
|
var isFirstSuitCirclePassed = playerOption.f6x();
|
|
33331
33319
|
var isPlayWithoutLiabilities = provider.w73_1.rules.playWithoutLiabilities;
|
|
33332
33320
|
var tmp;
|
|
@@ -34211,7 +34199,7 @@
|
|
|
34211
34199
|
return false;
|
|
34212
34200
|
}
|
|
34213
34201
|
var player = singleOrNull(filterWhoChoseSuit(players));
|
|
34214
|
-
if (!(player == null) && player.
|
|
34202
|
+
if (!(player == null) && player.z6s_1.g6x()) {
|
|
34215
34203
|
return false;
|
|
34216
34204
|
}
|
|
34217
34205
|
// Inline function 'kotlin.collections.flatMap' call
|
|
@@ -34221,7 +34209,7 @@
|
|
|
34221
34209
|
while (tmp0_iterator.k()) {
|
|
34222
34210
|
var element = tmp0_iterator.l();
|
|
34223
34211
|
// Inline function 'games.jass.logic.data.providers.logic.GameLogicProviderImpl.shouldCheckTrumpSeven.<anonymous>' call
|
|
34224
|
-
var list = element.
|
|
34212
|
+
var list = element.b6t_1.l6u_1;
|
|
34225
34213
|
addAll(destination, list);
|
|
34226
34214
|
}
|
|
34227
34215
|
return filterByCombinationState(filterByCombinationType(destination, [CombinationType_SEVEN_TRUMP_getInstance()]), [CombinationState_ACCEPTED_getInstance(), CombinationState_NOT_ACCEPTED_getInstance()]).p();
|
|
@@ -34241,7 +34229,7 @@
|
|
|
34241
34229
|
while (tmp0_iterator.k()) {
|
|
34242
34230
|
var element = tmp0_iterator.l();
|
|
34243
34231
|
// Inline function 'games.jass.logic.data.providers.logic.GameLogicProviderImpl.shouldCheckFourSevens.<anonymous>' call
|
|
34244
|
-
var list = element.
|
|
34232
|
+
var list = element.b6t_1.l6u_1;
|
|
34245
34233
|
addAll(destination, list);
|
|
34246
34234
|
}
|
|
34247
34235
|
return filterByCombinationState(filterByCombinationType(destination, [CombinationType_FOUR_SEVENS_getInstance()]), [CombinationState_ACCEPTED_getInstance(), CombinationState_NOT_ACCEPTED_getInstance()]).p();
|
|
@@ -34459,7 +34447,7 @@
|
|
|
34459
34447
|
while (tmp0_iterator.k()) {
|
|
34460
34448
|
var element = tmp0_iterator.l();
|
|
34461
34449
|
// Inline function 'games.jass.logic.data.providers.table.points.PointWinnersProviderImpl.findWhoEarnBiggerPointsWinner.<anonymous>' call
|
|
34462
|
-
var list = element.
|
|
34450
|
+
var list = element.o6u_1;
|
|
34463
34451
|
addAll(destination, list);
|
|
34464
34452
|
}
|
|
34465
34453
|
return first(sortedWith(destination, new RoundPointsPlayersContainerComparator_0(roundLostState)));
|
|
@@ -34473,7 +34461,7 @@
|
|
|
34473
34461
|
while (tmp0_iterator.k()) {
|
|
34474
34462
|
var element = tmp0_iterator.l();
|
|
34475
34463
|
// Inline function 'games.jass.logic.data.providers.table.points.PointWinnersProviderImpl.findGameWinner.<anonymous>' call
|
|
34476
|
-
if (element.w6x(roundLostState) && element.
|
|
34464
|
+
if (element.w6x(roundLostState) && element.e6v(roundLostState) >= config.pointsMode.value) {
|
|
34477
34465
|
destination.e(element);
|
|
34478
34466
|
}
|
|
34479
34467
|
}
|
|
@@ -34485,7 +34473,7 @@
|
|
|
34485
34473
|
while (tmp0_iterator_0.k()) {
|
|
34486
34474
|
var element_0 = tmp0_iterator_0.l();
|
|
34487
34475
|
// Inline function 'games.jass.logic.data.providers.table.points.PointWinnersProviderImpl.findGameWinner.<anonymous>' call
|
|
34488
|
-
if (element_0.
|
|
34476
|
+
if (element_0.e6v(roundLostState) === first(winners).e6v(roundLostState)) {
|
|
34489
34477
|
destination_0.e(element_0);
|
|
34490
34478
|
}
|
|
34491
34479
|
}
|
|
@@ -36193,8 +36181,8 @@
|
|
|
36193
36181
|
return this_0;
|
|
36194
36182
|
}
|
|
36195
36183
|
function createSuitProvider($this, player, table) {
|
|
36196
|
-
var tmp0_playerOption = player.
|
|
36197
|
-
var tmp1_playerCards = $this.b8f_1.c8f(player.
|
|
36184
|
+
var tmp0_playerOption = player.z6s_1;
|
|
36185
|
+
var tmp1_playerCards = $this.b8f_1.c8f(player.y6s_1, player.z6s_1, table.config, table.requireCardDeck.w7k_1);
|
|
36198
36186
|
var tmp2_config = table.config;
|
|
36199
36187
|
// Inline function 'kotlin.requireNotNull' call
|
|
36200
36188
|
var value = table.currentTrump;
|
|
@@ -36220,7 +36208,7 @@
|
|
|
36220
36208
|
var tmp1_combinationProvider = $this.a8f_1;
|
|
36221
36209
|
var tmp2_currentPlayerId = player.playerId;
|
|
36222
36210
|
var tmp3_releasedCards = getReleasedCards($this, table.bribes, table.requireCardDeck.x7k_1);
|
|
36223
|
-
var tmp4_playerCards = player.
|
|
36211
|
+
var tmp4_playerCards = player.y6s_1;
|
|
36224
36212
|
var tmp5_config = table.config;
|
|
36225
36213
|
var tmp6_players = table.players;
|
|
36226
36214
|
var tmp7_cardsOnTheTable = table.cardsOnTable;
|
|
@@ -36256,13 +36244,13 @@
|
|
|
36256
36244
|
if (!this.f8f_1.autoStepLastCard) {
|
|
36257
36245
|
return false;
|
|
36258
36246
|
}
|
|
36259
|
-
var cards = player.
|
|
36247
|
+
var cards = player.y6s_1;
|
|
36260
36248
|
return cards.m() === 1;
|
|
36261
36249
|
};
|
|
36262
36250
|
function PlayerAnswerInteractor() {
|
|
36263
36251
|
}
|
|
36264
36252
|
function handleCombinations($this, playerId, card, players, rules) {
|
|
36265
|
-
var playerCombinations = getPlayer(players, playerId).
|
|
36253
|
+
var playerCombinations = getPlayer(players, playerId).b6t_1.l6u_1;
|
|
36266
36254
|
var combinations = plus($this.l8f_1.n8f(playerCombinations), listOfNotNull_0($this.l8f_1.o8f(card, playerCombinations, rules.oneTryToProtectBella)));
|
|
36267
36255
|
// Inline function 'kotlin.takeIf' call
|
|
36268
36256
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -36286,7 +36274,7 @@
|
|
|
36286
36274
|
var tmp_0;
|
|
36287
36275
|
if (table.config.playersMode.isTeamGame) {
|
|
36288
36276
|
var partner = teamsLogicProvider.x8c(playerId, table.players);
|
|
36289
|
-
tmp_0 = !partner.
|
|
36277
|
+
tmp_0 = !partner.z6s_1.o6t_1;
|
|
36290
36278
|
} else {
|
|
36291
36279
|
tmp_0 = true;
|
|
36292
36280
|
}
|
|
@@ -36743,7 +36731,7 @@
|
|
|
36743
36731
|
var element = tmp0_iterator.l();
|
|
36744
36732
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
36745
36733
|
// Inline function 'games.jass.logic.domain.interactors.combinations.CombinationsInteractorImpl.getWithFirstCardCombinations.<anonymous>' call
|
|
36746
|
-
var tmp0_safe_receiver = $this.l8g(state, element.playerId, element.
|
|
36734
|
+
var tmp0_safe_receiver = $this.l8g(state, element.playerId, element.b6t_1.l6u_1);
|
|
36747
36735
|
if (tmp0_safe_receiver == null)
|
|
36748
36736
|
null;
|
|
36749
36737
|
else {
|
|
@@ -36885,7 +36873,7 @@
|
|
|
36885
36873
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
36886
36874
|
// Inline function 'games.jass.logic.domain.interactors.combinations.CombinationsInteractorImpl.getBellaCombination.<anonymous>' call
|
|
36887
36875
|
// Inline function 'kotlin.takeIf' call
|
|
36888
|
-
var this_0 = filterByCombinationState(filterByCombinationType(element.
|
|
36876
|
+
var this_0 = filterByCombinationState(filterByCombinationType(element.b6t_1.l6u_1, [CombinationType_BELA_getInstance()]), [CombinationState_VERIFYING_getInstance(), CombinationState_NOT_ACCEPTED_getInstance()]);
|
|
36889
36877
|
// Inline function 'kotlin.contracts.contract' call
|
|
36890
36878
|
var tmp;
|
|
36891
36879
|
// Inline function 'games.jass.logic.domain.interactors.combinations.CombinationsInteractorImpl.getBellaCombination.<anonymous>.<anonymous>' call
|
|
@@ -37203,7 +37191,7 @@
|
|
|
37203
37191
|
// Inline function 'games.jass.logic.domain.interactors.dealer.CardsIntercatorImpl.distributeFirstRoundCards.<anonymous>' call
|
|
37204
37192
|
var distributedCards = getValue(distributedPlayersCards, item_0.playerId);
|
|
37205
37193
|
var tmp = item_0.playerId;
|
|
37206
|
-
var tmp0_options = getPlayer(players, item_0.playerId).
|
|
37194
|
+
var tmp0_options = getPlayer(players, item_0.playerId).z6s_1;
|
|
37207
37195
|
var tmp$ret$3 = new PlayerCards(tmp, distributedCards, this.c8f(distributedCards, tmp0_options, config, trumpCard), getPlayerCardsIgnoreOption$default(this, item_0, players, config));
|
|
37208
37196
|
destination_0.e(tmp$ret$3);
|
|
37209
37197
|
}
|
|
@@ -37883,7 +37871,7 @@
|
|
|
37883
37871
|
while (tmp0_iterator.k()) {
|
|
37884
37872
|
var element = tmp0_iterator.l();
|
|
37885
37873
|
// Inline function 'games.jass.logic.domain.interactors.dealer.EqualHandsDealerIntercatorImpl.equaliseCardsForPlayers.<anonymous>' call
|
|
37886
|
-
if (!element.
|
|
37874
|
+
if (!element.a6t_1.x6t_1.p()) {
|
|
37887
37875
|
tmp$ret$0 = false;
|
|
37888
37876
|
break $l$block_0;
|
|
37889
37877
|
}
|
|
@@ -37961,7 +37949,7 @@
|
|
|
37961
37949
|
var element_4 = tmp0_iterator_4.l();
|
|
37962
37950
|
// Inline function 'games.jass.logic.domain.interactors.dealer.EqualHandsDealerIntercatorImpl.equaliseCardsForPlayers.<anonymous>' call
|
|
37963
37951
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
37964
|
-
if (!element_4.
|
|
37952
|
+
if (!element_4.y6s_1.p()) {
|
|
37965
37953
|
tmp$ret$14 = true;
|
|
37966
37954
|
break $l$block_2;
|
|
37967
37955
|
}
|
|
@@ -38041,7 +38029,7 @@
|
|
|
38041
38029
|
var element_5 = tmp0_iterator_10.l();
|
|
38042
38030
|
// Inline function 'games.jass.logic.domain.interactors.dealer.EqualHandsDealerIntercatorImpl.equaliseCardsForPlayers.<anonymous>' call
|
|
38043
38031
|
var player = getPlayer(allPlayers, element_5.m8i_1);
|
|
38044
|
-
Companion_instance_148.b8j(this.x8i_1, 'hands analytics: select_suit ' + (player.
|
|
38032
|
+
Companion_instance_148.b8j(this.x8i_1, 'hands analytics: select_suit ' + (player.y6s_1.p() ? 'first' : 'second') + ': ' + element_5.m8i_1 + ', ' + ('factor: ' + element_5.n8i_1 + ', ') + ('previousFactor: ' + player.a6t_1.g6u() + ', ') + ('value: ' + element_5.o8i_1 + ', ') + ('combinations: ' + element_5.r8i_1.m() + ', ') + ('trump: ' + element_5.s8i_1.toString() + ', ') + ('isUpdated: ' + !equals(getPlayer(playersCards, element_5.m8i_1).j8i_1, element_5.q8i_1) + ', ') + ('ignoreOption: ' + getPlayer(playersCards, element_5.m8i_1).l8i_1.toString() + ' '));
|
|
38045
38033
|
}
|
|
38046
38034
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
38047
38035
|
// Inline function 'kotlin.collections.associateTo' call
|
|
@@ -38057,7 +38045,7 @@
|
|
|
38057
38045
|
return destination_8;
|
|
38058
38046
|
};
|
|
38059
38047
|
protoOf(EqualHandsDealerIntercatorImpl).y8i = function (playerId, possibleCards, distributedCards, allPlayers, selectedTrump, config) {
|
|
38060
|
-
var allCards = plus(getPlayer(allPlayers, playerId).
|
|
38048
|
+
var allCards = plus(getPlayer(allPlayers, playerId).y6s_1, possibleCards);
|
|
38061
38049
|
var playerCombinations = this.t8i_1.g8g(playerId, allCards, allPlayers, selectedTrump, config);
|
|
38062
38050
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
38063
38051
|
var dealerStrategy = tmp0_elvis_lhs == null ? this.w8i_1.dealerStrategy : tmp0_elvis_lhs;
|
|
@@ -38227,8 +38215,8 @@
|
|
|
38227
38215
|
function getPositiveIfSecondBigger_0($this, first, second) {
|
|
38228
38216
|
var tmp;
|
|
38229
38217
|
if ($this.i8j_1.s1(first.playerId) && $this.i8j_1.s1(second.playerId)) {
|
|
38230
|
-
var factorFirst = first.
|
|
38231
|
-
var factorSecond = second.
|
|
38218
|
+
var factorFirst = first.a6t_1.g6u();
|
|
38219
|
+
var factorSecond = second.a6t_1.g6u();
|
|
38232
38220
|
if (factorFirst < factorSecond)
|
|
38233
38221
|
return 1;
|
|
38234
38222
|
if (factorFirst > factorSecond)
|
|
@@ -38239,8 +38227,8 @@
|
|
|
38239
38227
|
} else if ($this.i8j_1.s1(second.playerId)) {
|
|
38240
38228
|
tmp = 1;
|
|
38241
38229
|
} else {
|
|
38242
|
-
var factorFirst_0 = first.
|
|
38243
|
-
var factorSecond_0 = second.
|
|
38230
|
+
var factorFirst_0 = first.a6t_1.g6u();
|
|
38231
|
+
var factorSecond_0 = second.a6t_1.g6u();
|
|
38244
38232
|
if (factorFirst_0 < factorSecond_0)
|
|
38245
38233
|
return 1;
|
|
38246
38234
|
if (factorFirst_0 > factorSecond_0)
|
|
@@ -38277,13 +38265,13 @@
|
|
|
38277
38265
|
}
|
|
38278
38266
|
protoOf(GameMechanicLogicInteractorImpl).q8j = function (action, players) {
|
|
38279
38267
|
if (!(action.m7k_1 == null)) {
|
|
38280
|
-
return new MessageMechanicAction(this.o8j_1.v8e(action.m7k_1, getPlayer(players, action.k7k_1).
|
|
38268
|
+
return new MessageMechanicAction(this.o8j_1.v8e(action.m7k_1, getPlayer(players, action.k7k_1).w6s_1));
|
|
38281
38269
|
}
|
|
38282
38270
|
if (!(action.n7k_1 == null)) {
|
|
38283
|
-
return new MessageMechanicAction(this.o8j_1.t8e(action.n7k_1, getPlayer(players, action.k7k_1).
|
|
38271
|
+
return new MessageMechanicAction(this.o8j_1.t8e(action.n7k_1, getPlayer(players, action.k7k_1).w6s_1));
|
|
38284
38272
|
}
|
|
38285
38273
|
if (!(action.o7k_1 == null)) {
|
|
38286
|
-
return new MessageMechanicAction(this.o8j_1.u8e(action.o7k_1, getPlayer(players, action.k7k_1).
|
|
38274
|
+
return new MessageMechanicAction(this.o8j_1.u8e(action.o7k_1, getPlayer(players, action.k7k_1).w6s_1));
|
|
38287
38275
|
}
|
|
38288
38276
|
this.p8j_1.w(VOID, "GameMechanicLogicInteractorImpl.onMessage: Can't support this message " + action.toString());
|
|
38289
38277
|
return null;
|
|
@@ -38320,7 +38308,7 @@
|
|
|
38320
38308
|
};
|
|
38321
38309
|
protoOf(GameMechanicLogicInteractorImpl).t8j = function (action, players, config) {
|
|
38322
38310
|
var player = getPlayer(players, action.x7j_1);
|
|
38323
|
-
var isCircleEnded = player.
|
|
38311
|
+
var isCircleEnded = player.z6s_1.g6t_1 && player.z6s_1.f6x();
|
|
38324
38312
|
var tmp;
|
|
38325
38313
|
if (!isCircleEnded && action.a7k_1 == null) {
|
|
38326
38314
|
tmp = this.m8j_1.u8j(player.playerId, players, config.rules);
|
|
@@ -38440,9 +38428,9 @@
|
|
|
38440
38428
|
var element = tmp0_iterator.l();
|
|
38441
38429
|
// Inline function 'games.jass.logic.domain.interactors.options.PlayerOptionsInteractorImpl.getPlayerWhoShuffleCards.<anonymous>' call
|
|
38442
38430
|
var tmp;
|
|
38443
|
-
if (element.
|
|
38431
|
+
if (element.z6s_1.p6t_1) {
|
|
38444
38432
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
38445
|
-
tmp = !filterByCombinationType(filterByCombinationState(element.
|
|
38433
|
+
tmp = !filterByCombinationType(filterByCombinationState(element.b6t_1.l6u_1, [CombinationState_VERIFYING_getInstance()]), [CombinationType_BONUS_CONTROVERSIAL_CONTRACT_getInstance()]).p();
|
|
38446
38434
|
} else {
|
|
38447
38435
|
tmp = false;
|
|
38448
38436
|
}
|
|
@@ -38501,7 +38489,7 @@
|
|
|
38501
38489
|
var tmp0_iterator = pointsCells.j();
|
|
38502
38490
|
while (tmp0_iterator.k()) {
|
|
38503
38491
|
var element = tmp0_iterator.l();
|
|
38504
|
-
if (element.
|
|
38492
|
+
if (element.n6u_1) {
|
|
38505
38493
|
if (found)
|
|
38506
38494
|
throw IllegalArgumentException_init_$Create$('Collection contains more than one matching element.');
|
|
38507
38495
|
single = element;
|
|
@@ -38518,12 +38506,12 @@
|
|
|
38518
38506
|
while (tmp0_iterator_0.k()) {
|
|
38519
38507
|
var element_0 = tmp0_iterator_0.l();
|
|
38520
38508
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.handleRoundByteState.<anonymous>' call
|
|
38521
|
-
if (!element_0.
|
|
38509
|
+
if (!element_0.n6u_1) {
|
|
38522
38510
|
destination.e(element_0);
|
|
38523
38511
|
}
|
|
38524
38512
|
}
|
|
38525
38513
|
var otherPlayers = destination;
|
|
38526
|
-
var pointsWhoPlayed = playersWhoPlaying.
|
|
38514
|
+
var pointsWhoPlayed = playersWhoPlaying.c6v();
|
|
38527
38515
|
// Inline function 'kotlin.collections.filter' call
|
|
38528
38516
|
// Inline function 'kotlin.collections.filterTo' call
|
|
38529
38517
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
@@ -38531,14 +38519,14 @@
|
|
|
38531
38519
|
while (tmp0_iterator_1.k()) {
|
|
38532
38520
|
var element_1 = tmp0_iterator_1.l();
|
|
38533
38521
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.handleRoundByteState.<anonymous>' call
|
|
38534
|
-
if (element_1.
|
|
38522
|
+
if (element_1.c6v() > pointsWhoPlayed) {
|
|
38535
38523
|
destination_0.e(element_1);
|
|
38536
38524
|
}
|
|
38537
38525
|
}
|
|
38538
38526
|
var playersWithHigherPoints = sortedWith(destination_0, RoundEarnedPointsPlayersContainerComparator_instance);
|
|
38539
38527
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
38540
38528
|
if (!playersWithHigherPoints.p()) {
|
|
38541
|
-
var roundLostState = new RoundLostState(playersWhoPlaying.
|
|
38529
|
+
var roundLostState = new RoundLostState(playersWhoPlaying.p6u(), RoundContractState_FAILED_getInstance());
|
|
38542
38530
|
doOnFailContract($this, roundLostState, playersWhoPlaying, otherPlayers, playersWithHigherPoints, config.rules, combinationsFactory);
|
|
38543
38531
|
var playerWithHigherPoints = first(playersWithHigherPoints);
|
|
38544
38532
|
var tmp = first(playersWithHigherPoints);
|
|
@@ -38573,7 +38561,7 @@
|
|
|
38573
38561
|
while (tmp0_iterator_3.k()) {
|
|
38574
38562
|
var element_3 = tmp0_iterator_3.l();
|
|
38575
38563
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.handleRoundByteState.<anonymous>' call
|
|
38576
|
-
if (element_3.
|
|
38564
|
+
if (element_3.c6v() === pointsWhoPlayed) {
|
|
38577
38565
|
tmp$ret$12 = true;
|
|
38578
38566
|
break $l$block_0;
|
|
38579
38567
|
}
|
|
@@ -38582,10 +38570,10 @@
|
|
|
38582
38570
|
}
|
|
38583
38571
|
if (tmp$ret$12) {
|
|
38584
38572
|
playersWhoPlaying.b6y(combinationsFactory);
|
|
38585
|
-
return new RoundLostState(playersWhoPlaying.
|
|
38573
|
+
return new RoundLostState(playersWhoPlaying.p6u(), RoundContractState_CONTROVERSIAL_getInstance());
|
|
38586
38574
|
}
|
|
38587
38575
|
attachPointsIfHangingByte($this, playersWhoPlaying, otherPlayers, combinationsFactory);
|
|
38588
|
-
return new RoundLostState(playersWhoPlaying.
|
|
38576
|
+
return new RoundLostState(playersWhoPlaying.p6u(), RoundContractState_FULFILLED_getInstance());
|
|
38589
38577
|
}
|
|
38590
38578
|
function doOnFailContract($this, roundLostState, playersWhoPlaying, otherPlayers, playerWithHigherPoints, rules, combinationsFactory) {
|
|
38591
38579
|
var tmp;
|
|
@@ -38604,7 +38592,7 @@
|
|
|
38604
38592
|
while (tmp0_iterator.k()) {
|
|
38605
38593
|
var element = tmp0_iterator.l();
|
|
38606
38594
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.doOnFailContract.<anonymous>' call
|
|
38607
|
-
if (equals(element.
|
|
38595
|
+
if (equals(element.o6u_1, highestPoints.o6u_1)) {
|
|
38608
38596
|
destination.e(element);
|
|
38609
38597
|
}
|
|
38610
38598
|
}
|
|
@@ -38627,10 +38615,10 @@
|
|
|
38627
38615
|
while (tmp0_iterator_0.k()) {
|
|
38628
38616
|
var element_0 = tmp0_iterator_0.l();
|
|
38629
38617
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.doOnFailContract.<anonymous>' call
|
|
38630
|
-
var list = element_0.
|
|
38618
|
+
var list = element_0.o6u_1;
|
|
38631
38619
|
addAll(destination_0, list);
|
|
38632
38620
|
}
|
|
38633
|
-
tmp_0.v6x(destination_0, playersWhoPlaying.
|
|
38621
|
+
tmp_0.v6x(destination_0, playersWhoPlaying.c6v(), CombinationType_BONUS_FAILED_CONTRACT_getInstance(), VOID, combinationsFactory);
|
|
38634
38622
|
playersWhoPlaying.z6x(roundLostState, rules, combinationsFactory, $this.m8k_1);
|
|
38635
38623
|
}
|
|
38636
38624
|
function checkIfNoBribes($this, playersContainers, rules) {
|
|
@@ -38663,7 +38651,7 @@
|
|
|
38663
38651
|
while (tmp0_iterator.k()) {
|
|
38664
38652
|
var element = tmp0_iterator.l();
|
|
38665
38653
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.attachPointsIfHangingByte.<anonymous>' call
|
|
38666
|
-
var list = element.
|
|
38654
|
+
var list = element.o6u_1;
|
|
38667
38655
|
addAll(destination, list);
|
|
38668
38656
|
}
|
|
38669
38657
|
var sum = 0;
|
|
@@ -38675,9 +38663,9 @@
|
|
|
38675
38663
|
sum = tmp_0 + element_0.r6y() | 0;
|
|
38676
38664
|
}
|
|
38677
38665
|
var tmp$ret$4 = sum;
|
|
38678
|
-
tmp.v6x(playersWhoWins.
|
|
38666
|
+
tmp.v6x(playersWhoWins.o6u_1, tmp$ret$4, CombinationType_BONUS_CONTROVERSIAL_CONTRACT_getInstance(), VOID, combinationsFactory);
|
|
38679
38667
|
// Inline function 'kotlin.collections.forEach' call
|
|
38680
|
-
var tmp0_iterator_1 = playersWhoWins.
|
|
38668
|
+
var tmp0_iterator_1 = playersWhoWins.o6u_1.j();
|
|
38681
38669
|
while (tmp0_iterator_1.k()) {
|
|
38682
38670
|
var element_1 = tmp0_iterator_1.l();
|
|
38683
38671
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.attachPointsIfHangingByte.<anonymous>' call
|
|
@@ -38691,7 +38679,7 @@
|
|
|
38691
38679
|
while (tmp0_iterator_2.k()) {
|
|
38692
38680
|
var element_2 = tmp0_iterator_2.l();
|
|
38693
38681
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.attachPointsIfHangingByte.<anonymous>' call
|
|
38694
|
-
var list_0 = element_2.
|
|
38682
|
+
var list_0 = element_2.o6u_1;
|
|
38695
38683
|
addAll(destination_0, list_0);
|
|
38696
38684
|
}
|
|
38697
38685
|
var tmp0_iterator_3 = destination_0.j();
|
|
@@ -38746,7 +38734,7 @@
|
|
|
38746
38734
|
while (tmp0_iterator_1.k()) {
|
|
38747
38735
|
var element = tmp0_iterator_1.l();
|
|
38748
38736
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.createPointsCalculators.<anonymous>' call
|
|
38749
|
-
if (element.
|
|
38737
|
+
if (element.u6u_1 === playerWhoPlayedId) {
|
|
38750
38738
|
tmp$ret$6 = true;
|
|
38751
38739
|
break $l$block_0;
|
|
38752
38740
|
}
|
|
@@ -38771,7 +38759,7 @@
|
|
|
38771
38759
|
while (tmp0_iterator_2.k()) {
|
|
38772
38760
|
var element_0 = tmp0_iterator_2.l();
|
|
38773
38761
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.createPointsCalculators.<anonymous>' call
|
|
38774
|
-
if (element_0.
|
|
38762
|
+
if (element_0.u6u_1 === playerWhoPlayedId) {
|
|
38775
38763
|
tmp$ret$8 = true;
|
|
38776
38764
|
break $l$block_2;
|
|
38777
38765
|
}
|
|
@@ -38796,10 +38784,10 @@
|
|
|
38796
38784
|
}
|
|
38797
38785
|
function mapToPointsCalculator(_this__u8e3s4, $this, trump) {
|
|
38798
38786
|
var tmp0_playerId = _this__u8e3s4.playerId;
|
|
38799
|
-
var tmp1_amountOfBytes = _this__u8e3s4.
|
|
38800
|
-
var tmp2_beforeEarnedPoints = _this__u8e3s4.
|
|
38801
|
-
var tmp3_combinations = toMutableList(_this__u8e3s4.
|
|
38802
|
-
var tmp4_earnedCards = _this__u8e3s4.
|
|
38787
|
+
var tmp1_amountOfBytes = _this__u8e3s4.z6s_1.k6t_1;
|
|
38788
|
+
var tmp2_beforeEarnedPoints = _this__u8e3s4.b6t_1.k6u_1;
|
|
38789
|
+
var tmp3_combinations = toMutableList(_this__u8e3s4.b6t_1.l6u_1);
|
|
38790
|
+
var tmp4_earnedCards = _this__u8e3s4.b6t_1.m6u_1;
|
|
38803
38791
|
return new PlayerPointsCalculatorModel(tmp0_playerId, tmp1_amountOfBytes, tmp2_beforeEarnedPoints, trump, tmp4_earnedCards, tmp3_combinations);
|
|
38804
38792
|
}
|
|
38805
38793
|
function PointsInteractorImpl(teamsLogicProvider, pointsWinnersProvider, combinationsFactory, logger) {
|
|
@@ -38850,7 +38838,7 @@
|
|
|
38850
38838
|
while (tmp0_iterator_0.k()) {
|
|
38851
38839
|
var item_0 = tmp0_iterator_0.l();
|
|
38852
38840
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.getEarnedPoints.<anonymous>.<anonymous>' call
|
|
38853
|
-
var tmp$ret$0 = item_0.
|
|
38841
|
+
var tmp$ret$0 = item_0.w6s_1.f67_1;
|
|
38854
38842
|
destination_0.e(tmp$ret$0);
|
|
38855
38843
|
}
|
|
38856
38844
|
var tmp_0 = destination_0;
|
|
@@ -38862,7 +38850,7 @@
|
|
|
38862
38850
|
while (tmp0_iterator_1.k()) {
|
|
38863
38851
|
var item_1 = tmp0_iterator_1.l();
|
|
38864
38852
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.getEarnedPoints.<anonymous>.<anonymous>' call
|
|
38865
|
-
var tmp$ret$3 = item_1.
|
|
38853
|
+
var tmp$ret$3 = item_1.b6t_1;
|
|
38866
38854
|
destination_1.e(tmp$ret$3);
|
|
38867
38855
|
}
|
|
38868
38856
|
var sum = 0;
|
|
@@ -38871,7 +38859,7 @@
|
|
|
38871
38859
|
var element = tmp0_iterator_2.l();
|
|
38872
38860
|
var tmp_1 = sum;
|
|
38873
38861
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.getEarnedPoints.<anonymous>.<anonymous>' call
|
|
38874
|
-
sum = tmp_1 + element.
|
|
38862
|
+
sum = tmp_1 + element.k6u_1 | 0;
|
|
38875
38863
|
}
|
|
38876
38864
|
var tmp$ret$7 = sum;
|
|
38877
38865
|
var tmp$ret$8 = new PointItem(tmp_0, tmp$ret$7);
|
|
@@ -38886,7 +38874,7 @@
|
|
|
38886
38874
|
while (tmp0_iterator_3.k()) {
|
|
38887
38875
|
var item_2 = tmp0_iterator_3.l();
|
|
38888
38876
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.getEarnedPoints.<anonymous>' call
|
|
38889
|
-
var tmp$ret$11 = new PointItem(listOf_0(item_2.
|
|
38877
|
+
var tmp$ret$11 = new PointItem(listOf_0(item_2.w6s_1.f67_1), item_2.b6t_1.k6u_1);
|
|
38890
38878
|
destination_2.e(tmp$ret$11);
|
|
38891
38879
|
}
|
|
38892
38880
|
tmp = destination_2;
|
|
@@ -38903,18 +38891,18 @@
|
|
|
38903
38891
|
var earnedBiggestPointPlayer = this.k8k_1.r8e(byteState, pointsCells, trump);
|
|
38904
38892
|
var gameWinner = this.k8k_1.s8e(byteState, pointsCells, trump, config);
|
|
38905
38893
|
// Inline function 'kotlin.collections.map' call
|
|
38906
|
-
var this_0 = partyWinner.
|
|
38894
|
+
var this_0 = partyWinner.o6u_1;
|
|
38907
38895
|
// Inline function 'kotlin.collections.mapTo' call
|
|
38908
38896
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
38909
38897
|
var tmp0_iterator = this_0.j();
|
|
38910
38898
|
while (tmp0_iterator.k()) {
|
|
38911
38899
|
var item = tmp0_iterator.l();
|
|
38912
38900
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.getCalculatedPoints.<anonymous>' call
|
|
38913
|
-
var tmp$ret$0 = item.
|
|
38901
|
+
var tmp$ret$0 = item.u6u_1;
|
|
38914
38902
|
destination.e(tmp$ret$0);
|
|
38915
38903
|
}
|
|
38916
38904
|
var tmp = destination;
|
|
38917
|
-
var tmp1_safe_receiver = gameWinner == null ? null : gameWinner.
|
|
38905
|
+
var tmp1_safe_receiver = gameWinner == null ? null : gameWinner.o6u_1;
|
|
38918
38906
|
var tmp_0;
|
|
38919
38907
|
if (tmp1_safe_receiver == null) {
|
|
38920
38908
|
tmp_0 = null;
|
|
@@ -38926,7 +38914,7 @@
|
|
|
38926
38914
|
while (tmp0_iterator_0.k()) {
|
|
38927
38915
|
var item_0 = tmp0_iterator_0.l();
|
|
38928
38916
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.getCalculatedPoints.<anonymous>' call
|
|
38929
|
-
var tmp$ret$3 = item_0.
|
|
38917
|
+
var tmp$ret$3 = item_0.u6u_1;
|
|
38930
38918
|
destination_0.e(tmp$ret$3);
|
|
38931
38919
|
}
|
|
38932
38920
|
tmp_0 = destination_0;
|
|
@@ -38939,7 +38927,7 @@
|
|
|
38939
38927
|
var element = tmp0_iterator_1.l();
|
|
38940
38928
|
var tmp_2 = sum;
|
|
38941
38929
|
// Inline function 'games.jass.logic.domain.interactors.points.PointsInteractorImpl.getCalculatedPoints.<anonymous>' call
|
|
38942
|
-
sum = tmp_2 + element.
|
|
38930
|
+
sum = tmp_2 + element.d6v(byteState) | 0;
|
|
38943
38931
|
}
|
|
38944
38932
|
var tmp_3 = sum;
|
|
38945
38933
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -38952,7 +38940,7 @@
|
|
|
38952
38940
|
var tmp$ret$8 = mapToCell(item_1, byteState);
|
|
38953
38941
|
destination_1.e(tmp$ret$8);
|
|
38954
38942
|
}
|
|
38955
|
-
return new CalculatedPoints(earnedBiggestPointPlayer.
|
|
38943
|
+
return new CalculatedPoints(earnedBiggestPointPlayer.u6u_1, tmp, tmp_1, tmp_3, destination_1);
|
|
38956
38944
|
};
|
|
38957
38945
|
protoOf(PointsInteractorImpl).c8j = function (playerCards, selectedTrump, dealerStrategy) {
|
|
38958
38946
|
var tmp;
|
|
@@ -39410,16 +39398,15 @@
|
|
|
39410
39398
|
function mapToRatingInput(_this__u8e3s4, isWinner, isBot, finalGamePoints, leaguesConfig) {
|
|
39411
39399
|
isBot = isBot === VOID ? false : isBot;
|
|
39412
39400
|
leaguesConfig = leaguesConfig === VOID ? Companion_instance_10.defaultConfig() : leaguesConfig;
|
|
39413
|
-
var
|
|
39414
|
-
var
|
|
39415
|
-
var
|
|
39416
|
-
var
|
|
39417
|
-
|
|
39418
|
-
return new PlayerRatingInput(tmp1_playerId, tmp2_rating, finalGamePoints, isWinner, isBot, tmp3_playedGamesCount);
|
|
39401
|
+
var rating = _this__u8e3s4.w6s_1.getRatingOrDefault(leaguesConfig.initialRating);
|
|
39402
|
+
var userStatsPayload = getUserProfilePayloadOrDefault(_this__u8e3s4.w6s_1);
|
|
39403
|
+
var tmp0_playerId = _this__u8e3s4.playerId;
|
|
39404
|
+
var tmp1_playedGamesCount = userStatsPayload.playedGamesCount;
|
|
39405
|
+
return new PlayerRatingInput(tmp0_playerId, rating, finalGamePoints, isWinner, isBot, tmp1_playedGamesCount);
|
|
39419
39406
|
}
|
|
39420
39407
|
function waitPlayerOrDisconnect($this, newConnectionState, table, player, waitForPlayer, sendFinishToClientActions) {
|
|
39421
39408
|
if (waitForPlayer && $this.z8k_1.waitForPlayerToReconnect) {
|
|
39422
|
-
var tmp = player.
|
|
39409
|
+
var tmp = player.x6s_1.s69();
|
|
39423
39410
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
39424
39411
|
Companion_getInstance_4();
|
|
39425
39412
|
var this_0 = table.config.timeoutTimeMillis;
|
|
@@ -39451,9 +39438,9 @@
|
|
|
39451
39438
|
var element = tmp0_iterator.l();
|
|
39452
39439
|
// Inline function 'games.jass.logic.domain.interactors.reconnection.PlayerConnectionInteractor.waitPlayerOrDisconnect.<anonymous>' call
|
|
39453
39440
|
var tmp_0;
|
|
39454
|
-
if (!(element.playerId === player.playerId) && !(element.
|
|
39441
|
+
if (!(element.playerId === player.playerId) && !(element.x6s_1.d68_1 == null)) {
|
|
39455
39442
|
// Inline function 'kotlin.requireNotNull' call
|
|
39456
|
-
var value = element.
|
|
39443
|
+
var value = element.x6s_1.d68_1;
|
|
39457
39444
|
// Inline function 'kotlin.contracts.contract' call
|
|
39458
39445
|
var tmp$ret$2;
|
|
39459
39446
|
$l$block: {
|
|
@@ -39495,7 +39482,7 @@
|
|
|
39495
39482
|
while (tmp0_iterator_1.k()) {
|
|
39496
39483
|
var element_0 = tmp0_iterator_1.l();
|
|
39497
39484
|
// Inline function 'games.jass.logic.domain.interactors.reconnection.PlayerConnectionInteractor.waitPlayerOrDisconnect.<anonymous>' call
|
|
39498
|
-
if (element_0.
|
|
39485
|
+
if (element_0.x6s_1.b68_1) {
|
|
39499
39486
|
destination_1.e(element_0);
|
|
39500
39487
|
}
|
|
39501
39488
|
}
|
|
@@ -39569,7 +39556,7 @@
|
|
|
39569
39556
|
while (tmp0_iterator_0.k()) {
|
|
39570
39557
|
var element_0 = tmp0_iterator_0.l();
|
|
39571
39558
|
// Inline function 'games.jass.logic.domain.interactors.reconnection.PlayerConnectionInteractor.isLivePlayersExists.<anonymous>' call
|
|
39572
|
-
if (element_0.
|
|
39559
|
+
if (element_0.x6s_1.s69().j68_1.isLive) {
|
|
39573
39560
|
tmp$ret$3 = true;
|
|
39574
39561
|
break $l$block_0;
|
|
39575
39562
|
}
|
|
@@ -39583,8 +39570,8 @@
|
|
|
39583
39570
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
39584
39571
|
var actionsList = ArrayList_init_$Create$_0();
|
|
39585
39572
|
actionsList.n(listOf([new PlayerConnectionChangedMechanicAction(player.playerId, PlayerConnectionState_LIVE_getInstance()), $this.g8l(player, table)]));
|
|
39586
|
-
if (player.
|
|
39587
|
-
actionsList.n(listOf([new StopTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.
|
|
39573
|
+
if (player.x6s_1.e68()) {
|
|
39574
|
+
actionsList.n(listOf([new StopTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.x6s_1.i69())), new StartTimerAction(PlayerTurnTimerTag_init_$Create$(player.playerId, player.x6s_1.i69(), true), _Duration___get_inWholeMilliseconds__impl__msfiry($this.c8l_1.k8l(table.config)), VOID, TimerType_DELAY_getInstance())]));
|
|
39588
39575
|
}
|
|
39589
39576
|
return actionsList;
|
|
39590
39577
|
}
|
|
@@ -39595,13 +39582,13 @@
|
|
|
39595
39582
|
actionsList.n(getFinishToClientActions($this, player, tableId, mapToFinishReason(connectionState, player, players), isGameFinished));
|
|
39596
39583
|
}
|
|
39597
39584
|
actionsList.e(new PlayerConnectionChangedMechanicAction(player.playerId, connectionState));
|
|
39598
|
-
if (player.
|
|
39585
|
+
if (player.x6s_1.e68()) {
|
|
39599
39586
|
actionsList.e(AskBotAction_init_$Create$(player.playerId, 'PlayerTurn when connection changed'));
|
|
39600
39587
|
}
|
|
39601
39588
|
return actionsList;
|
|
39602
39589
|
}
|
|
39603
39590
|
function getFinishToClientActions($this, sendToPlayer, tableId, reason, isGameFinished) {
|
|
39604
|
-
if (!sendToPlayer.
|
|
39591
|
+
if (!sendToPlayer.x6s_1.s69().j68_1.isLive) {
|
|
39605
39592
|
return emptyList();
|
|
39606
39593
|
}
|
|
39607
39594
|
var tmp0_deliveryPayload = Companion_instance_149.user($this.d8l_1.m6d(), tableId, sendToPlayer.playerId);
|
|
@@ -39944,7 +39931,7 @@
|
|
|
39944
39931
|
function getPickUpBribePlayerTurn($this, action, table) {
|
|
39945
39932
|
var nextPlayerTurn = getPlayer(table.players, action.l8m_1);
|
|
39946
39933
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
39947
|
-
if (!nextPlayerTurn.
|
|
39934
|
+
if (!nextPlayerTurn.y6s_1.p()) {
|
|
39948
39935
|
var tmp0_$this = $this.t8l_1;
|
|
39949
39936
|
var tmp1_numberOfBribe = action.m8m_1;
|
|
39950
39937
|
var tmp2_round = table.gameInfo.round;
|
|
@@ -39991,7 +39978,7 @@
|
|
|
39991
39978
|
return tmp;
|
|
39992
39979
|
};
|
|
39993
39980
|
protoOf(PlayerTurnInteractorImpl).o8l = function (player, action) {
|
|
39994
|
-
var playerState = player.
|
|
39981
|
+
var playerState = player.x6s_1;
|
|
39995
39982
|
// Inline function 'kotlin.text.isNullOrEmpty' call
|
|
39996
39983
|
var this_0 = playerState.c68_1;
|
|
39997
39984
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -40007,26 +39994,30 @@
|
|
|
40007
39994
|
}
|
|
40008
39995
|
protoOf(PlayerTurnTagProvider).p8m = function (action, table) {
|
|
40009
39996
|
var tmp;
|
|
40010
|
-
if (action instanceof
|
|
40011
|
-
tmp = this.
|
|
39997
|
+
if (action instanceof RequestedCardDecksFromClientAction) {
|
|
39998
|
+
tmp = this.r8f('WAITING', table.gameInfo.round);
|
|
40012
39999
|
} else {
|
|
40013
|
-
if (action instanceof
|
|
40014
|
-
|
|
40015
|
-
var tmp2_round = table.gameInfo.round;
|
|
40016
|
-
tmp = this.v8f(tmp2_round, tmp1_player);
|
|
40000
|
+
if (action instanceof PartnerSelectedFromClientAction) {
|
|
40001
|
+
tmp = this.s8f(table.gameInfo.round);
|
|
40017
40002
|
} else {
|
|
40018
|
-
if (action instanceof
|
|
40019
|
-
var
|
|
40020
|
-
var
|
|
40021
|
-
tmp = this.
|
|
40003
|
+
if (action instanceof SuitChoiceFromClientAction) {
|
|
40004
|
+
var tmp1_player = getPlayer(table.players, action.x7j_1);
|
|
40005
|
+
var tmp2_round = table.gameInfo.round;
|
|
40006
|
+
tmp = this.v8f(tmp2_round, tmp1_player);
|
|
40022
40007
|
} else {
|
|
40023
|
-
if (action instanceof
|
|
40024
|
-
|
|
40008
|
+
if (action instanceof CombinationChoiceFromClientAction) {
|
|
40009
|
+
var tmp3_round = table.gameInfo.round;
|
|
40010
|
+
var tmp4_sceneInfo = table.sceneInfo;
|
|
40011
|
+
tmp = this.u8f(tmp4_sceneInfo, tmp3_round);
|
|
40025
40012
|
} else {
|
|
40026
|
-
if (action instanceof
|
|
40027
|
-
tmp = this.
|
|
40013
|
+
if (action instanceof CardFromClientAction) {
|
|
40014
|
+
tmp = this.o8m(table.gameInfo.round, table.gameInfo.round.numberOfBribeOrZero, table.cardsOnTable.m());
|
|
40028
40015
|
} else {
|
|
40029
|
-
|
|
40016
|
+
if (action instanceof PlayerReadyFromClientAction) {
|
|
40017
|
+
tmp = this.t8f(table.gameInfo.round);
|
|
40018
|
+
} else {
|
|
40019
|
+
tmp = null;
|
|
40020
|
+
}
|
|
40030
40021
|
}
|
|
40031
40022
|
}
|
|
40032
40023
|
}
|
|
@@ -40070,7 +40061,7 @@
|
|
|
40070
40061
|
return 'v4:CHOOSE_PARTNER:' + ('round_' + round.roundNumber);
|
|
40071
40062
|
};
|
|
40072
40063
|
protoOf(PlayerTurnTagProvider).v8f = function (round, player) {
|
|
40073
|
-
return 'v4:TRADE:' + ('circle_' + player.
|
|
40064
|
+
return 'v4:TRADE:' + ('circle_' + player.z6s_1.n6t_1.d6x_1 + ':') + ('round_' + round.roundNumber);
|
|
40074
40065
|
};
|
|
40075
40066
|
protoOf(PlayerTurnTagProvider).o8m = function (round, numberOfBribe, cardNumber) {
|
|
40076
40067
|
return 'v4:EARN_POINTS:' + ('bribe_' + numberOfBribe + ':') + ('number_' + cardNumber + ':') + ('round_' + round.roundNumber);
|
|
@@ -40083,7 +40074,7 @@
|
|
|
40083
40074
|
return 'v4:CALC_POINTS:' + ('round_' + round.roundNumber);
|
|
40084
40075
|
};
|
|
40085
40076
|
protoOf(PlayerTurnTagProvider).r8f = function (sceneId, round) {
|
|
40086
|
-
return 'v4:' + (sceneId + ':') + '
|
|
40077
|
+
return 'v4:' + (sceneId + ':') + 'host_carddeck:' + ('round_' + round.roundNumber);
|
|
40087
40078
|
};
|
|
40088
40079
|
protoOf(PlayerTurnTagProvider).v8l = function (sceneId, round, type) {
|
|
40089
40080
|
return 'v4:' + (sceneId + ':') + 'COMBINATION:' + (type.toString() + ':') + ('round_' + round.roundNumber);
|
|
@@ -40251,7 +40242,7 @@
|
|
|
40251
40242
|
var element = tmp0_iterator.l();
|
|
40252
40243
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
40253
40244
|
// Inline function 'games.jass.logic.domain.scenes.SceneFactory.createEarnPointsData.<anonymous>' call
|
|
40254
|
-
var pair = to(element.playerId, plus(element.
|
|
40245
|
+
var pair = to(element.playerId, plus(element.y6s_1, getValue(secondRoundCards.d8h_1, element.playerId)));
|
|
40255
40246
|
destination.j2(pair.ne_1, pair.oe_1);
|
|
40256
40247
|
}
|
|
40257
40248
|
var allPlayersCards = destination;
|
|
@@ -40326,8 +40317,8 @@
|
|
|
40326
40317
|
var item = tmp0_iterator_0.l();
|
|
40327
40318
|
// Inline function 'games.jass.logic.domain.scenes.SceneFactory.createCalcPointsData.<anonymous>' call
|
|
40328
40319
|
var playerId = item.playerId;
|
|
40329
|
-
var connection = item.
|
|
40330
|
-
var isBot = item.
|
|
40320
|
+
var connection = item.x6s_1.d68_1;
|
|
40321
|
+
var isBot = item.w6s_1.isBot || (!(connection == null) && !connection.u68(table.gameDuration));
|
|
40331
40322
|
var tmp_1 = calculatedPoints.v6y_1.s1(playerId);
|
|
40332
40323
|
// Inline function 'kotlin.collections.single' call
|
|
40333
40324
|
var single = null;
|
|
@@ -40491,7 +40482,7 @@
|
|
|
40491
40482
|
var tmp0_iterator = this_0.j();
|
|
40492
40483
|
while (tmp0_iterator.k()) {
|
|
40493
40484
|
var item = tmp0_iterator.l();
|
|
40494
|
-
destination.e(new UserInfoData(item.playerId, item.
|
|
40485
|
+
destination.e(new UserInfoData(item.playerId, item.w6s_1.name));
|
|
40495
40486
|
}
|
|
40496
40487
|
|
|
40497
40488
|
tmp_1.i8n_1 = new CardDeckRequestUserData(destination, this.b8n_1.gameId);
|
|
@@ -40623,7 +40614,7 @@
|
|
|
40623
40614
|
var playerId = previousActData.g77();
|
|
40624
40615
|
var player = getPlayer(table.players, playerId);
|
|
40625
40616
|
// Inline function 'kotlin.collections.map' call
|
|
40626
|
-
var this_0 = filterWithFirstCardOrBela(player.
|
|
40617
|
+
var this_0 = filterWithFirstCardOrBela(player.b6t_1.l6u_1);
|
|
40627
40618
|
// Inline function 'kotlin.collections.mapTo' call
|
|
40628
40619
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
40629
40620
|
var tmp0_iterator = this_0.j();
|
|
@@ -40635,7 +40626,7 @@
|
|
|
40635
40626
|
}
|
|
40636
40627
|
var previousCombinations = sortByPriority(destination);
|
|
40637
40628
|
// Inline function 'kotlin.collections.map' call
|
|
40638
|
-
var this_1 = this.n8n_1.g8g(playerId, player.
|
|
40629
|
+
var this_1 = this.n8n_1.g8g(playerId, player.y6s_1, table.players, table.gameInfo.round.selectedTrump, table.config);
|
|
40639
40630
|
// Inline function 'kotlin.collections.mapTo' call
|
|
40640
40631
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
40641
40632
|
var tmp0_iterator_0 = this_1.j();
|
|
@@ -40805,7 +40796,7 @@
|
|
|
40805
40796
|
var element = tmp0_iterator.l();
|
|
40806
40797
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
40807
40798
|
// Inline function 'games.jass.logic.domain.scenes.router.SceneRouterImpl.moveNextActTradeScene.<anonymous>' call
|
|
40808
|
-
var pair = to(element.playerId, element.
|
|
40799
|
+
var pair = to(element.playerId, element.y6s_1);
|
|
40809
40800
|
destination.j2(pair.ne_1, pair.oe_1);
|
|
40810
40801
|
}
|
|
40811
40802
|
|
|
@@ -40848,7 +40839,7 @@
|
|
|
40848
40839
|
var element = tmp0_iterator.l();
|
|
40849
40840
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
40850
40841
|
// Inline function 'games.jass.logic.domain.scenes.router.SceneRouterImpl.moveNextActEarnPointsScene.<anonymous>' call
|
|
40851
|
-
var pair = to(element.playerId, element.
|
|
40842
|
+
var pair = to(element.playerId, element.y6s_1);
|
|
40852
40843
|
destination.j2(pair.ne_1, pair.oe_1);
|
|
40853
40844
|
}
|
|
40854
40845
|
|
|
@@ -41368,7 +41359,7 @@
|
|
|
41368
41359
|
var tmp1 = index;
|
|
41369
41360
|
index = tmp1 + 1 | 0;
|
|
41370
41361
|
var index_0 = checkIndexOverflow(tmp1);
|
|
41371
|
-
var tmp$ret$0 = to(new PlayerIndex(item.playerId, index_0), item.
|
|
41362
|
+
var tmp$ret$0 = to(new PlayerIndex(item.playerId, index_0), item.y6s_1);
|
|
41372
41363
|
destination.e(tmp$ret$0);
|
|
41373
41364
|
}
|
|
41374
41365
|
tmp = toMap(destination);
|
|
@@ -42714,7 +42705,7 @@
|
|
|
42714
42705
|
while (tmp0_iterator.k()) {
|
|
42715
42706
|
var item = tmp0_iterator.l();
|
|
42716
42707
|
// Inline function 'games.jass.logic.redux.actions.client.to.ContinueGameToClientAction.<get-users>.<anonymous>' call
|
|
42717
|
-
var tmp$ret$0 = item.
|
|
42708
|
+
var tmp$ret$0 = item.o6s_1;
|
|
42718
42709
|
destination.e(tmp$ret$0);
|
|
42719
42710
|
}
|
|
42720
42711
|
return destination;
|
|
@@ -44596,7 +44587,7 @@
|
|
|
44596
44587
|
while (tmp0_iterator.k()) {
|
|
44597
44588
|
var item = tmp0_iterator.l();
|
|
44598
44589
|
// Inline function 'games.jass.logic.redux.actions.mechanic.ContinueGameMechanicAction.<get-users>.<anonymous>' call
|
|
44599
|
-
var tmp$ret$0 = item.
|
|
44590
|
+
var tmp$ret$0 = item.w6s_1;
|
|
44600
44591
|
destination.e(tmp$ret$0);
|
|
44601
44592
|
}
|
|
44602
44593
|
return destination;
|
|
@@ -46832,6 +46823,9 @@
|
|
|
46832
46823
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
46833
46824
|
return new _no_name_provided__qut3iv_5(engineLogicConfig, logger, sceneRouter, idsProvider, playerConnectionInteractor);
|
|
46834
46825
|
}
|
|
46826
|
+
function createHostDealerAct(gameCreatorPlayerId) {
|
|
46827
|
+
return new SceneActStartedMechanicAction('WAITING', 'WAITING_ACT', new WaitingActData(listOf_0(gameCreatorPlayerId), new CardDeckRequest(1)));
|
|
46828
|
+
}
|
|
46835
46829
|
function onPlayerReadyAction(readyPlayerId, table, idsProvider, engineLogicConfig, playerConnectionInteractor, logger) {
|
|
46836
46830
|
// Inline function 'kotlin.collections.map' call
|
|
46837
46831
|
// Inline function 'kotlin.collections.filter' call
|
|
@@ -46843,9 +46837,9 @@
|
|
|
46843
46837
|
var element = tmp0_iterator.l();
|
|
46844
46838
|
// Inline function 'games.jass.logic.redux.middlewares.navigation.onPlayerReadyAction.<anonymous>' call
|
|
46845
46839
|
var tmp;
|
|
46846
|
-
if (!(element.
|
|
46840
|
+
if (!(element.x6s_1.d68_1 == null)) {
|
|
46847
46841
|
// Inline function 'kotlin.requireNotNull' call
|
|
46848
|
-
var value = element.
|
|
46842
|
+
var value = element.x6s_1.d68_1;
|
|
46849
46843
|
// Inline function 'kotlin.contracts.contract' call
|
|
46850
46844
|
var tmp$ret$1;
|
|
46851
46845
|
$l$block: {
|
|
@@ -46887,7 +46881,7 @@
|
|
|
46887
46881
|
while (tmp0_iterator_1.k()) {
|
|
46888
46882
|
var element_0 = tmp0_iterator_1.l();
|
|
46889
46883
|
// Inline function 'games.jass.logic.redux.middlewares.navigation.onPlayerReadyAction.<anonymous>' call
|
|
46890
|
-
if (!(element_0.playerId === readyPlayerId) && element_0.
|
|
46884
|
+
if (!(element_0.playerId === readyPlayerId) && element_0.x6s_1.b68_1) {
|
|
46891
46885
|
destination_1.e(element_0);
|
|
46892
46886
|
}
|
|
46893
46887
|
}
|
|
@@ -46931,7 +46925,7 @@
|
|
|
46931
46925
|
var tmp_0;
|
|
46932
46926
|
if (table.sceneInfo.m85_1 === 'CALC_POINTS' && equals(table.config.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance()) && table.requestedCardDecks.p()) {
|
|
46933
46927
|
var playerId = getGameCreator(table.players).playerId;
|
|
46934
|
-
tmp_0 =
|
|
46928
|
+
tmp_0 = createHostDealerAct(playerId);
|
|
46935
46929
|
} else {
|
|
46936
46930
|
tmp_0 = new SceneEndedMechanicAction(table.sceneInfo.m85_1);
|
|
46937
46931
|
}
|
|
@@ -46980,7 +46974,7 @@
|
|
|
46980
46974
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
46981
46975
|
var tmp_2;
|
|
46982
46976
|
if (equals(action_0.e8q_1.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
46983
|
-
tmp_2 = listOf_0(
|
|
46977
|
+
tmp_2 = listOf_0(createHostDealerAct(action_0.h8q_1));
|
|
46984
46978
|
} else {
|
|
46985
46979
|
tmp_2 = listOf_0(new SceneStartedMechanicAction(this.p8y_1.n8o(action_0.e8q_1).a8p_1));
|
|
46986
46980
|
}
|
|
@@ -47185,7 +47179,7 @@
|
|
|
47185
47179
|
var tmp;
|
|
47186
47180
|
var tmp_0;
|
|
47187
47181
|
if (!isDelayForBot) {
|
|
47188
|
-
var tmp0_safe_receiver = player.
|
|
47182
|
+
var tmp0_safe_receiver = player.x6s_1.d68_1;
|
|
47189
47183
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j68_1;
|
|
47190
47184
|
tmp_0 = (tmp1_safe_receiver == null ? null : tmp1_safe_receiver.isLive) === true;
|
|
47191
47185
|
} else {
|
|
@@ -47310,7 +47304,7 @@
|
|
|
47310
47304
|
var time = item_1.t();
|
|
47311
47305
|
// Inline function 'kotlin.collections.component2' call
|
|
47312
47306
|
var playersIds = item_1.u();
|
|
47313
|
-
destination_4.e(store.dispatch(new StartTimerAction(new PlayerTurnTimerTag(playersIds, playerTurnModel.
|
|
47307
|
+
destination_4.e(store.dispatch(new StartTimerAction(new PlayerTurnTimerTag(playersIds, playerTurnModel.g6v_1), time, VOID, TimerType_DELAY_getInstance())));
|
|
47314
47308
|
}
|
|
47315
47309
|
} else {
|
|
47316
47310
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -47320,7 +47314,7 @@
|
|
|
47320
47314
|
// Inline function 'games.jass.logic.redux.middlewares.player.playerStartTimerMiddleware.<anonymous>.<anonymous>' call
|
|
47321
47315
|
var playerId = element_2.pe();
|
|
47322
47316
|
var time_0 = element_2.qe();
|
|
47323
|
-
store.dispatch(new StartTimerAction(PlayerTurnTimerTag_init_$Create$(playerId, playerTurnModel.
|
|
47317
|
+
store.dispatch(new StartTimerAction(PlayerTurnTimerTag_init_$Create$(playerId, playerTurnModel.g6v_1), time_0, VOID, TimerType_DELAY_getInstance()));
|
|
47324
47318
|
}
|
|
47325
47319
|
}
|
|
47326
47320
|
}
|
|
@@ -47342,7 +47336,7 @@
|
|
|
47342
47336
|
if (this.z8y_1(action_0.playerId)) {
|
|
47343
47337
|
var table = store.state.g6n();
|
|
47344
47338
|
var player = getPlayer(table.players, action_0.playerId);
|
|
47345
|
-
store.dispatch(new StopTimerAction(PlayerTurnTimerTag_init_$Create$(action_0.playerId, player.
|
|
47339
|
+
store.dispatch(new StopTimerAction(PlayerTurnTimerTag_init_$Create$(action_0.playerId, player.x6s_1.i69())));
|
|
47346
47340
|
}
|
|
47347
47341
|
next(action_0);
|
|
47348
47342
|
};
|
|
@@ -47379,7 +47373,7 @@
|
|
|
47379
47373
|
this.f9_1 = 1;
|
|
47380
47374
|
var table = this.i8z_1.state.g6n();
|
|
47381
47375
|
var player = getPlayer(table.players, this.j8z_1.q66());
|
|
47382
|
-
var connectionState = player.
|
|
47376
|
+
var connectionState = player.x6s_1.s69().j68_1;
|
|
47383
47377
|
var tmp_0;
|
|
47384
47378
|
switch (connectionState.n2_1) {
|
|
47385
47379
|
case 0:
|
|
@@ -47479,7 +47473,7 @@
|
|
|
47479
47473
|
break $l$block_0;
|
|
47480
47474
|
}
|
|
47481
47475
|
var player = getPlayer(state.g6n().players, action_0.o8p_1);
|
|
47482
|
-
if (action_0.n8p_1.isDisconnected && player.
|
|
47476
|
+
if (action_0.n8p_1.isDisconnected && player.x6s_1.s69().j68_1.isDisconnecting) {
|
|
47483
47477
|
break $l$block_0;
|
|
47484
47478
|
}
|
|
47485
47479
|
var tmp$ret$4;
|
|
@@ -47965,7 +47959,7 @@
|
|
|
47965
47959
|
while (tmp0_iterator.k()) {
|
|
47966
47960
|
var element = tmp0_iterator.l();
|
|
47967
47961
|
// Inline function 'games.jass.logic.redux.middlewares.validation.checkBotsMiddleware.<anonymous>.<anonymous>' call
|
|
47968
|
-
var tmp0_safe_receiver = element.
|
|
47962
|
+
var tmp0_safe_receiver = element.x6s_1.d68_1;
|
|
47969
47963
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j68_1;
|
|
47970
47964
|
if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.isNotAlive) === true)) {
|
|
47971
47965
|
tmp$ret$0 = false;
|
|
@@ -47984,7 +47978,7 @@
|
|
|
47984
47978
|
var item = tmp0_iterator_0.l();
|
|
47985
47979
|
// Inline function 'games.jass.logic.redux.middlewares.validation.checkBotsMiddleware.<anonymous>.<anonymous>' call
|
|
47986
47980
|
var tmp_0 = item.playerId;
|
|
47987
|
-
var tmp0_safe_receiver_0 = item.
|
|
47981
|
+
var tmp0_safe_receiver_0 = item.x6s_1.d68_1;
|
|
47988
47982
|
var tmp$ret$2 = to(tmp_0, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.j68_1);
|
|
47989
47983
|
destination.e(tmp$ret$2);
|
|
47990
47984
|
}
|
|
@@ -48147,7 +48141,7 @@
|
|
|
48147
48141
|
// Inline function 'kotlin.collections.mapValuesTo.<anonymous>' call
|
|
48148
48142
|
var tmp_5 = element_0.t();
|
|
48149
48143
|
// Inline function 'games.jass.logic.redux.middlewares.validation.checkCardDuplicatesForScenesMiddleware.<anonymous>.<anonymous>' call
|
|
48150
|
-
var tmp$ret$18 = plus(element_0.u(), getPlayer(state.g6n().players, element_0.t()).
|
|
48144
|
+
var tmp$ret$18 = plus(element_0.u(), getPlayer(state.g6n().players, element_0.t()).y6s_1);
|
|
48151
48145
|
destination_3.j2(tmp_5, tmp$ret$18);
|
|
48152
48146
|
}
|
|
48153
48147
|
var playersCards_0 = destination_3;
|
|
@@ -48198,7 +48192,7 @@
|
|
|
48198
48192
|
tmp = tmp_6;
|
|
48199
48193
|
} else {
|
|
48200
48194
|
if (scenePayload instanceof EarnPointsClientSceneData) {
|
|
48201
|
-
var playerCards_0 = plus(scenePayload.e78_1, first(state.g6n().players).
|
|
48195
|
+
var playerCards_0 = plus(scenePayload.e78_1, first(state.g6n().players).y6s_1);
|
|
48202
48196
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
48203
48197
|
var tmp0_safe_receiver = scenePayload.g78_1;
|
|
48204
48198
|
var tmp_9;
|
|
@@ -48604,7 +48598,7 @@
|
|
|
48604
48598
|
}
|
|
48605
48599
|
break $l$block_2;
|
|
48606
48600
|
}
|
|
48607
|
-
var tmp0_safe_receiver = player.
|
|
48601
|
+
var tmp0_safe_receiver = player.x6s_1.d68_1;
|
|
48608
48602
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j68_1;
|
|
48609
48603
|
if (!(connectionState == null) && !connectionState.isLive && !action_0.fromBot) {
|
|
48610
48604
|
var message_0 = 'Player connection state is not alive:' + ('playerId = ' + player.playerId);
|
|
@@ -48693,7 +48687,7 @@
|
|
|
48693
48687
|
}
|
|
48694
48688
|
var table = store.state.g6n();
|
|
48695
48689
|
var player = getPlayer(table.players, action_0.o8p_1);
|
|
48696
|
-
var tmp0_safe_receiver = player.
|
|
48690
|
+
var tmp0_safe_receiver = player.x6s_1.d68_1;
|
|
48697
48691
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j68_1;
|
|
48698
48692
|
var _destruct__k2r9zo = isDuplicateConnectionState(this.r91_1, connectionState, action_0.n8p_1);
|
|
48699
48693
|
var duplicate = _destruct__k2r9zo.pe();
|
|
@@ -48758,7 +48752,7 @@
|
|
|
48758
48752
|
while (tmp0_iterator_0.k()) {
|
|
48759
48753
|
var item_0 = tmp0_iterator_0.l();
|
|
48760
48754
|
// Inline function 'games.jass.logic.redux.middlewares.validation.PlayerTurnValidationMiddlewares.isWrongPlayerTurn.<anonymous>' call
|
|
48761
|
-
var tmp$ret$3 = to(item_0.playerId, item_0.
|
|
48755
|
+
var tmp$ret$3 = to(item_0.playerId, item_0.x6s_1.t69());
|
|
48762
48756
|
destination_0.e(tmp$ret$3);
|
|
48763
48757
|
}
|
|
48764
48758
|
var message = 'Is not player turn:' + ('expected = ' + toString(destination_0) + ', ') + ('actual = ' + player.playerId);
|
|
@@ -48802,7 +48796,7 @@
|
|
|
48802
48796
|
while (tmp0_iterator_0.k()) {
|
|
48803
48797
|
var item_0 = tmp0_iterator_0.l();
|
|
48804
48798
|
// Inline function 'games.jass.logic.redux.middlewares.validation.PlayerTurnValidationMiddlewares.isWrongPlayerTurnTag.<anonymous>' call
|
|
48805
|
-
var tmp$ret$5 = to(item_0.playerId, item_0.
|
|
48799
|
+
var tmp$ret$5 = to(item_0.playerId, item_0.x6s_1.c68_1);
|
|
48806
48800
|
destination_0.e(tmp$ret$5);
|
|
48807
48801
|
}
|
|
48808
48802
|
var message = tmp_0 + ('actual = ' + toString(destination_0));
|
|
@@ -48810,7 +48804,7 @@
|
|
|
48810
48804
|
return false;
|
|
48811
48805
|
}
|
|
48812
48806
|
var actualTag = receivedTag == null ? fallbackTag() : receivedTag;
|
|
48813
|
-
var expectedTag = player.
|
|
48807
|
+
var expectedTag = player.x6s_1.c68_1;
|
|
48814
48808
|
if (expectedTag == null) {
|
|
48815
48809
|
// Inline function 'kotlin.collections.map' call
|
|
48816
48810
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -48830,7 +48824,7 @@
|
|
|
48830
48824
|
while (tmp0_iterator_2.k()) {
|
|
48831
48825
|
var item_2 = tmp0_iterator_2.l();
|
|
48832
48826
|
// Inline function 'games.jass.logic.redux.middlewares.validation.PlayerTurnValidationMiddlewares.isWrongPlayerTurnTag.<anonymous>' call
|
|
48833
|
-
var tmp$ret$11 = to(item_2.playerId, item_2.
|
|
48827
|
+
var tmp$ret$11 = to(item_2.playerId, item_2.x6s_1.c68_1);
|
|
48834
48828
|
destination_2.e(tmp$ret$11);
|
|
48835
48829
|
}
|
|
48836
48830
|
var message_0 = tmp_1 + ('actual = ' + toString(destination_2));
|
|
@@ -48858,7 +48852,7 @@
|
|
|
48858
48852
|
while (tmp0_iterator_4.k()) {
|
|
48859
48853
|
var item_4 = tmp0_iterator_4.l();
|
|
48860
48854
|
// Inline function 'games.jass.logic.redux.middlewares.validation.PlayerTurnValidationMiddlewares.isWrongPlayerTurnTag.<anonymous>' call
|
|
48861
|
-
var tmp$ret$17 = to(item_4.playerId, item_4.
|
|
48855
|
+
var tmp$ret$17 = to(item_4.playerId, item_4.x6s_1.c68_1);
|
|
48862
48856
|
destination_4.e(tmp$ret$17);
|
|
48863
48857
|
}
|
|
48864
48858
|
var message_1 = tmp_2 + ('actual = ' + toString(destination_4));
|
|
@@ -48987,7 +48981,7 @@
|
|
|
48987
48981
|
var currentPlayerTurn = tmp$ret$2;
|
|
48988
48982
|
if (!(currentPlayerTurn == null)) {
|
|
48989
48983
|
var nextPlayerTurn = getPlayer(players, first(action_0.u8s()));
|
|
48990
|
-
if (currentPlayerTurn.playerId === nextPlayerTurn.playerId && currentPlayerTurn.
|
|
48984
|
+
if (currentPlayerTurn.playerId === nextPlayerTurn.playerId && currentPlayerTurn.x6s_1.c68_1 == nextPlayerTurn.x6s_1.c68_1) {
|
|
48991
48985
|
next(action_0);
|
|
48992
48986
|
break $l$block_1;
|
|
48993
48987
|
}
|
|
@@ -48998,7 +48992,7 @@
|
|
|
48998
48992
|
while (tmp0_iterator_0.k()) {
|
|
48999
48993
|
var item = tmp0_iterator_0.l();
|
|
49000
48994
|
// Inline function 'games.jass.logic.redux.middlewares.validation.PlayerTurnValidationMiddlewares.checkValidNextPlayerTurnMiddleware.<anonymous>.<anonymous>' call
|
|
49001
|
-
var tmp$ret$3 = to(item.playerId, item.
|
|
48995
|
+
var tmp$ret$3 = to(item.playerId, item.x6s_1.i69());
|
|
49002
48996
|
destination.e(tmp$ret$3);
|
|
49003
48997
|
}
|
|
49004
48998
|
var message = 'Player turn is already set: ' + ('expected = ' + toString(destination) + ', ') + ('actual = ' + toString(action_0.u8s()));
|
|
@@ -49392,7 +49386,7 @@
|
|
|
49392
49386
|
var tmp_0;
|
|
49393
49387
|
if (updatedCombinations.e2(item.playerId)) {
|
|
49394
49388
|
// Inline function 'kotlin.collections.filterNot' call
|
|
49395
|
-
var this_2 = item.
|
|
49389
|
+
var this_2 = item.b6t_1.l6u_1;
|
|
49396
49390
|
var predicate = get_withFirstCardOrBelaCombinationsPredicate();
|
|
49397
49391
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
49398
49392
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
@@ -49418,7 +49412,7 @@
|
|
|
49418
49412
|
var tmp$ret$3 = mapToDetailedFull(item_0, item, tmp1_config, tmp2_players, tmp0_newState);
|
|
49419
49413
|
destination_1.e(tmp$ret$3);
|
|
49420
49414
|
}
|
|
49421
|
-
tmp_0 = item.
|
|
49415
|
+
tmp_0 = item.r6t(VOID, VOID, VOID, VOID, VOID, item.b6t_1.l6x(VOID, plus(tmp_1, destination_1)));
|
|
49422
49416
|
} else {
|
|
49423
49417
|
tmp_0 = item;
|
|
49424
49418
|
}
|
|
@@ -49460,7 +49454,7 @@
|
|
|
49460
49454
|
}
|
|
49461
49455
|
var combinations = destination;
|
|
49462
49456
|
var tmp0_sceneInfo = table.sceneInfo.w8a(VOID, VOID, action.actId, VOID, action.actData);
|
|
49463
|
-
var tmp1_players = updateItem(table.players, player.
|
|
49457
|
+
var tmp1_players = updateItem(table.players, player.r6t(VOID, VOID, VOID, VOID, VOID, player.b6t_1.l6x(VOID, updateOrAddItems(player.b6t_1.l6u_1, combinations, SceneActReducer$combinationReducer$lambda))), get_byIdPlayerPredicate()(player.playerId));
|
|
49464
49458
|
return table.copy(VOID, VOID, VOID, VOID, tmp1_players, VOID, tmp0_sceneInfo);
|
|
49465
49459
|
}
|
|
49466
49460
|
function SceneActReducer$combinationReducer$lambda(value1, value2) {
|
|
@@ -49618,7 +49612,7 @@
|
|
|
49618
49612
|
}
|
|
49619
49613
|
var hasStubCards = tmp$ret$3;
|
|
49620
49614
|
if (hasStubCards) {
|
|
49621
|
-
return hand.y6w(VOID, VOID, plus(hand.
|
|
49615
|
+
return hand.y6w(VOID, VOID, plus(hand.y6t_1, combinationRecords), plus(hand.z6t_1, combinationRecords));
|
|
49622
49616
|
}
|
|
49623
49617
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
49624
49618
|
var dealerStrategy = tmp0_elvis_lhs == null ? this.w93_1.dealerStrategy : tmp0_elvis_lhs;
|
|
@@ -49635,8 +49629,8 @@
|
|
|
49635
49629
|
}
|
|
49636
49630
|
var value = tmp_0 + sum(destination_0);
|
|
49637
49631
|
var luckyFactor = this.u93_1.i8d(value, config.playersMode, dealerStrategy);
|
|
49638
|
-
Companion_instance_148.b8j(this.v93_1, 'equaliseCards: earn points for = ' + playerId + ' ' + ('luckyFactor: ' + luckyFactor + ', ') + ('currentLuckyFactor: ' + hand.
|
|
49639
|
-
return hand.y6w(VOID, plus(hand.
|
|
49632
|
+
Companion_instance_148.b8j(this.v93_1, 'equaliseCards: earn points for = ' + playerId + ' ' + ('luckyFactor: ' + luckyFactor + ', ') + ('currentLuckyFactor: ' + hand.g6u() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.m() + ', '));
|
|
49633
|
+
return hand.y6w(VOID, plus(hand.x6t_1, listOf_0(Companion_instance_16.s6w(luckyFactor, value))), plus(hand.y6t_1, combinationRecords), plus(hand.z6t_1, combinationRecords));
|
|
49640
49634
|
};
|
|
49641
49635
|
protoOf(PlayerHandReducer).y93 = function (hand, combinations) {
|
|
49642
49636
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -49651,15 +49645,15 @@
|
|
|
49651
49645
|
destination.e(tmp$ret$0);
|
|
49652
49646
|
}
|
|
49653
49647
|
var combinationRecords = destination;
|
|
49654
|
-
var tmp = updateOrAddItems(hand.
|
|
49655
|
-
return hand.y6w(VOID, VOID, tmp, updateOrAddItems(hand.
|
|
49648
|
+
var tmp = updateOrAddItems(hand.y6t_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda);
|
|
49649
|
+
return hand.y6w(VOID, VOID, tmp, updateOrAddItems(hand.z6t_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda_0));
|
|
49656
49650
|
};
|
|
49657
49651
|
protoOf(PlayerHandReducer).z93 = function (playerId, hand, updatedCombinations, config) {
|
|
49658
49652
|
if (updatedCombinations.p()) {
|
|
49659
49653
|
return hand;
|
|
49660
49654
|
}
|
|
49661
|
-
var previousFactor = hand.
|
|
49662
|
-
if (previousFactor.
|
|
49655
|
+
var previousFactor = hand.j6u();
|
|
49656
|
+
if (previousFactor.i6u_1 === 0.0) {
|
|
49663
49657
|
return this.y93(hand, updatedCombinations);
|
|
49664
49658
|
}
|
|
49665
49659
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -49675,7 +49669,7 @@
|
|
|
49675
49669
|
var updatedCombinationRecords = destination;
|
|
49676
49670
|
// Inline function 'kotlin.collections.filter' call
|
|
49677
49671
|
// Inline function 'kotlin.collections.filterTo' call
|
|
49678
|
-
var this_0 = hand.
|
|
49672
|
+
var this_0 = hand.y6t_1;
|
|
49679
49673
|
var destination_0 = ArrayList_init_$Create$_0();
|
|
49680
49674
|
var tmp0_iterator_0 = this_0.j();
|
|
49681
49675
|
while (tmp0_iterator_0.k()) {
|
|
@@ -49720,7 +49714,7 @@
|
|
|
49720
49714
|
var tmp$ret$8 = item_0.value;
|
|
49721
49715
|
destination_1.e(tmp$ret$8);
|
|
49722
49716
|
}
|
|
49723
|
-
var tmp_0 = previousFactor.
|
|
49717
|
+
var tmp_0 = previousFactor.i6u_1 - sum(destination_1);
|
|
49724
49718
|
// Inline function 'kotlin.collections.map' call
|
|
49725
49719
|
// Inline function 'kotlin.collections.mapTo' call
|
|
49726
49720
|
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(updatedCombinationRecords, 10));
|
|
@@ -49735,9 +49729,9 @@
|
|
|
49735
49729
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
49736
49730
|
var dealerStrategy = tmp0_elvis_lhs == null ? this.w93_1.dealerStrategy : tmp0_elvis_lhs;
|
|
49737
49731
|
var updatedLuckyFactor = this.u93_1.i8d(updatedValue, config.playersMode, dealerStrategy);
|
|
49738
|
-
Companion_instance_148.b8j(this.v93_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('luckyFactor: ' + updatedLuckyFactor + ', ') + ('currentLuckyFactor: ' + hand.
|
|
49732
|
+
Companion_instance_148.b8j(this.v93_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('luckyFactor: ' + updatedLuckyFactor + ', ') + ('currentLuckyFactor: ' + hand.g6u() + ', ') + ('value: ' + updatedValue + ', '));
|
|
49739
49733
|
// Inline function 'kotlin.collections.map' call
|
|
49740
|
-
var this_1 = hand.
|
|
49734
|
+
var this_1 = hand.x6t_1;
|
|
49741
49735
|
// Inline function 'kotlin.collections.mapTo' call
|
|
49742
49736
|
var destination_3 = ArrayList_init_$Create$(collectionSizeOrDefault(this_1, 10));
|
|
49743
49737
|
var tmp0_iterator_4 = this_1.j();
|
|
@@ -49748,8 +49742,8 @@
|
|
|
49748
49742
|
destination_3.e(tmp$ret$14);
|
|
49749
49743
|
}
|
|
49750
49744
|
var tmp_1 = destination_3;
|
|
49751
|
-
var tmp_2 = updateOrAddItems(hand.
|
|
49752
|
-
return hand.y6w(VOID, tmp_1, tmp_2, updateOrAddItems(hand.
|
|
49745
|
+
var tmp_2 = updateOrAddItems(hand.y6t_1, updatedCombinationRecords, PlayerHandReducer$playerHandCombinationsWithFactorReducer$lambda);
|
|
49746
|
+
return hand.y6w(VOID, tmp_1, tmp_2, updateOrAddItems(hand.z6t_1, updatedCombinationRecords, PlayerHandReducer$playerHandCombinationsWithFactorReducer$lambda_0));
|
|
49753
49747
|
};
|
|
49754
49748
|
function PlayerSceneReducer$playerEarnPointsSceneReducer$lambda(value1, value2) {
|
|
49755
49749
|
return value1.e6y_1 === value2.e6y_1;
|
|
@@ -49758,7 +49752,7 @@
|
|
|
49758
49752
|
this.h8o_1 = playerHandReducer;
|
|
49759
49753
|
}
|
|
49760
49754
|
protoOf(PlayerSceneReducer).i8o = function (player, cards, whoShuffleCardsPlayerId) {
|
|
49761
|
-
return player.
|
|
49755
|
+
return player.r6t(VOID, VOID, cards, player.z6s_1.j6x(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
|
|
49762
49756
|
};
|
|
49763
49757
|
protoOf(PlayerSceneReducer).a94 = function (player, distributedCards, combinations, config, players, selectedTrump) {
|
|
49764
49758
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -49773,17 +49767,17 @@
|
|
|
49773
49767
|
destination.e(tmp$ret$0);
|
|
49774
49768
|
}
|
|
49775
49769
|
var detailedCombinations = destination;
|
|
49776
|
-
var cards = plus(player.
|
|
49777
|
-
var hand = this.h8o_1.x93(player.playerId, player.
|
|
49770
|
+
var cards = plus(player.y6s_1, distributedCards);
|
|
49771
|
+
var hand = this.h8o_1.x93(player.playerId, player.a6t_1, cards, detailedCombinations, selectedTrump, config);
|
|
49778
49772
|
var tmp;
|
|
49779
49773
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
49780
49774
|
if (!combinations.p()) {
|
|
49781
|
-
tmp = player.
|
|
49775
|
+
tmp = player.b6t_1.l6x(VOID, updateOrAddItems(player.b6t_1.l6u_1, detailedCombinations, PlayerSceneReducer$playerEarnPointsSceneReducer$lambda));
|
|
49782
49776
|
} else {
|
|
49783
|
-
tmp = player.
|
|
49777
|
+
tmp = player.b6t_1;
|
|
49784
49778
|
}
|
|
49785
49779
|
var tmp0_points = tmp;
|
|
49786
|
-
return player.
|
|
49780
|
+
return player.r6t(VOID, VOID, cards, VOID, hand, tmp0_points);
|
|
49787
49781
|
};
|
|
49788
49782
|
protoOf(PlayerSceneReducer).b94 = function (player, sceneData) {
|
|
49789
49783
|
// Inline function 'kotlin.collections.single' call
|
|
@@ -49809,27 +49803,21 @@
|
|
|
49809
49803
|
var updatedCombinations = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
49810
49804
|
var tmp0_safe_receiver = sceneData.p78_1;
|
|
49811
49805
|
var playerAchievements = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g2(player.playerId);
|
|
49812
|
-
var
|
|
49813
|
-
|
|
49814
|
-
|
|
49815
|
-
|
|
49816
|
-
|
|
49817
|
-
|
|
49818
|
-
|
|
49819
|
-
var
|
|
49820
|
-
var
|
|
49821
|
-
var
|
|
49822
|
-
var
|
|
49823
|
-
var
|
|
49824
|
-
var
|
|
49825
|
-
var
|
|
49826
|
-
|
|
49827
|
-
var tmp12_options = tmp4_$this.j6x(VOID, VOID, tmp7_isGameWinner, VOID, tmp6_isRoundWinner, VOID, tmp5_isEarnedBiggestPointInLastGame, tmp8_failedContractsCount);
|
|
49828
|
-
var tmp9_earnedPoints = playerPointsCell.g6z_1;
|
|
49829
|
-
var tmp10_earnedCards = emptyList();
|
|
49830
|
-
var tmp13_points = new PlayerPoints(tmp9_earnedPoints, updatedCombinations, tmp10_earnedCards);
|
|
49831
|
-
var tmp14_hand = this.h8o_1.y93(player.z6s_1, updatedCombinations);
|
|
49832
|
-
return player.q6t(tmp11_userInfo, VOID, VOID, tmp12_options, tmp14_hand, tmp13_points);
|
|
49806
|
+
var tmp2_elvis_lhs = playerAchievements == null ? null : playerAchievements.newRating;
|
|
49807
|
+
var tmp12_userInfo = player.w6s_1.copy(VOID, VOID, VOID, VOID, tmp2_elvis_lhs == null ? player.w6s_1.rating : tmp2_elvis_lhs);
|
|
49808
|
+
var tmp5_$this = player.z6s_1;
|
|
49809
|
+
var tmp6_isEarnedBiggestPointInLastGame = sceneData.k78_1 === player.playerId;
|
|
49810
|
+
var tmp7_isRoundWinner = sceneData.l78_1.s1(player.playerId);
|
|
49811
|
+
var tmp3_safe_receiver = sceneData.m78_1;
|
|
49812
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.s1(player.playerId);
|
|
49813
|
+
var tmp8_isGameWinner = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
49814
|
+
var tmp9_failedContractsCount = pointsCell.z6y_1.isFailed ? player.z6s_1.k6t_1 + 1 | 0 : player.z6s_1.k6t_1;
|
|
49815
|
+
var tmp13_options = tmp5_$this.j6x(VOID, VOID, tmp8_isGameWinner, VOID, tmp7_isRoundWinner, VOID, tmp6_isEarnedBiggestPointInLastGame, tmp9_failedContractsCount);
|
|
49816
|
+
var tmp10_earnedPoints = playerPointsCell.g6z_1;
|
|
49817
|
+
var tmp11_earnedCards = emptyList();
|
|
49818
|
+
var tmp14_points = new PlayerPoints(tmp10_earnedPoints, updatedCombinations, tmp11_earnedCards);
|
|
49819
|
+
var tmp15_hand = this.h8o_1.y93(player.a6t_1, updatedCombinations);
|
|
49820
|
+
return player.r6t(tmp12_userInfo, VOID, VOID, tmp13_options, tmp15_hand, tmp14_points);
|
|
49833
49821
|
};
|
|
49834
49822
|
function refreshStartFromTime($this, playerState, config) {
|
|
49835
49823
|
var tmp;
|
|
@@ -49875,13 +49863,13 @@
|
|
|
49875
49863
|
// Inline function 'kotlin.contracts.contract' call
|
|
49876
49864
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.PlayerTurnMechanicReducer.onPlayerTurn.<anonymous>' call
|
|
49877
49865
|
// Inline function 'kotlin.collections.forEach' call
|
|
49878
|
-
var tmp0_iterator = model.
|
|
49866
|
+
var tmp0_iterator = model.h6v_1.j();
|
|
49879
49867
|
while (tmp0_iterator.k()) {
|
|
49880
49868
|
var element = tmp0_iterator.l();
|
|
49881
49869
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.PlayerTurnMechanicReducer.onPlayerTurn.<anonymous>.<anonymous>' call
|
|
49882
49870
|
var player = getPlayer(table.players, element);
|
|
49883
|
-
if (!(player.
|
|
49884
|
-
this.h8l_1.w(VOID, 'PlayerTurnMechanicReducer.onPlayerTurn: already ' + ('has a tag: ' + player.
|
|
49871
|
+
if (!(player.x6s_1.c68_1 == null)) {
|
|
49872
|
+
this.h8l_1.w(VOID, 'PlayerTurnMechanicReducer.onPlayerTurn: already ' + ('has a tag: ' + player.x6s_1.c68_1 + ', ') + ('new tag: ' + model.g6v_1));
|
|
49885
49873
|
}
|
|
49886
49874
|
var tmp = Companion_instance_0;
|
|
49887
49875
|
var tmp_0 = System_instance.i52();
|
|
@@ -49889,8 +49877,8 @@
|
|
|
49889
49877
|
Companion_getInstance_4();
|
|
49890
49878
|
var this_2 = table.config.timeoutTimeMillis;
|
|
49891
49879
|
var tmp$ret$0 = toDuration_0(this_2, DurationUnit_MILLISECONDS_getInstance());
|
|
49892
|
-
var newState = tmp.r69(player.
|
|
49893
|
-
updated(this_1, player.
|
|
49880
|
+
var newState = tmp.r69(player.x6s_1, tmp_0.w5h(tmp$ret$0), model.g6v_1);
|
|
49881
|
+
updated(this_1, player.r6t(VOID, newState), get_byIdPlayerPredicate()(player.playerId));
|
|
49894
49882
|
}
|
|
49895
49883
|
var newTable = table.copy(VOID, VOID, VOID, VOID, this_1);
|
|
49896
49884
|
var tmp_1 = 'onPlayerTurn: ' + model.toString() + ', ';
|
|
@@ -49900,10 +49888,10 @@
|
|
|
49900
49888
|
};
|
|
49901
49889
|
protoOf(PlayerTurnMechanicReducer).d94 = function (table, model) {
|
|
49902
49890
|
var player = getPlayer(table.players, model.q66());
|
|
49903
|
-
if (player.
|
|
49904
|
-
this.h8l_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.
|
|
49891
|
+
if (player.x6s_1.c68_1 == null) {
|
|
49892
|
+
this.h8l_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.g6v_1));
|
|
49905
49893
|
}
|
|
49906
|
-
var newTable = table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.
|
|
49894
|
+
var newTable = table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.r6t(VOID, Companion_instance_0.p69(player.x6s_1)), get_byIdPlayerPredicate()(player.playerId)));
|
|
49907
49895
|
var tmp = 'onResetPlayerTurn: ' + model.toString() + ', ';
|
|
49908
49896
|
var tmp_0 = filterPlayerTurn(table.players);
|
|
49909
49897
|
this.h8l_1.d('PlayerTurn', tmp + ('currentTurn = ' + joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onResetPlayerTurn$lambda)));
|
|
@@ -49911,7 +49899,7 @@
|
|
|
49911
49899
|
};
|
|
49912
49900
|
protoOf(PlayerTurnMechanicReducer).m92 = function (table, action) {
|
|
49913
49901
|
var player = getPlayer(table.players, action.f8r_1);
|
|
49914
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.
|
|
49902
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.r6t(VOID, player.x6s_1.q69(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
|
|
49915
49903
|
};
|
|
49916
49904
|
protoOf(PlayerTurnMechanicReducer).e94 = function (table) {
|
|
49917
49905
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -49922,7 +49910,7 @@
|
|
|
49922
49910
|
while (tmp0_iterator.k()) {
|
|
49923
49911
|
var item = tmp0_iterator.l();
|
|
49924
49912
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.PlayerTurnMechanicReducer.onResetPlayersReady.<anonymous>' call
|
|
49925
|
-
var tmp$ret$0 = item.
|
|
49913
|
+
var tmp$ret$0 = item.r6t(VOID, item.x6s_1.q69(VOID, VOID, VOID, VOID, false));
|
|
49926
49914
|
destination.e(tmp$ret$0);
|
|
49927
49915
|
}
|
|
49928
49916
|
return table.copy(VOID, VOID, VOID, VOID, destination);
|
|
@@ -49930,16 +49918,16 @@
|
|
|
49930
49918
|
protoOf(PlayerTurnMechanicReducer).m8l = function (table, playerId, newConnectionState, reconnectUntilTime) {
|
|
49931
49919
|
var players = table.players;
|
|
49932
49920
|
var player = getPlayer(players, playerId);
|
|
49933
|
-
var previousConnection = player.
|
|
49921
|
+
var previousConnection = player.x6s_1.d68_1;
|
|
49934
49922
|
var newPlayerConnection = newConnectionState.n2_1 === 0 ? Companion_instance_1.i68(previousConnection) : Companion_instance_1.p68(previousConnection, newConnectionState);
|
|
49935
49923
|
var tmp;
|
|
49936
49924
|
if (newConnectionState.n2_1 === 0) {
|
|
49937
|
-
var tmp2_$this = player.
|
|
49938
|
-
var tmp3_startFromTime = refreshStartFromTime(this, player.
|
|
49939
|
-
var tmp4_playerTurnTimeout = refreshTimeoutTime(this, player.
|
|
49925
|
+
var tmp2_$this = player.x6s_1;
|
|
49926
|
+
var tmp3_startFromTime = refreshStartFromTime(this, player.x6s_1, table.config);
|
|
49927
|
+
var tmp4_playerTurnTimeout = refreshTimeoutTime(this, player.x6s_1, table.config);
|
|
49940
49928
|
tmp = tmp2_$this.q69(tmp3_startFromTime, tmp4_playerTurnTimeout, null, VOID, VOID, VOID, newPlayerConnection);
|
|
49941
49929
|
} else {
|
|
49942
|
-
var tmp6_$this = player.
|
|
49930
|
+
var tmp6_$this = player.x6s_1;
|
|
49943
49931
|
var tmp_0;
|
|
49944
49932
|
if (reconnectUntilTime == null) {
|
|
49945
49933
|
tmp_0 = null;
|
|
@@ -49952,7 +49940,7 @@
|
|
|
49952
49940
|
var tmp7_waitPlayerUntilTime = tmp_0;
|
|
49953
49941
|
tmp = tmp6_$this.q69(VOID, VOID, tmp7_waitPlayerUntilTime, VOID, VOID, VOID, newPlayerConnection);
|
|
49954
49942
|
}
|
|
49955
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.
|
|
49943
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.r6t(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.i8l_1.j94(playerId, previousConnection, newPlayerConnection, table.gameHistory));
|
|
49956
49944
|
};
|
|
49957
49945
|
protoOf(PlayerTurnMechanicReducer).k8l = function (config) {
|
|
49958
49946
|
return getProgress(PlayerWaitingState_IN_PROGRESS_getInstance(), refreshTimeoutTimeWhenTurn(this, config), this.h8l_1);
|
|
@@ -50250,7 +50238,7 @@
|
|
|
50250
50238
|
var tmp1 = index;
|
|
50251
50239
|
index = tmp1 + 1 | 0;
|
|
50252
50240
|
var index_0 = checkIndexOverflow(tmp1);
|
|
50253
|
-
var tmp$ret$6 = item_1.
|
|
50241
|
+
var tmp$ret$6 = item_1.r6t(VOID, VOID, VOID, item_1.z6s_1.j6x(VOID, index_0));
|
|
50254
50242
|
destination_1.e(tmp$ret$6);
|
|
50255
50243
|
}
|
|
50256
50244
|
return destination_1;
|
|
@@ -50267,18 +50255,18 @@
|
|
|
50267
50255
|
// Inline function 'kotlin.let' call
|
|
50268
50256
|
// Inline function 'kotlin.contracts.contract' call
|
|
50269
50257
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.TradeMechanicReducer.onPlayerChoice.<anonymous>.<anonymous>' call
|
|
50270
|
-
var it = player.
|
|
50258
|
+
var it = player.z6s_1.h6x();
|
|
50271
50259
|
var tmp;
|
|
50272
50260
|
if (it == null) {
|
|
50273
50261
|
this.d93_1.w(VOID, "Can't support this circle increment");
|
|
50274
|
-
tmp = player.
|
|
50262
|
+
tmp = player.z6s_1.n6t_1;
|
|
50275
50263
|
} else {
|
|
50276
50264
|
tmp = it;
|
|
50277
50265
|
}
|
|
50278
50266
|
var newNumberOfCircle = tmp;
|
|
50279
50267
|
var tmp_0;
|
|
50280
50268
|
if (action.b8m_1 == null) {
|
|
50281
|
-
tmp_0 = state.g8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.
|
|
50269
|
+
tmp_0 = state.g8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.r6t(VOID, VOID, VOID, player.z6s_1.j6x(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, newNumberOfCircle)), get_byIdPlayerPredicate()(player.playerId))));
|
|
50282
50270
|
} else {
|
|
50283
50271
|
// Inline function 'kotlin.collections.map' call
|
|
50284
50272
|
var this_0 = table.players;
|
|
@@ -50289,7 +50277,7 @@
|
|
|
50289
50277
|
var item = tmp0_iterator.l();
|
|
50290
50278
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.TradeMechanicReducer.onPlayerChoice.<anonymous>.<anonymous>' call
|
|
50291
50279
|
var isPlayerChoseSuit = action.d8m_1 === item.playerId;
|
|
50292
|
-
var tmp$ret$2 = item.
|
|
50280
|
+
var tmp$ret$2 = item.r6t(VOID, VOID, VOID, item.z6s_1.j6x(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, isPlayerChoseSuit ? newNumberOfCircle : player.z6s_1.n6t_1, isPlayerChoseSuit, isPlayerChoseSuit));
|
|
50293
50281
|
destination.e(tmp$ret$2);
|
|
50294
50282
|
}
|
|
50295
50283
|
var tmp_1 = destination;
|
|
@@ -50313,7 +50301,7 @@
|
|
|
50313
50301
|
while (tmp0_iterator.k()) {
|
|
50314
50302
|
var item = tmp0_iterator.l();
|
|
50315
50303
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.TradeMechanicReducer.onTrumpSelected.<anonymous>' call
|
|
50316
|
-
var tmp$ret$0 = item.
|
|
50304
|
+
var tmp$ret$0 = item.r6t(VOID, VOID, VOID, item.z6s_1.j6x(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, RoundNumber_CIRCLE_NOT_STARTED_getInstance()));
|
|
50317
50305
|
destination.e(tmp$ret$0);
|
|
50318
50306
|
}
|
|
50319
50307
|
return state.g8p(table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, VOID, VOID, VOID, VOID, table.gameInfo.h86(VOID, VOID, table.gameInfo.round.copy(VOID, VOID, action.h8r_1))));
|
|
@@ -50437,9 +50425,9 @@
|
|
|
50437
50425
|
var updatedCombinations = plus(tmp_0, tmp$ret$16);
|
|
50438
50426
|
var tmp0_$this = this.q92_1;
|
|
50439
50427
|
var tmp1_playerId = item_1.playerId;
|
|
50440
|
-
var tmp2_hand = item_1.
|
|
50428
|
+
var tmp2_hand = item_1.a6t_1;
|
|
50441
50429
|
var tmp_1 = tmp0_$this.z93(tmp1_playerId, tmp2_hand, updatedCombinations, config);
|
|
50442
|
-
tmp = item_1.
|
|
50430
|
+
tmp = item_1.r6t(VOID, VOID, VOID, VOID, tmp_1, item_1.b6t_1.l6x(VOID, updateOrAddItems(item_1.b6t_1.l6u_1, updatedCombinations, CombinationsMechanicReducer$onWinnerCombinations$lambda)));
|
|
50443
50431
|
} else {
|
|
50444
50432
|
tmp = item_1;
|
|
50445
50433
|
}
|
|
@@ -50452,7 +50440,7 @@
|
|
|
50452
50440
|
var table = state.g6n();
|
|
50453
50441
|
var player = getPlayer(table.players, action.l8r_1);
|
|
50454
50442
|
// Inline function 'kotlin.collections.map' call
|
|
50455
|
-
var this_0 = player.
|
|
50443
|
+
var this_0 = player.b6t_1.l6u_1;
|
|
50456
50444
|
// Inline function 'kotlin.collections.mapTo' call
|
|
50457
50445
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
50458
50446
|
var tmp0_iterator = this_0.j();
|
|
@@ -50494,8 +50482,8 @@
|
|
|
50494
50482
|
destination.e(tmp$ret$2);
|
|
50495
50483
|
}
|
|
50496
50484
|
var updatedCombinations = destination;
|
|
50497
|
-
var updatedPoints = player.
|
|
50498
|
-
var announcedCombination = getCombination(updatedPoints.
|
|
50485
|
+
var updatedPoints = player.b6t_1.l6x(VOID, updatedCombinations);
|
|
50486
|
+
var announcedCombination = getCombination(updatedPoints.l6u_1, single(action.k8r_1).n77_1);
|
|
50499
50487
|
if (announcedCombination.g6y_1.equals(CombinationState_ACCEPTED_getInstance())) {
|
|
50500
50488
|
switch (announcedCombination.f6y_1.n2_1) {
|
|
50501
50489
|
case 5:
|
|
@@ -50508,26 +50496,26 @@
|
|
|
50508
50496
|
|
|
50509
50497
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.logic.CombinationsMechanicReducer.onCombinationChoice.<anonymous>' call
|
|
50510
50498
|
|
|
50511
|
-
var cards = player.
|
|
50499
|
+
var cards = player.y6s_1;
|
|
50512
50500
|
var newCards = this.p92_1.t65(cards, trumpSevenCard);
|
|
50513
50501
|
var tmp1_cards = this.p92_1.u65(newCards, trumpCard);
|
|
50514
|
-
var tmp3_players = updateItem(table.players, player.
|
|
50502
|
+
var tmp3_players = updateItem(table.players, player.r6t(VOID, VOID, tmp1_cards, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId));
|
|
50515
50503
|
var tmp4_gameHistory = this.r92_1.r94(player.playerId, listOf_0(announcedCombination.f6y_1), VOID, table.gameHistory);
|
|
50516
50504
|
return state.g8p(table.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, VOID, VOID, tmp2_cardDeck, VOID, VOID, tmp4_gameHistory));
|
|
50517
50505
|
case 12:
|
|
50518
|
-
return state.g8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.
|
|
50506
|
+
return state.g8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.r6t(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.r92_1.r94(player.playerId, listOf_0(announcedCombination.f6y_1), VOID, table.gameHistory)));
|
|
50519
50507
|
default:
|
|
50520
50508
|
throw new MechanicException("Can't support this combination " + announcedCombination.toString());
|
|
50521
50509
|
}
|
|
50522
50510
|
} else {
|
|
50523
|
-
return state.g8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.
|
|
50511
|
+
return state.g8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.r6t(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId))));
|
|
50524
50512
|
}
|
|
50525
50513
|
};
|
|
50526
50514
|
function onPutCardForPlayer($this, player, table, card, cardsOnTheTable, combinations) {
|
|
50527
50515
|
var acceptedCombinations = combinations == null ? emptyList() : combinations;
|
|
50528
|
-
var declinedCombinations = filterByCombinationState(filterWithFirstCardCombination(player.
|
|
50516
|
+
var declinedCombinations = filterByCombinationState(filterWithFirstCardCombination(player.b6t_1.l6u_1), [CombinationState_NOT_VERIFIED_getInstance()]);
|
|
50529
50517
|
// Inline function 'kotlin.collections.map' call
|
|
50530
|
-
var this_0 = player.
|
|
50518
|
+
var this_0 = player.b6t_1.l6u_1;
|
|
50531
50519
|
// Inline function 'kotlin.collections.mapTo' call
|
|
50532
50520
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
50533
50521
|
var tmp0_iterator = this_0.j();
|
|
@@ -50597,27 +50585,27 @@
|
|
|
50597
50585
|
destination.e(tmp$ret$1);
|
|
50598
50586
|
}
|
|
50599
50587
|
var updatedCombinations = destination;
|
|
50600
|
-
var tmp1_cards = $this.w92_1.t65(player.
|
|
50601
|
-
var tmp2_points = player.
|
|
50588
|
+
var tmp1_cards = $this.w92_1.t65(player.y6s_1, card);
|
|
50589
|
+
var tmp2_points = player.b6t_1.l6x(VOID, updatedCombinations);
|
|
50602
50590
|
var tmp3_hand = updatePlayerHand($this, player, cardsOnTheTable, table.gameInfo.round.selectedTrump);
|
|
50603
|
-
return player.
|
|
50591
|
+
return player.r6t(VOID, VOID, tmp1_cards, VOID, tmp3_hand, tmp2_points);
|
|
50604
50592
|
}
|
|
50605
50593
|
function updatePlayerWhenPickBribe($this, player, whoGotBribePlayerId, cardsOnTable, combinations) {
|
|
50606
50594
|
var isGotBribe = player.playerId === whoGotBribePlayerId;
|
|
50607
|
-
var tmp3_options = player.
|
|
50608
|
-
var tmp0_$this = player.
|
|
50595
|
+
var tmp3_options = player.z6s_1.j6x(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, isGotBribe);
|
|
50596
|
+
var tmp0_$this = player.b6t_1;
|
|
50609
50597
|
var tmp1_earnedCards = updateWonCards($this, player, isGotBribe, cardsOnTable);
|
|
50610
50598
|
var tmp;
|
|
50611
50599
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
50612
50600
|
if (!combinations.p()) {
|
|
50613
|
-
tmp = updateOrAddItems(player.
|
|
50601
|
+
tmp = updateOrAddItems(player.b6t_1.l6u_1, combinations, EarnPointsMechanicReducer$updatePlayerWhenPickBribe$lambda);
|
|
50614
50602
|
} else {
|
|
50615
|
-
tmp = player.
|
|
50603
|
+
tmp = player.b6t_1.l6u_1;
|
|
50616
50604
|
}
|
|
50617
50605
|
var tmp2_combinations = tmp;
|
|
50618
50606
|
var tmp4_points = tmp0_$this.l6x(VOID, tmp2_combinations, tmp1_earnedCards);
|
|
50619
|
-
var tmp5_hand = $this.y92_1.y93(player.
|
|
50620
|
-
return player.
|
|
50607
|
+
var tmp5_hand = $this.y92_1.y93(player.a6t_1, combinations);
|
|
50608
|
+
return player.r6t(VOID, VOID, VOID, tmp3_options, tmp5_hand, tmp4_points);
|
|
50621
50609
|
}
|
|
50622
50610
|
function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config) {
|
|
50623
50611
|
var bellaCombination = $this.v92_1.j8g(players);
|
|
@@ -50678,15 +50666,15 @@
|
|
|
50678
50666
|
var tmp$ret$0 = item.o76_1;
|
|
50679
50667
|
destination.e(tmp$ret$0);
|
|
50680
50668
|
}
|
|
50681
|
-
tmp = plus(player.
|
|
50669
|
+
tmp = plus(player.b6t_1.m6u_1, destination);
|
|
50682
50670
|
} else {
|
|
50683
|
-
tmp = player.
|
|
50671
|
+
tmp = player.b6t_1.m6u_1;
|
|
50684
50672
|
}
|
|
50685
50673
|
return tmp;
|
|
50686
50674
|
}
|
|
50687
50675
|
function updatePlayerHand($this, player, cardsOnTheTable, trump) {
|
|
50688
50676
|
if (cardsOnTheTable.m() === 1) {
|
|
50689
|
-
return player.
|
|
50677
|
+
return player.a6t_1;
|
|
50690
50678
|
}
|
|
50691
50679
|
var tmp0_elvis_lhs = Companion_instance_132.f87(cardsOnTheTable);
|
|
50692
50680
|
var tmp;
|
|
@@ -50702,16 +50690,16 @@
|
|
|
50702
50690
|
var tmp_0;
|
|
50703
50691
|
switch (firstCard.o76_1.i63().n2_1) {
|
|
50704
50692
|
case 0:
|
|
50705
|
-
tmp_0 = player.
|
|
50693
|
+
tmp_0 = player.a6t_1.y6w(VOID, VOID, VOID, VOID, hasNoTrump, true);
|
|
50706
50694
|
break;
|
|
50707
50695
|
case 1:
|
|
50708
|
-
tmp_0 = player.
|
|
50696
|
+
tmp_0 = player.a6t_1.y6w(VOID, VOID, VOID, VOID, hasNoTrump, VOID, true);
|
|
50709
50697
|
break;
|
|
50710
50698
|
case 2:
|
|
50711
|
-
tmp_0 = player.
|
|
50699
|
+
tmp_0 = player.a6t_1.y6w(VOID, VOID, VOID, VOID, hasNoTrump, VOID, VOID, true);
|
|
50712
50700
|
break;
|
|
50713
50701
|
case 3:
|
|
50714
|
-
tmp_0 = player.
|
|
50702
|
+
tmp_0 = player.a6t_1.y6w(VOID, VOID, VOID, VOID, hasNoTrump, VOID, VOID, VOID, true);
|
|
50715
50703
|
break;
|
|
50716
50704
|
default:
|
|
50717
50705
|
noWhenBranchMatchedException();
|
|
@@ -50719,7 +50707,7 @@
|
|
|
50719
50707
|
}
|
|
50720
50708
|
return tmp_0;
|
|
50721
50709
|
}
|
|
50722
|
-
return player.
|
|
50710
|
+
return player.a6t_1;
|
|
50723
50711
|
}
|
|
50724
50712
|
function EarnPointsMechanicReducer$updatePlayerWhenPickBribe$lambda(value1, value2) {
|
|
50725
50713
|
return value1.e6y_1 === value2.e6y_1;
|
|
@@ -50776,7 +50764,7 @@
|
|
|
50776
50764
|
while (tmp0_iterator.k()) {
|
|
50777
50765
|
var item = tmp0_iterator.l();
|
|
50778
50766
|
// Inline function 'games.jass.logic.redux.reducers.sclices.scenes.logic.EarnPointsMechanicReducer.onPickBribe.<anonymous>' call
|
|
50779
|
-
var tmp$ret$0 = to(item.playerId, item.
|
|
50767
|
+
var tmp$ret$0 = to(item.playerId, item.y6s_1);
|
|
50780
50768
|
destination.e(tmp$ret$0);
|
|
50781
50769
|
}
|
|
50782
50770
|
var playersCards = destination;
|
|
@@ -51017,7 +51005,7 @@
|
|
|
51017
51005
|
while (tmp0_iterator.k()) {
|
|
51018
51006
|
var item = tmp0_iterator.l();
|
|
51019
51007
|
// Inline function 'games.jass.logic.redux.reducers.sclices.table.GameHistoryReducer.calcPointsSceneHistoryReducer.<anonymous>' call
|
|
51020
|
-
var tmp$ret$0 = mapToHistory(item, playersAchievements == null ? null : playersAchievements.g2(item.
|
|
51008
|
+
var tmp$ret$0 = mapToHistory(item, playersAchievements == null ? null : playersAchievements.g2(item.t6u_1));
|
|
51021
51009
|
destination.e(tmp$ret$0);
|
|
51022
51010
|
}
|
|
51023
51011
|
tmp = currentMetadata.copy(VOID, destination);
|
|
@@ -51039,7 +51027,7 @@
|
|
|
51039
51027
|
while (tmp0_iterator.k()) {
|
|
51040
51028
|
var element = tmp0_iterator.l();
|
|
51041
51029
|
// Inline function 'games.jass.logic.redux.reducers.sclices.table.TableLifecycleReducerImpl.roundFinishedPreviousRound.<anonymous>' call
|
|
51042
|
-
var list = element.
|
|
51030
|
+
var list = element.y6s_1;
|
|
51043
51031
|
addAll(destination, list);
|
|
51044
51032
|
}
|
|
51045
51033
|
var playersCards = destination;
|
|
@@ -51076,20 +51064,20 @@
|
|
|
51076
51064
|
return round.copy(0, null, null);
|
|
51077
51065
|
}
|
|
51078
51066
|
function roundFinishedPlayerReducer($this, player) {
|
|
51079
|
-
var tmp0_options = roundFinishedPlayerOptionReducer($this, player.
|
|
51080
|
-
var tmp1_points = roundFinishedPlayerReducer_0($this, player.
|
|
51081
|
-
var tmp2_state = Companion_instance_0.p69(player.
|
|
51082
|
-
var tmp3_hand = Companion_instance_17.u6w(player.
|
|
51067
|
+
var tmp0_options = roundFinishedPlayerOptionReducer($this, player.z6s_1);
|
|
51068
|
+
var tmp1_points = roundFinishedPlayerReducer_0($this, player.b6t_1);
|
|
51069
|
+
var tmp2_state = Companion_instance_0.p69(player.x6s_1);
|
|
51070
|
+
var tmp3_hand = Companion_instance_17.u6w(player.a6t_1);
|
|
51083
51071
|
var tmp4_cards = emptyList();
|
|
51084
|
-
return player.
|
|
51072
|
+
return player.r6t(VOID, tmp2_state, tmp4_cards, tmp0_options, tmp3_hand, tmp1_points);
|
|
51085
51073
|
}
|
|
51086
51074
|
function gameFinishedPlayerReducer($this, player) {
|
|
51087
|
-
var tmp0_options = gameFinishedPlayerOptionReducer($this, player.
|
|
51088
|
-
var tmp1_points = gameFinishedPlayerReducer_0($this, player.
|
|
51089
|
-
var tmp2_state = Companion_instance_0.p69(player.
|
|
51090
|
-
var tmp3_hand = Companion_instance_17.v6w(player.
|
|
51075
|
+
var tmp0_options = gameFinishedPlayerOptionReducer($this, player.z6s_1);
|
|
51076
|
+
var tmp1_points = gameFinishedPlayerReducer_0($this, player.b6t_1);
|
|
51077
|
+
var tmp2_state = Companion_instance_0.p69(player.x6s_1);
|
|
51078
|
+
var tmp3_hand = Companion_instance_17.v6w(player.a6t_1);
|
|
51091
51079
|
var tmp4_cards = emptyList();
|
|
51092
|
-
return player.
|
|
51080
|
+
return player.r6t(VOID, tmp2_state, tmp4_cards, tmp0_options, tmp3_hand, tmp1_points);
|
|
51093
51081
|
}
|
|
51094
51082
|
function roundFinishedPlayerOptionReducer($this, options) {
|
|
51095
51083
|
var tmp0_numberOfCircle = RoundNumber_CIRCLE_NOT_STARTED_getInstance();
|
|
@@ -51100,7 +51088,7 @@
|
|
|
51100
51088
|
return options.j6x(VOID, VOID, false, false, false, VOID, false, 0, 15, VOID, tmp0_numberOfCircle, false, false);
|
|
51101
51089
|
}
|
|
51102
51090
|
function roundFinishedPlayerReducer_0($this, points) {
|
|
51103
|
-
return points.l6x(VOID, filterByCombinationState(points.
|
|
51091
|
+
return points.l6x(VOID, filterByCombinationState(points.l6u_1, [CombinationState_VERIFYING_getInstance()]), emptyList());
|
|
51104
51092
|
}
|
|
51105
51093
|
function gameFinishedPlayerReducer_0($this, points) {
|
|
51106
51094
|
return points.k6x(0, emptyList(), emptyList());
|
|
@@ -51127,7 +51115,7 @@
|
|
|
51127
51115
|
var tmp_0 = Companion_instance_16;
|
|
51128
51116
|
var tmp0_elvis_lhs = item.initialLuckyFactor;
|
|
51129
51117
|
var tmp4_hand = new PlayerHand(VOID, listOf_0(tmp_0.s6w(tmp0_elvis_lhs == null ? 5.0 : tmp0_elvis_lhs, 0.0)));
|
|
51130
|
-
var tmp$ret$0 = Companion_instance_14.
|
|
51118
|
+
var tmp$ret$0 = Companion_instance_14.v6s(item, index_0, tmp3_isGameCreator, VOID, tmp2_state, tmp4_hand);
|
|
51131
51119
|
destination.e(tmp$ret$0);
|
|
51132
51120
|
}
|
|
51133
51121
|
var tmp_1 = destination;
|
|
@@ -51152,7 +51140,7 @@
|
|
|
51152
51140
|
while (tmp0_iterator.k()) {
|
|
51153
51141
|
var item = tmp0_iterator.l();
|
|
51154
51142
|
// Inline function 'games.jass.logic.redux.reducers.sclices.table.TableLifecycleReducerImpl.resetTableReducer.<anonymous>' call
|
|
51155
|
-
var tmp$ret$0 = item.
|
|
51143
|
+
var tmp$ret$0 = item.r6t(VOID, Companion_instance_0.p69(item.x6s_1));
|
|
51156
51144
|
destination.e(tmp$ret$0);
|
|
51157
51145
|
}
|
|
51158
51146
|
return table.copy(VOID, VOID, VOID, VOID, destination);
|
|
@@ -52314,7 +52302,7 @@
|
|
|
52314
52302
|
while (tmp0_iterator.k()) {
|
|
52315
52303
|
var element = tmp0_iterator.l();
|
|
52316
52304
|
// Inline function 'GameHelperImpl.filterLivePlayers.<anonymous>' call
|
|
52317
|
-
if (element.
|
|
52305
|
+
if (element.x6s_1.s69().j68_1.isLive) {
|
|
52318
52306
|
destination_0.e(element);
|
|
52319
52307
|
}
|
|
52320
52308
|
}
|
|
@@ -52363,7 +52351,7 @@
|
|
|
52363
52351
|
while (tmp0_iterator.k()) {
|
|
52364
52352
|
var element = tmp0_iterator.l();
|
|
52365
52353
|
// Inline function 'GameHelperImpl.filterLiveDuringGamePlayers.<anonymous>' call
|
|
52366
|
-
if (element.
|
|
52354
|
+
if (element.x6s_1.s69().u68(state.g6n().gameDuration)) {
|
|
52367
52355
|
destination_0.e(element);
|
|
52368
52356
|
}
|
|
52369
52357
|
}
|
|
@@ -52412,7 +52400,7 @@
|
|
|
52412
52400
|
while (tmp0_iterator.k()) {
|
|
52413
52401
|
var element = tmp0_iterator.l();
|
|
52414
52402
|
// Inline function 'GameHelperImpl.filterBotPlayers.<anonymous>' call
|
|
52415
|
-
if (element.
|
|
52403
|
+
if (element.w6s_1.isBot) {
|
|
52416
52404
|
destination_0.e(element);
|
|
52417
52405
|
}
|
|
52418
52406
|
}
|
|
@@ -52461,7 +52449,7 @@
|
|
|
52461
52449
|
while (tmp0_iterator.k()) {
|
|
52462
52450
|
var element = tmp0_iterator.l();
|
|
52463
52451
|
// Inline function 'GameHelperImpl.filterRealPlayers.<anonymous>' call
|
|
52464
|
-
if (!element.
|
|
52452
|
+
if (!element.w6s_1.isBot) {
|
|
52465
52453
|
destination_0.e(element);
|
|
52466
52454
|
}
|
|
52467
52455
|
}
|
|
@@ -52481,7 +52469,7 @@
|
|
|
52481
52469
|
if (!state.h6n()) {
|
|
52482
52470
|
return null;
|
|
52483
52471
|
}
|
|
52484
|
-
var tmp0_safe_receiver = getUserProfilePayloadOrNull(getPlayer(state.g6n().players, playerId).
|
|
52472
|
+
var tmp0_safe_receiver = getUserProfilePayloadOrNull(getPlayer(state.g6n().players, playerId).w6s_1);
|
|
52485
52473
|
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
|
|
52486
52474
|
};
|
|
52487
52475
|
protoOf(GameHelperImpl).getUserSocketIds = function (store) {
|
|
@@ -52500,7 +52488,7 @@
|
|
|
52500
52488
|
var element = tmp0_iterator.l();
|
|
52501
52489
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
52502
52490
|
// Inline function 'GameHelperImpl.getUserSocketIds.<anonymous>' call
|
|
52503
|
-
var tmp0_safe_receiver = getUserProfilePayloadOrNull(element.
|
|
52491
|
+
var tmp0_safe_receiver = getUserProfilePayloadOrNull(element.w6s_1);
|
|
52504
52492
|
var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.socketId;
|
|
52505
52493
|
if (tmp0_safe_receiver_0 == null)
|
|
52506
52494
|
null;
|