game_client_logic_deb 1.4.50 → 1.4.52
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.
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
var BufferedAction = kotlin_com_gamewithcats_game_engine_core.$_$.b2;
|
|
116
116
|
var ReleaseBufferTriggerAction = kotlin_com_gamewithcats_game_engine_core.$_$.e2;
|
|
117
117
|
var get_isCreated = kotlin_com_gamewithcats_game_engine_engine.$_$.p3;
|
|
118
|
-
var FirstMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.c2;
|
|
119
118
|
var InSceneAction = kotlin_com_gamewithcats_game_engine_engine.$_$.d2;
|
|
120
119
|
var FinishPlayerReason = kotlin_com_gamewithcats_game_engine_core.$_$.c1;
|
|
120
|
+
var FirstMechanicAction = kotlin_com_gamewithcats_game_engine_engine.$_$.c2;
|
|
121
121
|
var TerminatedAction = kotlin_com_gamewithcats_game_engine_engine.$_$.p2;
|
|
122
122
|
var getGrowth = kotlin_com_gamewithcats_game_engine_core.$_$.a1;
|
|
123
123
|
var Companion_getInstance = kotlin_com_gamewithcats_game_engine_engine.$_$.b4;
|
|
@@ -373,16 +373,13 @@
|
|
|
373
373
|
setMetadataFor(Result, 'Result', classMeta);
|
|
374
374
|
setMetadataFor(OutBuffer, 'OutBuffer', classMeta, Result);
|
|
375
375
|
setMetadataFor(InBuffer, 'InBuffer', classMeta, Result);
|
|
376
|
-
setMetadataFor(
|
|
377
|
-
setMetadataFor(
|
|
378
|
-
setMetadataFor(
|
|
379
|
-
setMetadataFor(
|
|
380
|
-
setMetadataFor(
|
|
376
|
+
setMetadataFor(CheckSceneBufferUseCase, 'CheckSceneBufferUseCase', classMeta);
|
|
377
|
+
setMetadataFor(PassErrorActionBufferUseCase, 'PassErrorActionBufferUseCase', classMeta);
|
|
378
|
+
setMetadataFor(PassFirstMechanicActionBufferUseCase, 'PassFirstMechanicActionBufferUseCase', classMeta);
|
|
379
|
+
setMetadataFor(PassTerminatedActionBufferUseCase, 'PassTerminatedActionBufferUseCase', classMeta);
|
|
380
|
+
setMetadataFor(WaitUntilExpectantFinishedBufferUseCase, 'WaitUntilExpectantFinishedBufferUseCase', classMeta);
|
|
381
|
+
setMetadataFor(WaitWhenSceneIsActiveBufferUseCase, 'WaitWhenSceneIsActiveBufferUseCase', classMeta);
|
|
381
382
|
setMetadataFor(ClientStatisticsInteractor, 'ClientStatisticsInteractor', interfaceMeta, VOID, VOID, VOID, VOID, [2, 1, 0]);
|
|
382
|
-
function remove$default(id, $completion, $super) {
|
|
383
|
-
id = id === VOID ? null : id;
|
|
384
|
-
return $super === VOID ? this.o4o(id, $completion) : $super.o4o.call(this, id, $completion);
|
|
385
|
-
}
|
|
386
383
|
setMetadataFor(PersistentAppStateInteractor, 'PersistentAppStateInteractor', interfaceMeta, VOID, VOID, VOID, VOID, [2, 1]);
|
|
387
384
|
setMetadataFor(PutCardValidatorInteractor, 'PutCardValidatorInteractor', interfaceMeta);
|
|
388
385
|
setMetadataFor(PutCardValidatorInteractorImpl, 'PutCardValidatorInteractorImpl', classMeta, VOID, [PutCardValidatorInteractor]);
|
|
@@ -556,7 +553,7 @@
|
|
|
556
553
|
setMetadataFor(UpdateMessagesCountAction, 'UpdateMessagesCountAction', objectMeta, ClientUIAction);
|
|
557
554
|
setMetadataFor(CombinationToAnnounceAction, 'CombinationToAnnounceAction', classMeta, ClientUIAction);
|
|
558
555
|
setMetadataFor(AnnouncedCombinationAction, 'AnnouncedCombinationAction', classMeta, ClientUIAction);
|
|
559
|
-
setMetadataFor(ErrorAction, 'ErrorAction', classMeta, ClientUIAction, [ClientUIAction, NotValidateIfGameFinishing, NotValidateIfGameFinished]);
|
|
556
|
+
setMetadataFor(ErrorAction, 'ErrorAction', classMeta, ClientUIAction, [ClientUIAction, NotValidateIfGameFinishing, NotValidateIfGameFinished, BufferedAction]);
|
|
560
557
|
setMetadataFor(ResetErrorAction, 'ResetErrorAction', objectMeta, ClientUIAction, [ClientUIAction, NotValidateIfGameFinishing, NotValidateIfGameFinished]);
|
|
561
558
|
setMetadataFor(ExpectantLifecycleAction, 'ExpectantLifecycleAction', classMeta, VOID, [Action]);
|
|
562
559
|
setMetadataFor(ExpectantCreatedClientAction, 'ExpectantCreatedClientAction', classMeta, ExpectantLifecycleAction);
|
|
@@ -642,7 +639,7 @@
|
|
|
642
639
|
middlewares = tmp_0;
|
|
643
640
|
isAutoStepCurrentPlayer = isAutoStepCurrentPlayer === VOID ? false : isAutoStepCurrentPlayer;
|
|
644
641
|
botExitsWhenNGameNumberIsFinished = botExitsWhenNGameNumberIsFinished === VOID ? null : botExitsWhenNGameNumberIsFinished;
|
|
645
|
-
return this.
|
|
642
|
+
return this.y5q(currentPlayerId, reducers, middlewares, isAutoStepCurrentPlayer, botExitsWhenNGameNumberIsFinished);
|
|
646
643
|
}
|
|
647
644
|
setMetadataFor(GameClientEngineController, 'GameClientEngineController', interfaceMeta);
|
|
648
645
|
setMetadataFor(_no_name_provided__qut3iv_68, VOID, classMeta, VOID, [Reducer]);
|
|
@@ -2797,7 +2794,7 @@
|
|
|
2797
2794
|
}
|
|
2798
2795
|
function clientBufferModule$lambda$lambda($this$singleton) {
|
|
2799
2796
|
_init_properties_DI_kt__lm8vuj();
|
|
2800
|
-
var tmp = listOf([new
|
|
2797
|
+
var tmp = listOf([new WaitWhenSceneIsActiveBufferUseCase(), new WaitUntilExpectantFinishedBufferUseCase(), new PassFirstMechanicActionBufferUseCase(), new CheckSceneBufferUseCase(), new PassTerminatedActionBufferUseCase(), new PassErrorActionBufferUseCase()]);
|
|
2801
2798
|
var tmp$ret$1;
|
|
2802
2799
|
// Inline function 'org.kodein.di.instance' call
|
|
2803
2800
|
var tmp_0 = $this$singleton.g29();
|
|
@@ -4494,18 +4491,74 @@
|
|
|
4494
4491
|
};
|
|
4495
4492
|
function Result() {
|
|
4496
4493
|
}
|
|
4497
|
-
function
|
|
4494
|
+
function CheckSceneBufferUseCase() {
|
|
4498
4495
|
}
|
|
4499
|
-
protoOf(
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4496
|
+
protoOf(CheckSceneBufferUseCase).m4n = function (state, action) {
|
|
4497
|
+
if (!state.s2q() ? !get_isCreated(state) : false) {
|
|
4498
|
+
return new InBuffer('InSceneBufferUseCase.isTableExists');
|
|
4499
|
+
}
|
|
4500
|
+
var table = state.r2q();
|
|
4501
|
+
if (!(action == null) ? isInterface(action, InSceneAction) : false) {
|
|
4502
|
+
var tmp;
|
|
4503
|
+
if (action.t41(table.sceneInfo.b3r_1)) {
|
|
4504
|
+
tmp = new OutBuffer('InSceneBufferUseCase.inScene');
|
|
4505
|
+
} else {
|
|
4506
|
+
tmp = new InBuffer('InSceneBufferUseCase.inScene');
|
|
4507
|
+
}
|
|
4508
|
+
return tmp;
|
|
4503
4509
|
}
|
|
4504
|
-
return new OutBuffer('
|
|
4510
|
+
return new OutBuffer('InSceneBufferUseCase');
|
|
4505
4511
|
};
|
|
4506
|
-
function
|
|
4512
|
+
function PassErrorActionBufferUseCase() {
|
|
4507
4513
|
}
|
|
4508
|
-
protoOf(
|
|
4514
|
+
protoOf(PassErrorActionBufferUseCase).m4n = function (state, action) {
|
|
4515
|
+
if (!state.s2q() ? !get_isCreated(state) : false) {
|
|
4516
|
+
return new InBuffer('PassErrorActionBufferUseCase.isTableExists');
|
|
4517
|
+
}
|
|
4518
|
+
if (action instanceof ErrorAction) {
|
|
4519
|
+
var reason = action.k4o_1.reason;
|
|
4520
|
+
return checkTerminatedReason(reason, get_currentPlayer(state.r2q()), 'PassErrorActionBufferUseCase.checkTerminatedReason');
|
|
4521
|
+
}
|
|
4522
|
+
return new OutBuffer('PassErrorActionBufferUseCase');
|
|
4523
|
+
};
|
|
4524
|
+
function checkTerminatedReason(reason, currentPlayer, debugLabel) {
|
|
4525
|
+
var tmp;
|
|
4526
|
+
var tmp_0;
|
|
4527
|
+
if (isInterface(reason, FinishPlayerReason)) {
|
|
4528
|
+
tmp_0 = !(reason.c2f() === currentPlayer.c2f());
|
|
4529
|
+
} else {
|
|
4530
|
+
tmp_0 = false;
|
|
4531
|
+
}
|
|
4532
|
+
if (tmp_0) {
|
|
4533
|
+
tmp = new OutBuffer(debugLabel);
|
|
4534
|
+
} else {
|
|
4535
|
+
tmp = new OutBuffer(debugLabel, true);
|
|
4536
|
+
}
|
|
4537
|
+
return tmp;
|
|
4538
|
+
}
|
|
4539
|
+
function PassFirstMechanicActionBufferUseCase() {
|
|
4540
|
+
}
|
|
4541
|
+
protoOf(PassFirstMechanicActionBufferUseCase).m4n = function (state, action) {
|
|
4542
|
+
if (!(action == null) ? isInterface(action, FirstMechanicAction) : false) {
|
|
4543
|
+
return new OutBuffer('FirstMechanicActionBufferUseCase.firstAction', true);
|
|
4544
|
+
}
|
|
4545
|
+
return new OutBuffer('FirstMechanicActionBufferUseCase');
|
|
4546
|
+
};
|
|
4547
|
+
function PassTerminatedActionBufferUseCase() {
|
|
4548
|
+
}
|
|
4549
|
+
protoOf(PassTerminatedActionBufferUseCase).m4n = function (state, action) {
|
|
4550
|
+
if (!state.s2q() ? !get_isCreated(state) : false) {
|
|
4551
|
+
return new InBuffer('PassTerminatedActionBufferUseCase.isTableExists');
|
|
4552
|
+
}
|
|
4553
|
+
if (!(action == null) ? isInterface(action, TerminatedAction) : false) {
|
|
4554
|
+
var reason = action.reason;
|
|
4555
|
+
return checkTerminatedReason(reason, get_currentPlayer(state.r2q()), 'PassTerminatedActionBufferUseCase.checkTerminatedReason');
|
|
4556
|
+
}
|
|
4557
|
+
return new OutBuffer('PassTerminatedActionBufferUseCase');
|
|
4558
|
+
};
|
|
4559
|
+
function WaitUntilExpectantFinishedBufferUseCase() {
|
|
4560
|
+
}
|
|
4561
|
+
protoOf(WaitUntilExpectantFinishedBufferUseCase).m4n = function (state, action) {
|
|
4509
4562
|
if (!state.s2q() ? !get_isCreated(state) : false) {
|
|
4510
4563
|
return new InBuffer('ExpectantFinishedBufferUseCase.isTableExists');
|
|
4511
4564
|
}
|
|
@@ -4528,7 +4581,7 @@
|
|
|
4528
4581
|
while (tmp0_iterator.g()) {
|
|
4529
4582
|
var element = tmp0_iterator.h();
|
|
4530
4583
|
var tmp$ret$1;
|
|
4531
|
-
// Inline function 'com.debertz.logic.client.domain.buffer.cases.
|
|
4584
|
+
// Inline function 'com.debertz.logic.client.domain.buffer.cases.WaitUntilExpectantFinishedBufferUseCase.check.<anonymous>' call
|
|
4532
4585
|
tmp$ret$1 = element.c4n_1;
|
|
4533
4586
|
if (!tmp$ret$1) {
|
|
4534
4587
|
tmp$ret$0 = false;
|
|
@@ -4537,66 +4590,19 @@
|
|
|
4537
4590
|
}
|
|
4538
4591
|
tmp$ret$0 = true;
|
|
4539
4592
|
}
|
|
4540
|
-
if (
|
|
4541
|
-
return new
|
|
4542
|
-
}
|
|
4543
|
-
return new OutBuffer('ExpectantFinishedBufferUseCase');
|
|
4544
|
-
};
|
|
4545
|
-
function FirstMechanicActionBufferUseCase() {
|
|
4546
|
-
}
|
|
4547
|
-
protoOf(FirstMechanicActionBufferUseCase).m4n = function (state, action) {
|
|
4548
|
-
if (!(action == null) ? isInterface(action, FirstMechanicAction) : false) {
|
|
4549
|
-
return new OutBuffer('FirstMechanicActionBufferUseCase.firstAction', true);
|
|
4550
|
-
}
|
|
4551
|
-
return new OutBuffer('FirstMechanicActionBufferUseCase');
|
|
4552
|
-
};
|
|
4553
|
-
function InSceneBufferUseCase() {
|
|
4554
|
-
}
|
|
4555
|
-
protoOf(InSceneBufferUseCase).m4n = function (state, action) {
|
|
4556
|
-
if (!state.s2q() ? !get_isCreated(state) : false) {
|
|
4557
|
-
return new InBuffer('InSceneBufferUseCase.isTableExists');
|
|
4558
|
-
}
|
|
4559
|
-
var table = state.r2q();
|
|
4560
|
-
if (!(action == null) ? isInterface(action, InSceneAction) : false) {
|
|
4561
|
-
var tmp;
|
|
4562
|
-
if (action.t41(table.sceneInfo.b3r_1)) {
|
|
4563
|
-
tmp = new OutBuffer('InSceneBufferUseCase.inScene');
|
|
4564
|
-
} else {
|
|
4565
|
-
tmp = new InBuffer('InSceneBufferUseCase.inScene');
|
|
4566
|
-
}
|
|
4567
|
-
return tmp;
|
|
4593
|
+
if (tmp$ret$0) {
|
|
4594
|
+
return new OutBuffer('ExpectantFinishedBufferUseCase');
|
|
4568
4595
|
}
|
|
4569
|
-
return new
|
|
4596
|
+
return new InBuffer('ExpectantFinishedBufferUseCase.expectants');
|
|
4570
4597
|
};
|
|
4571
|
-
function
|
|
4598
|
+
function WaitWhenSceneIsActiveBufferUseCase() {
|
|
4572
4599
|
}
|
|
4573
|
-
protoOf(
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4577
|
-
if (!(action == null) ? isInterface(action, TerminatedAction) : false) {
|
|
4578
|
-
var reason = action.reason;
|
|
4579
|
-
var tmp;
|
|
4580
|
-
var tmp_0;
|
|
4581
|
-
if (reason instanceof GameFinishedReason) {
|
|
4582
|
-
tmp_0 = true;
|
|
4583
|
-
} else {
|
|
4584
|
-
var tmp_1;
|
|
4585
|
-
if (isInterface(reason, FinishPlayerReason)) {
|
|
4586
|
-
tmp_1 = !(reason.c2f() === get_currentPlayer(state.r2q()).c2f());
|
|
4587
|
-
} else {
|
|
4588
|
-
tmp_1 = false;
|
|
4589
|
-
}
|
|
4590
|
-
tmp_0 = tmp_1;
|
|
4591
|
-
}
|
|
4592
|
-
if (tmp_0) {
|
|
4593
|
-
tmp = new OutBuffer('TerminatedActionBufferUseCase.terminatedAction');
|
|
4594
|
-
} else {
|
|
4595
|
-
tmp = new OutBuffer('TerminatedActionBufferUseCase.terminatedAction', true);
|
|
4596
|
-
}
|
|
4597
|
-
return tmp;
|
|
4600
|
+
protoOf(WaitWhenSceneIsActiveBufferUseCase).m4n = function (state, action) {
|
|
4601
|
+
var clientState = get_clientState_0(state);
|
|
4602
|
+
if (clientState.a4o_1) {
|
|
4603
|
+
return new OutBuffer('ActiveSceneBufferUseCase');
|
|
4598
4604
|
}
|
|
4599
|
-
return new
|
|
4605
|
+
return new InBuffer('ActiveSceneBufferUseCase.isSceneActive');
|
|
4600
4606
|
};
|
|
4601
4607
|
function ClientStatisticsInteractor() {
|
|
4602
4608
|
}
|
|
@@ -9245,13 +9251,13 @@
|
|
|
9245
9251
|
}
|
|
9246
9252
|
function ErrorAction(error) {
|
|
9247
9253
|
ClientUIAction.call(this);
|
|
9248
|
-
this.
|
|
9254
|
+
this.k4o_1 = error;
|
|
9249
9255
|
}
|
|
9250
9256
|
protoOf(ErrorAction).toString = function () {
|
|
9251
|
-
return 'ErrorAction(error=' + this.
|
|
9257
|
+
return 'ErrorAction(error=' + this.k4o_1 + ')';
|
|
9252
9258
|
};
|
|
9253
9259
|
protoOf(ErrorAction).hashCode = function () {
|
|
9254
|
-
return this.
|
|
9260
|
+
return this.k4o_1.hashCode();
|
|
9255
9261
|
};
|
|
9256
9262
|
protoOf(ErrorAction).equals = function (other) {
|
|
9257
9263
|
if (this === other)
|
|
@@ -9259,7 +9265,7 @@
|
|
|
9259
9265
|
if (!(other instanceof ErrorAction))
|
|
9260
9266
|
return false;
|
|
9261
9267
|
var tmp0_other_with_cast = other instanceof ErrorAction ? other : THROW_CCE();
|
|
9262
|
-
if (!this.
|
|
9268
|
+
if (!this.k4o_1.equals(tmp0_other_with_cast.k4o_1))
|
|
9263
9269
|
return false;
|
|
9264
9270
|
return true;
|
|
9265
9271
|
};
|
|
@@ -9289,13 +9295,13 @@
|
|
|
9289
9295
|
});
|
|
9290
9296
|
function ExpectantCreatedClientAction(expectant) {
|
|
9291
9297
|
ExpectantLifecycleAction.call(this);
|
|
9292
|
-
this.
|
|
9298
|
+
this.d5i_1 = expectant;
|
|
9293
9299
|
}
|
|
9294
9300
|
protoOf(ExpectantCreatedClientAction).toString = function () {
|
|
9295
|
-
return 'ExpectantCreatedClientAction(id: ' + this.
|
|
9301
|
+
return 'ExpectantCreatedClientAction(id: ' + this.d5i_1.a4n_1 + ', expectant=' + parseActionName(this.d5i_1.b4n_1) + ')';
|
|
9296
9302
|
};
|
|
9297
9303
|
protoOf(ExpectantCreatedClientAction).hashCode = function () {
|
|
9298
|
-
return this.
|
|
9304
|
+
return this.d5i_1.hashCode();
|
|
9299
9305
|
};
|
|
9300
9306
|
protoOf(ExpectantCreatedClientAction).equals = function (other) {
|
|
9301
9307
|
if (this === other)
|
|
@@ -9303,7 +9309,7 @@
|
|
|
9303
9309
|
if (!(other instanceof ExpectantCreatedClientAction))
|
|
9304
9310
|
return false;
|
|
9305
9311
|
var tmp0_other_with_cast = other instanceof ExpectantCreatedClientAction ? other : THROW_CCE();
|
|
9306
|
-
if (!this.
|
|
9312
|
+
if (!this.d5i_1.equals(tmp0_other_with_cast.d5i_1))
|
|
9307
9313
|
return false;
|
|
9308
9314
|
return true;
|
|
9309
9315
|
};
|
|
@@ -9316,83 +9322,83 @@
|
|
|
9316
9322
|
var tmp$ret$0;
|
|
9317
9323
|
// Inline function 'kotlin.getValue' call
|
|
9318
9324
|
var tmp0_getValue = messageFactory$factory_0();
|
|
9319
|
-
tmp$ret$0 = $this.
|
|
9325
|
+
tmp$ret$0 = $this.g5i_1.j1();
|
|
9320
9326
|
return tmp$ret$0;
|
|
9321
9327
|
}
|
|
9322
9328
|
function _get_pointsInteractor__5t71wv($this) {
|
|
9323
9329
|
var tmp$ret$0;
|
|
9324
9330
|
// Inline function 'kotlin.getValue' call
|
|
9325
9331
|
var tmp0_getValue = pointsInteractor$factory_0();
|
|
9326
|
-
tmp$ret$0 = $this.
|
|
9332
|
+
tmp$ret$0 = $this.h5i_1.j1();
|
|
9327
9333
|
return tmp$ret$0;
|
|
9328
9334
|
}
|
|
9329
9335
|
function _get_combinationCheckerProvider__vrxymk($this) {
|
|
9330
9336
|
var tmp$ret$0;
|
|
9331
9337
|
// Inline function 'kotlin.getValue' call
|
|
9332
9338
|
var tmp0_getValue = combinationCheckerProvider$factory_0();
|
|
9333
|
-
tmp$ret$0 = $this.
|
|
9339
|
+
tmp$ret$0 = $this.i5i_1.j1();
|
|
9334
9340
|
return tmp$ret$0;
|
|
9335
9341
|
}
|
|
9336
9342
|
function _get_lastCardInteractor__h6lq3w($this) {
|
|
9337
9343
|
var tmp$ret$0;
|
|
9338
9344
|
// Inline function 'kotlin.getValue' call
|
|
9339
9345
|
var tmp0_getValue = lastCardInteractor$factory_0();
|
|
9340
|
-
tmp$ret$0 = $this.
|
|
9346
|
+
tmp$ret$0 = $this.j5i_1.j1();
|
|
9341
9347
|
return tmp$ret$0;
|
|
9342
9348
|
}
|
|
9343
9349
|
function _get_cardValidatorInteractor__u3zq3u($this) {
|
|
9344
9350
|
var tmp$ret$0;
|
|
9345
9351
|
// Inline function 'kotlin.getValue' call
|
|
9346
9352
|
var tmp0_getValue = cardValidatorInteractor$factory_0();
|
|
9347
|
-
tmp$ret$0 = $this.
|
|
9353
|
+
tmp$ret$0 = $this.k5i_1.j1();
|
|
9348
9354
|
return tmp$ret$0;
|
|
9349
9355
|
}
|
|
9350
9356
|
function _get_clientLifecycleReducer__6ihp6m($this) {
|
|
9351
9357
|
var tmp$ret$0;
|
|
9352
9358
|
// Inline function 'kotlin.getValue' call
|
|
9353
9359
|
var tmp0_getValue = clientLifecycleReducer$factory_0();
|
|
9354
|
-
tmp$ret$0 = $this.
|
|
9360
|
+
tmp$ret$0 = $this.l5i_1.j1();
|
|
9355
9361
|
return tmp$ret$0;
|
|
9356
9362
|
}
|
|
9357
9363
|
function _get_clientCombinationsReducer__u5899o($this) {
|
|
9358
9364
|
var tmp$ret$0;
|
|
9359
9365
|
// Inline function 'kotlin.getValue' call
|
|
9360
9366
|
var tmp0_getValue = clientCombinationsReducer$factory_0();
|
|
9361
|
-
tmp$ret$0 = $this.
|
|
9367
|
+
tmp$ret$0 = $this.m5i_1.j1();
|
|
9362
9368
|
return tmp$ret$0;
|
|
9363
9369
|
}
|
|
9364
9370
|
function _get_asyncProvider__jbpyhw($this) {
|
|
9365
9371
|
var tmp$ret$0;
|
|
9366
9372
|
// Inline function 'kotlin.getValue' call
|
|
9367
9373
|
var tmp0_getValue = asyncProvider$factory_0();
|
|
9368
|
-
tmp$ret$0 = $this.
|
|
9374
|
+
tmp$ret$0 = $this.n5i_1.j1();
|
|
9369
9375
|
return tmp$ret$0;
|
|
9370
9376
|
}
|
|
9371
9377
|
function _get_botConfig__cpaxzc($this) {
|
|
9372
9378
|
var tmp$ret$0;
|
|
9373
9379
|
// Inline function 'kotlin.getValue' call
|
|
9374
9380
|
var tmp0_getValue = botConfig$factory_0();
|
|
9375
|
-
tmp$ret$0 = $this.
|
|
9381
|
+
tmp$ret$0 = $this.o5i_1.j1();
|
|
9376
9382
|
return tmp$ret$0;
|
|
9377
9383
|
}
|
|
9378
9384
|
function _get_clientReduxConfig__v0cgfa_0($this) {
|
|
9379
9385
|
var tmp$ret$0;
|
|
9380
9386
|
// Inline function 'kotlin.getValue' call
|
|
9381
9387
|
var tmp0_getValue = clientReduxConfig$factory_2();
|
|
9382
|
-
tmp$ret$0 = $this.
|
|
9388
|
+
tmp$ret$0 = $this.p5i_1.j1();
|
|
9383
9389
|
return tmp$ret$0;
|
|
9384
9390
|
}
|
|
9385
9391
|
function _get_logger__rkp4sl($this) {
|
|
9386
9392
|
var tmp$ret$0;
|
|
9387
9393
|
// Inline function 'kotlin.getValue' call
|
|
9388
9394
|
var tmp0_getValue = logger$factory_0();
|
|
9389
|
-
tmp$ret$0 = $this.
|
|
9395
|
+
tmp$ret$0 = $this.q5i_1.j1();
|
|
9390
9396
|
return tmp$ret$0;
|
|
9391
9397
|
}
|
|
9392
9398
|
function ClientGameStoreContract(di, currentPlayerId, commonStoreContract) {
|
|
9393
9399
|
commonStoreContract = commonStoreContract === VOID ? new CommonStoreContract(di) : commonStoreContract;
|
|
9394
|
-
this.
|
|
9395
|
-
this.
|
|
9400
|
+
this.e5i_1 = currentPlayerId;
|
|
9401
|
+
this.f5i_1 = commonStoreContract;
|
|
9396
9402
|
var tmp = this;
|
|
9397
9403
|
var tmp$ret$1;
|
|
9398
9404
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9401,7 +9407,7 @@
|
|
|
9401
9407
|
var tmp_0 = typeToken(createKType(getKClass(MessageFactory), arrayOf([]), false));
|
|
9402
9408
|
tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
9403
9409
|
tmp$ret$1 = Instance(di, tmp$ret$0, null);
|
|
9404
|
-
tmp.
|
|
9410
|
+
tmp.g5i_1 = tmp$ret$1.o2d(this, messageFactory$factory());
|
|
9405
9411
|
var tmp_1 = this;
|
|
9406
9412
|
var tmp$ret$3;
|
|
9407
9413
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9410,7 +9416,7 @@
|
|
|
9410
9416
|
var tmp_2 = typeToken(createKType(getKClass(PointsInteractor), arrayOf([]), false));
|
|
9411
9417
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
9412
9418
|
tmp$ret$3 = Instance(di, tmp$ret$2, null);
|
|
9413
|
-
tmp_1.
|
|
9419
|
+
tmp_1.h5i_1 = tmp$ret$3.o2d(this, pointsInteractor$factory());
|
|
9414
9420
|
var tmp_3 = this;
|
|
9415
9421
|
var tmp$ret$5;
|
|
9416
9422
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9419,7 +9425,7 @@
|
|
|
9419
9425
|
var tmp_4 = typeToken(createKType(getKClass(CombinationCheckerProvider), arrayOf([]), false));
|
|
9420
9426
|
tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
9421
9427
|
tmp$ret$5 = Instance(di, tmp$ret$4, null);
|
|
9422
|
-
tmp_3.
|
|
9428
|
+
tmp_3.i5i_1 = tmp$ret$5.o2d(this, combinationCheckerProvider$factory());
|
|
9423
9429
|
var tmp_5 = this;
|
|
9424
9430
|
var tmp$ret$7;
|
|
9425
9431
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9428,7 +9434,7 @@
|
|
|
9428
9434
|
var tmp_6 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
9429
9435
|
tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
9430
9436
|
tmp$ret$7 = Instance(di, tmp$ret$6, null);
|
|
9431
|
-
tmp_5.
|
|
9437
|
+
tmp_5.j5i_1 = tmp$ret$7.o2d(this, lastCardInteractor$factory());
|
|
9432
9438
|
var tmp_7 = this;
|
|
9433
9439
|
var tmp$ret$9;
|
|
9434
9440
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9437,7 +9443,7 @@
|
|
|
9437
9443
|
var tmp_8 = typeToken(createKType(getKClass(PutCardValidatorInteractor), arrayOf([]), false));
|
|
9438
9444
|
tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
9439
9445
|
tmp$ret$9 = Instance(di, tmp$ret$8, null);
|
|
9440
|
-
tmp_7.
|
|
9446
|
+
tmp_7.k5i_1 = tmp$ret$9.o2d(this, cardValidatorInteractor$factory());
|
|
9441
9447
|
var tmp_9 = this;
|
|
9442
9448
|
var tmp$ret$11;
|
|
9443
9449
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9446,7 +9452,7 @@
|
|
|
9446
9452
|
var tmp_10 = typeToken(createKType(getKClass(ClientLifecycleReducer), arrayOf([]), false));
|
|
9447
9453
|
tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
9448
9454
|
tmp$ret$11 = Instance(di, tmp$ret$10, null);
|
|
9449
|
-
tmp_9.
|
|
9455
|
+
tmp_9.l5i_1 = tmp$ret$11.o2d(this, clientLifecycleReducer$factory());
|
|
9450
9456
|
var tmp_11 = this;
|
|
9451
9457
|
var tmp$ret$13;
|
|
9452
9458
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9455,7 +9461,7 @@
|
|
|
9455
9461
|
var tmp_12 = typeToken(createKType(getKClass(ClientCombinationsReducer), arrayOf([]), false));
|
|
9456
9462
|
tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
9457
9463
|
tmp$ret$13 = Instance(di, tmp$ret$12, null);
|
|
9458
|
-
tmp_11.
|
|
9464
|
+
tmp_11.m5i_1 = tmp$ret$13.o2d(this, clientCombinationsReducer$factory());
|
|
9459
9465
|
var tmp_13 = this;
|
|
9460
9466
|
var tmp$ret$15;
|
|
9461
9467
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9464,7 +9470,7 @@
|
|
|
9464
9470
|
var tmp_14 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
9465
9471
|
tmp$ret$14 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
9466
9472
|
tmp$ret$15 = Instance(di, tmp$ret$14, null);
|
|
9467
|
-
tmp_13.
|
|
9473
|
+
tmp_13.n5i_1 = tmp$ret$15.o2d(this, asyncProvider$factory());
|
|
9468
9474
|
var tmp_15 = this;
|
|
9469
9475
|
var tmp$ret$17;
|
|
9470
9476
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9473,7 +9479,7 @@
|
|
|
9473
9479
|
var tmp_16 = typeToken(createKType(getKClass(BotReduxConfig), arrayOf([]), false));
|
|
9474
9480
|
tmp$ret$16 = isInterface(tmp_16, TypeToken) ? tmp_16 : THROW_CCE();
|
|
9475
9481
|
tmp$ret$17 = Instance(di, tmp$ret$16, null);
|
|
9476
|
-
tmp_15.
|
|
9482
|
+
tmp_15.o5i_1 = tmp$ret$17.o2d(this, botConfig$factory());
|
|
9477
9483
|
var tmp_17 = this;
|
|
9478
9484
|
var tmp$ret$19;
|
|
9479
9485
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9482,7 +9488,7 @@
|
|
|
9482
9488
|
var tmp_18 = typeToken(createKType(getKClass(ClientReduxConfig), arrayOf([]), false));
|
|
9483
9489
|
tmp$ret$18 = isInterface(tmp_18, TypeToken) ? tmp_18 : THROW_CCE();
|
|
9484
9490
|
tmp$ret$19 = Instance(di, tmp$ret$18, null);
|
|
9485
|
-
tmp_17.
|
|
9491
|
+
tmp_17.p5i_1 = tmp$ret$19.o2d(this, clientReduxConfig$factory_1());
|
|
9486
9492
|
var tmp_19 = this;
|
|
9487
9493
|
var tmp$ret$21;
|
|
9488
9494
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9491,13 +9497,13 @@
|
|
|
9491
9497
|
var tmp_20 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
9492
9498
|
tmp$ret$20 = isInterface(tmp_20, TypeToken) ? tmp_20 : THROW_CCE();
|
|
9493
9499
|
tmp$ret$21 = Instance(di, tmp$ret$20, null);
|
|
9494
|
-
tmp_19.
|
|
9500
|
+
tmp_19.q5i_1 = tmp$ret$21.o2d(this, logger$factory());
|
|
9495
9501
|
}
|
|
9496
9502
|
protoOf(ClientGameStoreContract).w42 = function () {
|
|
9497
|
-
return plus(listOfNotNull([_get_clientReduxConfig__v0cgfa_0(this).j4k_1 ? expectantLifecycleReducer() : null, _get_clientReduxConfig__v0cgfa_0(this).j4k_1 ? expectantActionReducer() : null, bufferReducer(), messageReducer(), _get_clientReduxConfig__v0cgfa_0(this).h4k_1 ? sceneActivationReducer() : null, clientResetMessagesAfterSelectedTrumpReducer(_get_logger__rkp4sl(this)), clientResetMessagesAfterBribeReducer(_get_logger__rkp4sl(this)), clientUIReducer(this.
|
|
9503
|
+
return plus(listOfNotNull([_get_clientReduxConfig__v0cgfa_0(this).j4k_1 ? expectantLifecycleReducer() : null, _get_clientReduxConfig__v0cgfa_0(this).j4k_1 ? expectantActionReducer() : null, bufferReducer(), messageReducer(), _get_clientReduxConfig__v0cgfa_0(this).h4k_1 ? sceneActivationReducer() : null, clientResetMessagesAfterSelectedTrumpReducer(_get_logger__rkp4sl(this)), clientResetMessagesAfterBribeReducer(_get_logger__rkp4sl(this)), clientUIReducer(this.e5i_1, _get_clientLifecycleReducer__6ihp6m(this), _get_logger__rkp4sl(this)), clientResetProcessingCardReducer(), clientSceneReducer(_get_logger__rkp4sl(this), _get_clientLifecycleReducer__6ihp6m(this)), clientCombinationToAnnounceStateOnPlayerTurnReducer(_get_clientCombinationsReducer__u5899o(this))]), this.f5i_1.w42());
|
|
9498
9504
|
};
|
|
9499
9505
|
protoOf(ClientGameStoreContract).x42 = function () {
|
|
9500
|
-
return plus(listOfNotNull([checkValidCurrentPlayerIdMiddleware(this.
|
|
9506
|
+
return plus(listOfNotNull([checkValidCurrentPlayerIdMiddleware(this.e5i_1, _get_logger__rkp4sl(this)), checkExpectantsMiddleware(_get_logger__rkp4sl(this)), _get_clientReduxConfig__v0cgfa_0(this).i4k_1 ? validateCardOnMoveMiddleware(_get_cardValidatorInteractor__u3zq3u(this), _get_messageFactory__6vg0vc(this), _get_logger__rkp4sl(this)) : null, clientShowDisabledCardMessageMiddleware(_get_cardValidatorInteractor__u3zq3u(this), _get_messageFactory__6vg0vc(this), _get_logger__rkp4sl(this)), clientCheckCombinationsMiddleware(_get_asyncProvider__jbpyhw(this), _get_combinationCheckerProvider__vrxymk(this)), finishingGameWhenPlayerExitsMiddleware(), startResetTimerForInfoMessageMiddleware(), clearTimersWhenErrorMiddleware(), resetInfoMessageWhenShownMiddleware(), gameStatisticsMiddleware(), messagesMiddleware(_get_messageFactory__6vg0vc(this), _get_pointsInteractor__5t71wv(this)), _get_botConfig__cpaxzc(this).autoStepLastCard ? clientPutCurrentPlayerLastCardMiddleware(this.e5i_1, _get_asyncProvider__jbpyhw(this), _get_lastCardInteractor__h6lq3w(this)) : null]), this.f5i_1.x42());
|
|
9501
9507
|
};
|
|
9502
9508
|
function messageFactory$factory() {
|
|
9503
9509
|
return getPropertyCallableRef('messageFactory', 1, KProperty1, function (receiver) {
|
|
@@ -9613,62 +9619,62 @@
|
|
|
9613
9619
|
var tmp$ret$0;
|
|
9614
9620
|
// Inline function 'kotlin.getValue' call
|
|
9615
9621
|
var tmp0_getValue = gameLogicInteractor$factory_0();
|
|
9616
|
-
tmp$ret$0 = $this.
|
|
9622
|
+
tmp$ret$0 = $this.u5i_1.j1();
|
|
9617
9623
|
return tmp$ret$0;
|
|
9618
9624
|
}
|
|
9619
9625
|
function _get_clientLifecycleReducer__6ihp6m_0($this) {
|
|
9620
9626
|
var tmp$ret$0;
|
|
9621
9627
|
// Inline function 'kotlin.getValue' call
|
|
9622
9628
|
var tmp0_getValue = clientLifecycleReducer$factory_2();
|
|
9623
|
-
tmp$ret$0 = $this.
|
|
9629
|
+
tmp$ret$0 = $this.v5i_1.j1();
|
|
9624
9630
|
return tmp$ret$0;
|
|
9625
9631
|
}
|
|
9626
9632
|
function _get_logicConfig__52ww9d($this) {
|
|
9627
9633
|
var tmp$ret$0;
|
|
9628
9634
|
// Inline function 'kotlin.getValue' call
|
|
9629
9635
|
var tmp0_getValue = logicConfig$factory_0();
|
|
9630
|
-
tmp$ret$0 = $this.
|
|
9636
|
+
tmp$ret$0 = $this.w5i_1.j1();
|
|
9631
9637
|
return tmp$ret$0;
|
|
9632
9638
|
}
|
|
9633
9639
|
function _get_clientReduxConfig__v0cgfa_1($this) {
|
|
9634
9640
|
var tmp$ret$0;
|
|
9635
9641
|
// Inline function 'kotlin.getValue' call
|
|
9636
9642
|
var tmp0_getValue = clientReduxConfig$factory_4();
|
|
9637
|
-
tmp$ret$0 = $this.
|
|
9643
|
+
tmp$ret$0 = $this.x5i_1.j1();
|
|
9638
9644
|
return tmp$ret$0;
|
|
9639
9645
|
}
|
|
9640
9646
|
function _get_logger__rkp4sl_0($this) {
|
|
9641
9647
|
var tmp$ret$0;
|
|
9642
9648
|
// Inline function 'kotlin.getValue' call
|
|
9643
9649
|
var tmp0_getValue = logger$factory_2();
|
|
9644
|
-
tmp$ret$0 = $this.
|
|
9650
|
+
tmp$ret$0 = $this.y5i_1.j1();
|
|
9645
9651
|
return tmp$ret$0;
|
|
9646
9652
|
}
|
|
9647
9653
|
function _get_playerTurnInteractor__lczh1o($this) {
|
|
9648
9654
|
var tmp$ret$0;
|
|
9649
9655
|
// Inline function 'kotlin.getValue' call
|
|
9650
9656
|
var tmp0_getValue = playerTurnInteractor$factory_0();
|
|
9651
|
-
tmp$ret$0 = $this.
|
|
9657
|
+
tmp$ret$0 = $this.z5i_1.j1();
|
|
9652
9658
|
return tmp$ret$0;
|
|
9653
9659
|
}
|
|
9654
9660
|
function _get_playerTurnMechanicReducer__y10a87($this) {
|
|
9655
9661
|
var tmp$ret$0;
|
|
9656
9662
|
// Inline function 'kotlin.getValue' call
|
|
9657
9663
|
var tmp0_getValue = playerTurnMechanicReducer$factory_0();
|
|
9658
|
-
tmp$ret$0 = $this.
|
|
9664
|
+
tmp$ret$0 = $this.a5j_1.j1();
|
|
9659
9665
|
return tmp$ret$0;
|
|
9660
9666
|
}
|
|
9661
9667
|
function OnlineGameStoreContract$_get_middlewares_$lambda_9o1az3(this$0) {
|
|
9662
9668
|
return function (it) {
|
|
9663
|
-
return it === this$0.
|
|
9669
|
+
return it === this$0.r5i_1;
|
|
9664
9670
|
};
|
|
9665
9671
|
}
|
|
9666
9672
|
function OnlineGameStoreContract(di, currentPlayerId, clientGameStoreContract, botGameStoreContract) {
|
|
9667
9673
|
clientGameStoreContract = clientGameStoreContract === VOID ? new ClientGameStoreContract(di, currentPlayerId) : clientGameStoreContract;
|
|
9668
9674
|
botGameStoreContract = botGameStoreContract === VOID ? new BotGameStoreContract(di, listOf_0(currentPlayerId)) : botGameStoreContract;
|
|
9669
|
-
this.
|
|
9670
|
-
this.
|
|
9671
|
-
this.
|
|
9675
|
+
this.r5i_1 = currentPlayerId;
|
|
9676
|
+
this.s5i_1 = clientGameStoreContract;
|
|
9677
|
+
this.t5i_1 = botGameStoreContract;
|
|
9672
9678
|
var tmp = this;
|
|
9673
9679
|
var tmp$ret$1;
|
|
9674
9680
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9677,7 +9683,7 @@
|
|
|
9677
9683
|
var tmp_0 = typeToken(createKType(getKClass(GameMechanicLogicInteractor), arrayOf([]), false));
|
|
9678
9684
|
tmp$ret$0 = isInterface(tmp_0, TypeToken) ? tmp_0 : THROW_CCE();
|
|
9679
9685
|
tmp$ret$1 = Instance(di, tmp$ret$0, null);
|
|
9680
|
-
tmp.
|
|
9686
|
+
tmp.u5i_1 = tmp$ret$1.o2d(this, gameLogicInteractor$factory());
|
|
9681
9687
|
var tmp_1 = this;
|
|
9682
9688
|
var tmp$ret$3;
|
|
9683
9689
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9686,7 +9692,7 @@
|
|
|
9686
9692
|
var tmp_2 = typeToken(createKType(getKClass(ClientLifecycleReducer), arrayOf([]), false));
|
|
9687
9693
|
tmp$ret$2 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
9688
9694
|
tmp$ret$3 = Instance(di, tmp$ret$2, null);
|
|
9689
|
-
tmp_1.
|
|
9695
|
+
tmp_1.v5i_1 = tmp$ret$3.o2d(this, clientLifecycleReducer$factory_1());
|
|
9690
9696
|
var tmp_3 = this;
|
|
9691
9697
|
var tmp$ret$5;
|
|
9692
9698
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9695,7 +9701,7 @@
|
|
|
9695
9701
|
var tmp_4 = typeToken(createKType(getKClass(LogicReduxConfig), arrayOf([]), false));
|
|
9696
9702
|
tmp$ret$4 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
9697
9703
|
tmp$ret$5 = Instance(di, tmp$ret$4, null);
|
|
9698
|
-
tmp_3.
|
|
9704
|
+
tmp_3.w5i_1 = tmp$ret$5.o2d(this, logicConfig$factory());
|
|
9699
9705
|
var tmp_5 = this;
|
|
9700
9706
|
var tmp$ret$7;
|
|
9701
9707
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9704,7 +9710,7 @@
|
|
|
9704
9710
|
var tmp_6 = typeToken(createKType(getKClass(ClientReduxConfig), arrayOf([]), false));
|
|
9705
9711
|
tmp$ret$6 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
9706
9712
|
tmp$ret$7 = Instance(di, tmp$ret$6, null);
|
|
9707
|
-
tmp_5.
|
|
9713
|
+
tmp_5.x5i_1 = tmp$ret$7.o2d(this, clientReduxConfig$factory_3());
|
|
9708
9714
|
var tmp_7 = this;
|
|
9709
9715
|
var tmp$ret$9;
|
|
9710
9716
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9713,7 +9719,7 @@
|
|
|
9713
9719
|
var tmp_8 = typeToken(createKType(getKClass(GameLogger), arrayOf([]), false));
|
|
9714
9720
|
tmp$ret$8 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
9715
9721
|
tmp$ret$9 = Instance(di, tmp$ret$8, null);
|
|
9716
|
-
tmp_7.
|
|
9722
|
+
tmp_7.y5i_1 = tmp$ret$9.o2d(this, logger$factory_1());
|
|
9717
9723
|
var tmp_9 = this;
|
|
9718
9724
|
var tmp$ret$11;
|
|
9719
9725
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9722,7 +9728,7 @@
|
|
|
9722
9728
|
var tmp_10 = typeToken(createKType(getKClass(PlayerTurnInteractor), arrayOf([]), false));
|
|
9723
9729
|
tmp$ret$10 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
9724
9730
|
tmp$ret$11 = Instance(di, tmp$ret$10, null);
|
|
9725
|
-
tmp_9.
|
|
9731
|
+
tmp_9.z5i_1 = tmp$ret$11.o2d(this, playerTurnInteractor$factory());
|
|
9726
9732
|
var tmp_11 = this;
|
|
9727
9733
|
var tmp$ret$13;
|
|
9728
9734
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9731,13 +9737,13 @@
|
|
|
9731
9737
|
var tmp_12 = typeToken(createKType(getKClass(PlayerTurnMechanicReducer), arrayOf([]), false));
|
|
9732
9738
|
tmp$ret$12 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
9733
9739
|
tmp$ret$13 = Instance(di, tmp$ret$12, null);
|
|
9734
|
-
tmp_11.
|
|
9740
|
+
tmp_11.a5j_1 = tmp$ret$13.o2d(this, playerTurnMechanicReducer$factory());
|
|
9735
9741
|
}
|
|
9736
9742
|
protoOf(OnlineGameStoreContract).w42 = function () {
|
|
9737
|
-
var tmp = plus(this.
|
|
9743
|
+
var tmp = plus(this.s5i_1.w42(), listOfNotNull_0(clientErrorStateWhenTerminationActionReducer(_get_clientLifecycleReducer__6ihp6m_0(this))));
|
|
9738
9744
|
var tmp_0;
|
|
9739
9745
|
if (_get_clientReduxConfig__v0cgfa_1(this).k4k_1) {
|
|
9740
|
-
tmp_0 = this.
|
|
9746
|
+
tmp_0 = this.t5i_1.w42();
|
|
9741
9747
|
} else {
|
|
9742
9748
|
tmp_0 = emptyList();
|
|
9743
9749
|
}
|
|
@@ -9751,10 +9757,10 @@
|
|
|
9751
9757
|
return plus(tmp_1, tmp_2);
|
|
9752
9758
|
};
|
|
9753
9759
|
protoOf(OnlineGameStoreContract).x42 = function () {
|
|
9754
|
-
var tmp = this.
|
|
9760
|
+
var tmp = this.s5i_1.x42();
|
|
9755
9761
|
var tmp_0;
|
|
9756
9762
|
if (_get_clientReduxConfig__v0cgfa_1(this).k4k_1) {
|
|
9757
|
-
var tmp_1 = this.
|
|
9763
|
+
var tmp_1 = this.t5i_1.x42();
|
|
9758
9764
|
var tmp_2 = whenPlayerTurnTimeoutAskBotMiddleware();
|
|
9759
9765
|
tmp_0 = plus(tmp_1, listOf([tmp_2, reloadTimersWhenContinueGameMiddleware(true, VOID, OnlineGameStoreContract$_get_middlewares_$lambda_9o1az3(this))]));
|
|
9760
9766
|
} else {
|
|
@@ -9836,47 +9842,47 @@
|
|
|
9836
9842
|
var tmp$ret$0;
|
|
9837
9843
|
// Inline function 'kotlin.getValue' call
|
|
9838
9844
|
var tmp0_getValue = clientStatisticsInteractor$factory_0();
|
|
9839
|
-
tmp$ret$0 = $this.
|
|
9845
|
+
tmp$ret$0 = $this.f5j_1.j1();
|
|
9840
9846
|
return tmp$ret$0;
|
|
9841
9847
|
}
|
|
9842
9848
|
function _get_asyncProvider__jbpyhw_0($this) {
|
|
9843
9849
|
var tmp$ret$0;
|
|
9844
9850
|
// Inline function 'kotlin.getValue' call
|
|
9845
9851
|
var tmp0_getValue = asyncProvider$factory_2();
|
|
9846
|
-
tmp$ret$0 = $this.
|
|
9852
|
+
tmp$ret$0 = $this.g5j_1.j1();
|
|
9847
9853
|
return tmp$ret$0;
|
|
9848
9854
|
}
|
|
9849
9855
|
function _get_persistentAppStateInteractor__5jt7l7($this) {
|
|
9850
9856
|
var tmp$ret$0;
|
|
9851
9857
|
// Inline function 'kotlin.getValue' call
|
|
9852
9858
|
var tmp0_getValue = persistentAppStateInteractor$factory_0();
|
|
9853
|
-
tmp$ret$0 = $this.
|
|
9859
|
+
tmp$ret$0 = $this.h5j_1.j1();
|
|
9854
9860
|
return tmp$ret$0;
|
|
9855
9861
|
}
|
|
9856
9862
|
function _get_clientReduxConfig__v0cgfa_2($this) {
|
|
9857
9863
|
var tmp$ret$0;
|
|
9858
9864
|
// Inline function 'kotlin.getValue' call
|
|
9859
9865
|
var tmp0_getValue = clientReduxConfig$factory_6();
|
|
9860
|
-
tmp$ret$0 = $this.
|
|
9866
|
+
tmp$ret$0 = $this.i5j_1.j1();
|
|
9861
9867
|
return tmp$ret$0;
|
|
9862
9868
|
}
|
|
9863
9869
|
function _get_botConfig__cpaxzc_0($this) {
|
|
9864
9870
|
var tmp$ret$0;
|
|
9865
9871
|
// Inline function 'kotlin.getValue' call
|
|
9866
9872
|
var tmp0_getValue = botConfig$factory_2();
|
|
9867
|
-
tmp$ret$0 = $this.
|
|
9873
|
+
tmp$ret$0 = $this.j5j_1.j1();
|
|
9868
9874
|
return tmp$ret$0;
|
|
9869
9875
|
}
|
|
9870
9876
|
function _get_lastCardInteractor__h6lq3w_0($this) {
|
|
9871
9877
|
var tmp$ret$0;
|
|
9872
9878
|
// Inline function 'kotlin.getValue' call
|
|
9873
9879
|
var tmp0_getValue = lastCardInteractor$factory_2();
|
|
9874
|
-
tmp$ret$0 = $this.
|
|
9880
|
+
tmp$ret$0 = $this.k5j_1.j1();
|
|
9875
9881
|
return tmp$ret$0;
|
|
9876
9882
|
}
|
|
9877
9883
|
function SingleGameStoreContract$_get_middlewares_$lambda_dj4vza(this$0) {
|
|
9878
9884
|
return function (it) {
|
|
9879
|
-
return !(it === this$0.
|
|
9885
|
+
return !(it === this$0.b5j_1) ? true : _get_clientReduxConfig__v0cgfa_2(this$0).k4k_1;
|
|
9880
9886
|
};
|
|
9881
9887
|
}
|
|
9882
9888
|
function SingleGameStoreContract(di, currentPlayerId, clientGameStoreContract, gameMechanicStoreContract, botGameStoreContract) {
|
|
@@ -9908,10 +9914,10 @@
|
|
|
9908
9914
|
tmp = botGameStoreContract;
|
|
9909
9915
|
}
|
|
9910
9916
|
botGameStoreContract = tmp;
|
|
9911
|
-
this.
|
|
9912
|
-
this.
|
|
9913
|
-
this.
|
|
9914
|
-
this.
|
|
9917
|
+
this.b5j_1 = currentPlayerId;
|
|
9918
|
+
this.c5j_1 = clientGameStoreContract;
|
|
9919
|
+
this.d5j_1 = gameMechanicStoreContract;
|
|
9920
|
+
this.e5j_1 = botGameStoreContract;
|
|
9915
9921
|
var tmp_3 = this;
|
|
9916
9922
|
var tmp$ret$3;
|
|
9917
9923
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9920,7 +9926,7 @@
|
|
|
9920
9926
|
var tmp_4 = typeToken(createKType(getKClass(ClientStatisticsInteractor), arrayOf([]), false));
|
|
9921
9927
|
tmp$ret$2 = isInterface(tmp_4, TypeToken) ? tmp_4 : THROW_CCE();
|
|
9922
9928
|
tmp$ret$3 = Instance(di, tmp$ret$2, null);
|
|
9923
|
-
tmp_3.
|
|
9929
|
+
tmp_3.f5j_1 = tmp$ret$3.o2d(this, clientStatisticsInteractor$factory());
|
|
9924
9930
|
var tmp_5 = this;
|
|
9925
9931
|
var tmp$ret$5;
|
|
9926
9932
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9929,7 +9935,7 @@
|
|
|
9929
9935
|
var tmp_6 = typeToken(createKType(getKClass(AsyncProvider), arrayOf([]), false));
|
|
9930
9936
|
tmp$ret$4 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
9931
9937
|
tmp$ret$5 = Instance(di, tmp$ret$4, null);
|
|
9932
|
-
tmp_5.
|
|
9938
|
+
tmp_5.g5j_1 = tmp$ret$5.o2d(this, asyncProvider$factory_1());
|
|
9933
9939
|
var tmp_7 = this;
|
|
9934
9940
|
var tmp$ret$7;
|
|
9935
9941
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9938,7 +9944,7 @@
|
|
|
9938
9944
|
var tmp_8 = typeToken(createKType(getKClass(PersistentAppStateInteractor), arrayOf([]), false));
|
|
9939
9945
|
tmp$ret$6 = isInterface(tmp_8, TypeToken) ? tmp_8 : THROW_CCE();
|
|
9940
9946
|
tmp$ret$7 = Instance(di, tmp$ret$6, null);
|
|
9941
|
-
tmp_7.
|
|
9947
|
+
tmp_7.h5j_1 = tmp$ret$7.o2d(this, persistentAppStateInteractor$factory());
|
|
9942
9948
|
var tmp_9 = this;
|
|
9943
9949
|
var tmp$ret$9;
|
|
9944
9950
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9947,7 +9953,7 @@
|
|
|
9947
9953
|
var tmp_10 = typeToken(createKType(getKClass(ClientReduxConfig), arrayOf([]), false));
|
|
9948
9954
|
tmp$ret$8 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
9949
9955
|
tmp$ret$9 = Instance(di, tmp$ret$8, null);
|
|
9950
|
-
tmp_9.
|
|
9956
|
+
tmp_9.i5j_1 = tmp$ret$9.o2d(this, clientReduxConfig$factory_5());
|
|
9951
9957
|
var tmp_11 = this;
|
|
9952
9958
|
var tmp$ret$11;
|
|
9953
9959
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9956,7 +9962,7 @@
|
|
|
9956
9962
|
var tmp_12 = typeToken(createKType(getKClass(BotReduxConfig), arrayOf([]), false));
|
|
9957
9963
|
tmp$ret$10 = isInterface(tmp_12, TypeToken) ? tmp_12 : THROW_CCE();
|
|
9958
9964
|
tmp$ret$11 = Instance(di, tmp$ret$10, null);
|
|
9959
|
-
tmp_11.
|
|
9965
|
+
tmp_11.j5j_1 = tmp$ret$11.o2d(this, botConfig$factory_1());
|
|
9960
9966
|
var tmp_13 = this;
|
|
9961
9967
|
var tmp$ret$13;
|
|
9962
9968
|
// Inline function 'org.kodein.di.instance' call
|
|
@@ -9965,18 +9971,18 @@
|
|
|
9965
9971
|
var tmp_14 = typeToken(createKType(getKClass(LastCardInteractor), arrayOf([]), false));
|
|
9966
9972
|
tmp$ret$12 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
9967
9973
|
tmp$ret$13 = Instance(di, tmp$ret$12, null);
|
|
9968
|
-
tmp_13.
|
|
9974
|
+
tmp_13.k5j_1 = tmp$ret$13.o2d(this, lastCardInteractor$factory_1());
|
|
9969
9975
|
}
|
|
9970
9976
|
protoOf(SingleGameStoreContract).w42 = function () {
|
|
9971
|
-
return plus(plus(this.
|
|
9977
|
+
return plus(plus(this.c5j_1.w42(), this.e5j_1.w42()), this.d5j_1.w42());
|
|
9972
9978
|
};
|
|
9973
9979
|
protoOf(SingleGameStoreContract).x42 = function () {
|
|
9974
|
-
var tmp = plus(plus(this.
|
|
9980
|
+
var tmp = plus(plus(this.c5j_1.x42(), this.e5j_1.x42()), this.d5j_1.x42());
|
|
9975
9981
|
var tmp_0 = announceCombinationMiddleware();
|
|
9976
9982
|
var tmp_1 = whenPlayerTurnTimeoutAskBotMiddleware();
|
|
9977
9983
|
var tmp_2 = _get_botConfig__cpaxzc_0(this).isDelayForBot;
|
|
9978
9984
|
var tmp_3 = _get_botConfig__cpaxzc_0(this).simulateBotThinkingDelay ? Default_getInstance() : null;
|
|
9979
|
-
return plus(tmp, listOfNotNull([tmp_0, tmp_1, reloadTimersWhenContinueGameMiddleware(tmp_2, tmp_3, SingleGameStoreContract$_get_middlewares_$lambda_dj4vza(this)), statisticsMiddleware(_get_asyncProvider__jbpyhw_0(this), this.
|
|
9985
|
+
return plus(tmp, listOfNotNull([tmp_0, tmp_1, reloadTimersWhenContinueGameMiddleware(tmp_2, tmp_3, SingleGameStoreContract$_get_middlewares_$lambda_dj4vza(this)), statisticsMiddleware(_get_asyncProvider__jbpyhw_0(this), this.b5j_1, _get_clientStatisticsInteractor__s4ngf8(this)), exitAndSaveGameMiddleware(this.b5j_1, _get_asyncProvider__jbpyhw_0(this), _get_persistentAppStateInteractor__5jt7l7(this)), saveGameWhenAppOnBackgroundMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_persistentAppStateInteractor__5jt7l7(this)), removeSavedGameMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_persistentAppStateInteractor__5jt7l7(this)), removeSavedGameWhenErrorMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_persistentAppStateInteractor__5jt7l7(this)), _get_botConfig__cpaxzc_0(this).autoStepLastCard ? putPlayerLastCardMiddleware(_get_asyncProvider__jbpyhw_0(this), _get_lastCardInteractor__h6lq3w_0(this)) : null]));
|
|
9980
9986
|
};
|
|
9981
9987
|
function clientStatisticsInteractor$factory() {
|
|
9982
9988
|
return getPropertyCallableRef('clientStatisticsInteractor', 1, KProperty1, function (receiver) {
|
|
@@ -10128,7 +10134,7 @@
|
|
|
10128
10134
|
var element = tmp0_iterator.h();
|
|
10129
10135
|
var tmp$ret$0;
|
|
10130
10136
|
// Inline function 'com.debertz.logic.client.redux.enhancers.applyExpectant.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
10131
|
-
tmp$ret$0 = element.a4n_1 === action.
|
|
10137
|
+
tmp$ret$0 = element.a4n_1 === action.l5j_1;
|
|
10132
10138
|
if (tmp$ret$0) {
|
|
10133
10139
|
if (found)
|
|
10134
10140
|
throw IllegalArgumentException_init_$Create$('Collection contains more than one matching element.');
|
|
@@ -10174,7 +10180,7 @@
|
|
|
10174
10180
|
return tmp$ret$0;
|
|
10175
10181
|
}
|
|
10176
10182
|
function _no_name_provided__qut3iv_34($combinationCheckerProvider) {
|
|
10177
|
-
this.
|
|
10183
|
+
this.m5j_1 = $combinationCheckerProvider;
|
|
10178
10184
|
}
|
|
10179
10185
|
protoOf(_no_name_provided__qut3iv_34).q2l = function (action) {
|
|
10180
10186
|
return action instanceof CardPutAction;
|
|
@@ -10188,7 +10194,7 @@
|
|
|
10188
10194
|
var playerCombinations = player.h2u_1.o2w_1;
|
|
10189
10195
|
var tmp$ret$2;
|
|
10190
10196
|
// Inline function 'kotlin.collections.map' call
|
|
10191
|
-
var tmp1_map = this.
|
|
10197
|
+
var tmp1_map = this.m5j_1.v3v(playerCombinations);
|
|
10192
10198
|
var tmp$ret$1;
|
|
10193
10199
|
// Inline function 'kotlin.collections.mapTo' call
|
|
10194
10200
|
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1_map, 10));
|
|
@@ -10318,7 +10324,7 @@
|
|
|
10318
10324
|
if (tmp_0) {
|
|
10319
10325
|
tmp = new CombinationToAnnounceAction(findFirstRoundCombinations, acceptedCombinations, declinedCombinations);
|
|
10320
10326
|
} else {
|
|
10321
|
-
var tmp0_safe_receiver = this.
|
|
10327
|
+
var tmp0_safe_receiver = this.m5j_1.q3v(tmp0__anonymous__q1qw7t.w5h_1.j2k_1, playerCombinations, table.config.rules.oneTryToProtectBella);
|
|
10322
10328
|
var findBellaCombination = tmp0_safe_receiver == null ? null : mapFromDetailed(tmp0_safe_receiver);
|
|
10323
10329
|
var tmp_6;
|
|
10324
10330
|
var tmp_7;
|
|
@@ -10450,26 +10456,26 @@
|
|
|
10450
10456
|
var combinationsState = tmp$ret$2;
|
|
10451
10457
|
var tmp$ret$3;
|
|
10452
10458
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
10453
|
-
var tmp1_orEmpty = combinationsState.
|
|
10459
|
+
var tmp1_orEmpty = combinationsState.o5j_1;
|
|
10454
10460
|
var tmp0_elvis_lhs = tmp1_orEmpty;
|
|
10455
10461
|
tmp$ret$3 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
10456
10462
|
var acceptedCombinations = tmp$ret$3;
|
|
10457
10463
|
var tmp$ret$4;
|
|
10458
10464
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
10459
|
-
var tmp2_orEmpty = combinationsState.
|
|
10465
|
+
var tmp2_orEmpty = combinationsState.p5j_1;
|
|
10460
10466
|
var tmp0_elvis_lhs_0 = tmp2_orEmpty;
|
|
10461
10467
|
tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
10462
|
-
var declinedCombinations = plus(combinationsState.
|
|
10463
|
-
if (tmp0__anonymous__q1qw7t.
|
|
10464
|
-
acceptedCombinations = plus(acceptedCombinations, combinationsState.
|
|
10468
|
+
var declinedCombinations = plus(combinationsState.n5j_1, tmp$ret$4);
|
|
10469
|
+
if (tmp0__anonymous__q1qw7t.q5j_1) {
|
|
10470
|
+
acceptedCombinations = plus(acceptedCombinations, combinationsState.n5j_1);
|
|
10465
10471
|
} else {
|
|
10466
|
-
declinedCombinations = plus(declinedCombinations, combinationsState.
|
|
10472
|
+
declinedCombinations = plus(declinedCombinations, combinationsState.n5j_1);
|
|
10467
10473
|
}
|
|
10468
10474
|
var card = clientState.g4o_1;
|
|
10469
10475
|
if (!(card == null)) {
|
|
10470
10476
|
store.dispatch(new CardPutAction(card, acceptedCombinations, declinedCombinations));
|
|
10471
10477
|
} else {
|
|
10472
|
-
store.dispatch(new CombinationChoiceFromClientAction(get_currentPlayer(store.state.r2q()).c2f(), tmp0__anonymous__q1qw7t.
|
|
10478
|
+
store.dispatch(new CombinationChoiceFromClientAction(get_currentPlayer(store.state.r2q()).c2f(), tmp0__anonymous__q1qw7t.q5j_1));
|
|
10473
10479
|
}
|
|
10474
10480
|
};
|
|
10475
10481
|
protoOf(_no_name_provided__qut3iv_35).r2l = function (store, next, action) {
|
|
@@ -10523,8 +10529,8 @@
|
|
|
10523
10529
|
return tmp$ret$0;
|
|
10524
10530
|
}
|
|
10525
10531
|
function clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda$slambda($store, $newAction, resultContinuation) {
|
|
10526
|
-
this.
|
|
10527
|
-
this.
|
|
10532
|
+
this.z5j_1 = $store;
|
|
10533
|
+
this.a5k_1 = $newAction;
|
|
10528
10534
|
CoroutineImpl.call(this, resultContinuation);
|
|
10529
10535
|
}
|
|
10530
10536
|
protoOf(clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda$slambda).e14 = function ($this$launchStore, $completion) {
|
|
@@ -10543,7 +10549,7 @@
|
|
|
10543
10549
|
var tmp = this.jh_1;
|
|
10544
10550
|
if (tmp === 0) {
|
|
10545
10551
|
this.kh_1 = 1;
|
|
10546
|
-
this.
|
|
10552
|
+
this.z5j_1.dispatch(this.a5k_1);
|
|
10547
10553
|
return Unit_getInstance();
|
|
10548
10554
|
} else if (tmp === 1) {
|
|
10549
10555
|
throw this.mh_1;
|
|
@@ -10555,8 +10561,8 @@
|
|
|
10555
10561
|
while (true);
|
|
10556
10562
|
};
|
|
10557
10563
|
protoOf(clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda$slambda).f14 = function ($this$launchStore, completion) {
|
|
10558
|
-
var i = new clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda$slambda(this.
|
|
10559
|
-
i.
|
|
10564
|
+
var i = new clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda$slambda(this.z5j_1, this.a5k_1, completion);
|
|
10565
|
+
i.b5k_1 = $this$launchStore;
|
|
10560
10566
|
return i;
|
|
10561
10567
|
};
|
|
10562
10568
|
function clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda$slambda_0($store, $newAction, resultContinuation) {
|
|
@@ -10568,12 +10574,12 @@
|
|
|
10568
10574
|
return l;
|
|
10569
10575
|
}
|
|
10570
10576
|
function clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda($tmp0__anonymous__1nv1x1, $currentPlayerId, $table, $lastCardInteractor, $asyncProvider, $store, resultContinuation) {
|
|
10571
|
-
this.
|
|
10572
|
-
this.
|
|
10573
|
-
this.
|
|
10574
|
-
this.
|
|
10575
|
-
this.
|
|
10576
|
-
this.
|
|
10577
|
+
this.k5k_1 = $tmp0__anonymous__1nv1x1;
|
|
10578
|
+
this.l5k_1 = $currentPlayerId;
|
|
10579
|
+
this.m5k_1 = $table;
|
|
10580
|
+
this.n5k_1 = $lastCardInteractor;
|
|
10581
|
+
this.o5k_1 = $asyncProvider;
|
|
10582
|
+
this.p5k_1 = $store;
|
|
10577
10583
|
CoroutineImpl.call(this, resultContinuation);
|
|
10578
10584
|
}
|
|
10579
10585
|
protoOf(clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda).e14 = function ($this$launchWorker, $completion) {
|
|
@@ -10592,13 +10598,13 @@
|
|
|
10592
10598
|
var tmp = this.jh_1;
|
|
10593
10599
|
if (tmp === 0) {
|
|
10594
10600
|
this.kh_1 = 1;
|
|
10595
|
-
var nextTurnPlayerId = singleOrNull(this.
|
|
10596
|
-
if (!(nextTurnPlayerId == null) ? this.
|
|
10597
|
-
var nextTurnPlayer = getPlayer(this.
|
|
10598
|
-
if (this.
|
|
10601
|
+
var nextTurnPlayerId = singleOrNull(this.k5k_1.j41());
|
|
10602
|
+
if (!(nextTurnPlayerId == null) ? this.l5k_1 === nextTurnPlayerId : false) {
|
|
10603
|
+
var nextTurnPlayer = getPlayer(this.m5k_1.players, nextTurnPlayerId);
|
|
10604
|
+
if (this.n5k_1.r3v(nextTurnPlayer, this.m5k_1.config.rules)) {
|
|
10599
10605
|
var gameCard = single(nextTurnPlayer.f2u_1);
|
|
10600
10606
|
var newAction = new CardPutAction(new ProcessingCard(gameCard, null));
|
|
10601
|
-
this.
|
|
10607
|
+
this.o5k_1.v2k(VOID, clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda$slambda_0(this.p5k_1, newAction, null));
|
|
10602
10608
|
}
|
|
10603
10609
|
}
|
|
10604
10610
|
return Unit_getInstance();
|
|
@@ -10612,8 +10618,8 @@
|
|
|
10612
10618
|
while (true);
|
|
10613
10619
|
};
|
|
10614
10620
|
protoOf(clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda).f14 = function ($this$launchWorker, completion) {
|
|
10615
|
-
var i = new clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda(this.l5k_1, this.m5k_1, this.n5k_1, this.o5k_1, this.p5k_1,
|
|
10616
|
-
i.
|
|
10621
|
+
var i = new clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda(this.k5k_1, this.l5k_1, this.m5k_1, this.n5k_1, this.o5k_1, this.p5k_1, completion);
|
|
10622
|
+
i.q5k_1 = $this$launchWorker;
|
|
10617
10623
|
return i;
|
|
10618
10624
|
};
|
|
10619
10625
|
function clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda_0($tmp0__anonymous__1nv1x1, $currentPlayerId, $table, $lastCardInteractor, $asyncProvider, $store, resultContinuation) {
|
|
@@ -10625,9 +10631,9 @@
|
|
|
10625
10631
|
return l;
|
|
10626
10632
|
}
|
|
10627
10633
|
function _no_name_provided__qut3iv_38($asyncProvider, $currentPlayerId, $lastCardInteractor) {
|
|
10628
|
-
this.
|
|
10629
|
-
this.
|
|
10630
|
-
this.
|
|
10634
|
+
this.r5k_1 = $asyncProvider;
|
|
10635
|
+
this.s5k_1 = $currentPlayerId;
|
|
10636
|
+
this.t5k_1 = $lastCardInteractor;
|
|
10631
10637
|
}
|
|
10632
10638
|
protoOf(_no_name_provided__qut3iv_38).q2l = function (action) {
|
|
10633
10639
|
return isInterface(action, CardsMechanicAction);
|
|
@@ -10637,7 +10643,7 @@
|
|
|
10637
10643
|
var tmp0__anonymous__q1qw7t = isInterface(action, CardsMechanicAction) ? action : THROW_CCE();
|
|
10638
10644
|
var table = store.state.r2q();
|
|
10639
10645
|
next(tmp0__anonymous__q1qw7t);
|
|
10640
|
-
this.
|
|
10646
|
+
this.r5k_1.x2k(VOID, clientPutCurrentPlayerLastCardMiddleware$o$handle$slambda_0(tmp0__anonymous__q1qw7t, this.s5k_1, table, this.t5k_1, this.r5k_1, store, null));
|
|
10641
10647
|
};
|
|
10642
10648
|
protoOf(_no_name_provided__qut3iv_38).r2l = function (store, next, action) {
|
|
10643
10649
|
return this.o44(store, next, action);
|
|
@@ -10710,7 +10716,7 @@
|
|
|
10710
10716
|
// Inline function 'kotlin.with' call
|
|
10711
10717
|
var tmp3_with = state.r2q();
|
|
10712
10718
|
// Inline function 'kotlin.contracts.contract' call
|
|
10713
|
-
var expectantAction = action.
|
|
10719
|
+
var expectantAction = action.d5i_1.b4n_1;
|
|
10714
10720
|
var tmp_3;
|
|
10715
10721
|
if (expectantAction instanceof CombinationChoiceMechanicAction) {
|
|
10716
10722
|
var tmp_4;
|
|
@@ -10833,13 +10839,13 @@
|
|
|
10833
10839
|
return tmp$ret$0;
|
|
10834
10840
|
}
|
|
10835
10841
|
function ResetMessageTimerTag(message) {
|
|
10836
|
-
this.
|
|
10842
|
+
this.u5k_1 = message;
|
|
10837
10843
|
}
|
|
10838
10844
|
protoOf(ResetMessageTimerTag).toString = function () {
|
|
10839
|
-
return 'ResetMessageTimerTag(message=' + this.
|
|
10845
|
+
return 'ResetMessageTimerTag(message=' + this.u5k_1 + ')';
|
|
10840
10846
|
};
|
|
10841
10847
|
protoOf(ResetMessageTimerTag).hashCode = function () {
|
|
10842
|
-
return hashCode(this.
|
|
10848
|
+
return hashCode(this.u5k_1);
|
|
10843
10849
|
};
|
|
10844
10850
|
protoOf(ResetMessageTimerTag).equals = function (other) {
|
|
10845
10851
|
if (this === other)
|
|
@@ -10847,7 +10853,7 @@
|
|
|
10847
10853
|
if (!(other instanceof ResetMessageTimerTag))
|
|
10848
10854
|
return false;
|
|
10849
10855
|
var tmp0_other_with_cast = other instanceof ResetMessageTimerTag ? other : THROW_CCE();
|
|
10850
|
-
if (!equals(this.
|
|
10856
|
+
if (!equals(this.u5k_1, tmp0_other_with_cast.u5k_1))
|
|
10851
10857
|
return false;
|
|
10852
10858
|
return true;
|
|
10853
10859
|
};
|
|
@@ -10882,7 +10888,7 @@
|
|
|
10882
10888
|
var timerTag = tmp0__anonymous__q1qw7t.c2m_1;
|
|
10883
10889
|
if (timerTag instanceof ResetMessageTimerTag) {
|
|
10884
10890
|
var clientPayload = get_clientState_0(store.state);
|
|
10885
|
-
if (equals(clientPayload.w4n_1, timerTag.
|
|
10891
|
+
if (equals(clientPayload.w4n_1, timerTag.u5k_1)) {
|
|
10886
10892
|
store.dispatch(new InfoMessageAction(null));
|
|
10887
10893
|
}
|
|
10888
10894
|
}
|
|
@@ -10898,7 +10904,7 @@
|
|
|
10898
10904
|
return tmp$ret$0;
|
|
10899
10905
|
}
|
|
10900
10906
|
function _no_name_provided__qut3iv_41($gameMechanicLogicInteractor) {
|
|
10901
|
-
this.
|
|
10907
|
+
this.v5k_1 = $gameMechanicLogicInteractor;
|
|
10902
10908
|
}
|
|
10903
10909
|
protoOf(_no_name_provided__qut3iv_41).q2l = function (action) {
|
|
10904
10910
|
return action instanceof FromClientAction;
|
|
@@ -10911,23 +10917,23 @@
|
|
|
10911
10917
|
var tmp0_subject = tmp0__anonymous__q1qw7t;
|
|
10912
10918
|
var tmp;
|
|
10913
10919
|
if (tmp0_subject instanceof MessageFromClientAction) {
|
|
10914
|
-
tmp = listOfNotNull_0(this.
|
|
10920
|
+
tmp = listOfNotNull_0(this.v5k_1.y3w(tmp0__anonymous__q1qw7t, table.players));
|
|
10915
10921
|
} else {
|
|
10916
10922
|
if (tmp0_subject instanceof PartnerSelectedFromClientAction) {
|
|
10917
|
-
tmp = listOf_0(this.
|
|
10923
|
+
tmp = listOf_0(this.v5k_1.z3w(tmp0__anonymous__q1qw7t, state.r2q().players));
|
|
10918
10924
|
} else {
|
|
10919
10925
|
if (tmp0_subject instanceof PlayerReadyFromClientAction) {
|
|
10920
|
-
tmp = listOf_0(this.
|
|
10926
|
+
tmp = listOf_0(this.v5k_1.a3x(tmp0__anonymous__q1qw7t));
|
|
10921
10927
|
} else {
|
|
10922
10928
|
if (tmp0_subject instanceof SuitChoiceFromClientAction) {
|
|
10923
|
-
tmp = listOf_0(this.
|
|
10929
|
+
tmp = listOf_0(this.v5k_1.b3x(tmp0__anonymous__q1qw7t, table.players, table.config));
|
|
10924
10930
|
} else {
|
|
10925
10931
|
if (tmp0_subject instanceof CombinationChoiceFromClientAction) {
|
|
10926
|
-
tmp = listOf_0(this.
|
|
10932
|
+
tmp = listOf_0(this.v5k_1.c3x(tmp0__anonymous__q1qw7t, state.r2q()));
|
|
10927
10933
|
} else {
|
|
10928
10934
|
if (tmp0_subject instanceof CardFromClientAction) {
|
|
10929
10935
|
var newCardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(tmp0__anonymous__q1qw7t.playerId, table.cardsOnTable.i(), tmp0__anonymous__q1qw7t.b3c_1));
|
|
10930
|
-
var cardMechanicAction = this.
|
|
10936
|
+
var cardMechanicAction = this.v5k_1.d3x(tmp0__anonymous__q1qw7t, newCardsOnTheTable, table.players, table.config);
|
|
10931
10937
|
tmp = listOf_0(cardMechanicAction);
|
|
10932
10938
|
} else {
|
|
10933
10939
|
tmp = emptyList();
|
|
@@ -10962,8 +10968,8 @@
|
|
|
10962
10968
|
return tmp$ret$0;
|
|
10963
10969
|
}
|
|
10964
10970
|
function clientSendEventsToServerMiddleware$o$handle$slambda($provider, $tmp0__anonymous__1nv1x1, resultContinuation) {
|
|
10965
|
-
this.
|
|
10966
|
-
this.
|
|
10971
|
+
this.e5l_1 = $provider;
|
|
10972
|
+
this.f5l_1 = $tmp0__anonymous__1nv1x1;
|
|
10967
10973
|
CoroutineImpl.call(this, resultContinuation);
|
|
10968
10974
|
}
|
|
10969
10975
|
protoOf(clientSendEventsToServerMiddleware$o$handle$slambda).e14 = function ($this$launchStore, $completion) {
|
|
@@ -10984,7 +10990,7 @@
|
|
|
10984
10990
|
case 0:
|
|
10985
10991
|
this.kh_1 = 2;
|
|
10986
10992
|
this.jh_1 = 1;
|
|
10987
|
-
suspendResult = this.
|
|
10993
|
+
suspendResult = this.e5l_1.p56(this.f5l_1, this);
|
|
10988
10994
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
10989
10995
|
return suspendResult;
|
|
10990
10996
|
}
|
|
@@ -11007,8 +11013,8 @@
|
|
|
11007
11013
|
while (true);
|
|
11008
11014
|
};
|
|
11009
11015
|
protoOf(clientSendEventsToServerMiddleware$o$handle$slambda).f14 = function ($this$launchStore, completion) {
|
|
11010
|
-
var i = new clientSendEventsToServerMiddleware$o$handle$slambda(this.
|
|
11011
|
-
i.
|
|
11016
|
+
var i = new clientSendEventsToServerMiddleware$o$handle$slambda(this.e5l_1, this.f5l_1, completion);
|
|
11017
|
+
i.g5l_1 = $this$launchStore;
|
|
11012
11018
|
return i;
|
|
11013
11019
|
};
|
|
11014
11020
|
function clientSendEventsToServerMiddleware$o$handle$slambda_0($provider, $tmp0__anonymous__1nv1x1, resultContinuation) {
|
|
@@ -11020,8 +11026,8 @@
|
|
|
11020
11026
|
return l;
|
|
11021
11027
|
}
|
|
11022
11028
|
function _no_name_provided__qut3iv_42($asyncProvider, $provider) {
|
|
11023
|
-
this.
|
|
11024
|
-
this.
|
|
11029
|
+
this.h5l_1 = $asyncProvider;
|
|
11030
|
+
this.i5l_1 = $provider;
|
|
11025
11031
|
}
|
|
11026
11032
|
protoOf(_no_name_provided__qut3iv_42).q2l = function (action) {
|
|
11027
11033
|
return action instanceof FromClientAction;
|
|
@@ -11029,7 +11035,7 @@
|
|
|
11029
11035
|
protoOf(_no_name_provided__qut3iv_42).o44 = function (store, next, action) {
|
|
11030
11036
|
// Inline function 'com.debertz.logic.client.redux.middlewares.online.clientSendEventsToServerMiddleware.<anonymous>' call
|
|
11031
11037
|
var tmp0__anonymous__q1qw7t = action instanceof FromClientAction ? action : THROW_CCE();
|
|
11032
|
-
this.
|
|
11038
|
+
this.h5l_1.v2k(VOID, clientSendEventsToServerMiddleware$o$handle$slambda_0(this.i5l_1, tmp0__anonymous__q1qw7t, null));
|
|
11033
11039
|
next(tmp0__anonymous__q1qw7t);
|
|
11034
11040
|
};
|
|
11035
11041
|
protoOf(_no_name_provided__qut3iv_42).r2l = function (store, next, action) {
|
|
@@ -11042,8 +11048,8 @@
|
|
|
11042
11048
|
return tmp$ret$0;
|
|
11043
11049
|
}
|
|
11044
11050
|
function exitAndSaveGameMiddleware$o$handle$slambda$slambda($store, $tmp0__anonymous__1nv1x1, resultContinuation) {
|
|
11045
|
-
this.
|
|
11046
|
-
this.
|
|
11051
|
+
this.r5l_1 = $store;
|
|
11052
|
+
this.s5l_1 = $tmp0__anonymous__1nv1x1;
|
|
11047
11053
|
CoroutineImpl.call(this, resultContinuation);
|
|
11048
11054
|
}
|
|
11049
11055
|
protoOf(exitAndSaveGameMiddleware$o$handle$slambda$slambda).e14 = function ($this$launchStore, $completion) {
|
|
@@ -11062,7 +11068,7 @@
|
|
|
11062
11068
|
var tmp = this.jh_1;
|
|
11063
11069
|
if (tmp === 0) {
|
|
11064
11070
|
this.kh_1 = 1;
|
|
11065
|
-
this.
|
|
11071
|
+
this.r5l_1.dispatch(new FinishGameMechanicAction(new PlayerExitReason(this.s5l_1.z3z_1)));
|
|
11066
11072
|
return Unit_getInstance();
|
|
11067
11073
|
} else if (tmp === 1) {
|
|
11068
11074
|
throw this.mh_1;
|
|
@@ -11074,8 +11080,8 @@
|
|
|
11074
11080
|
while (true);
|
|
11075
11081
|
};
|
|
11076
11082
|
protoOf(exitAndSaveGameMiddleware$o$handle$slambda$slambda).f14 = function ($this$launchStore, completion) {
|
|
11077
|
-
var i = new exitAndSaveGameMiddleware$o$handle$slambda$slambda(this.
|
|
11078
|
-
i.
|
|
11083
|
+
var i = new exitAndSaveGameMiddleware$o$handle$slambda$slambda(this.r5l_1, this.s5l_1, completion);
|
|
11084
|
+
i.t5l_1 = $this$launchStore;
|
|
11079
11085
|
return i;
|
|
11080
11086
|
};
|
|
11081
11087
|
function exitAndSaveGameMiddleware$o$handle$slambda$slambda_0($store, $tmp0__anonymous__1nv1x1, resultContinuation) {
|
|
@@ -11087,10 +11093,10 @@
|
|
|
11087
11093
|
return l;
|
|
11088
11094
|
}
|
|
11089
11095
|
function exitAndSaveGameMiddleware$o$handle$slambda($store, $persistentAppStateInteractor, $asyncProvider, $tmp0__anonymous__1nv1x1, resultContinuation) {
|
|
11090
|
-
this.
|
|
11091
|
-
this.
|
|
11092
|
-
this.
|
|
11093
|
-
this.
|
|
11096
|
+
this.c5m_1 = $store;
|
|
11097
|
+
this.d5m_1 = $persistentAppStateInteractor;
|
|
11098
|
+
this.e5m_1 = $asyncProvider;
|
|
11099
|
+
this.f5m_1 = $tmp0__anonymous__1nv1x1;
|
|
11094
11100
|
CoroutineImpl.call(this, resultContinuation);
|
|
11095
11101
|
}
|
|
11096
11102
|
protoOf(exitAndSaveGameMiddleware$o$handle$slambda).e14 = function ($this$launchWorker, $completion) {
|
|
@@ -11110,10 +11116,10 @@
|
|
|
11110
11116
|
switch (tmp) {
|
|
11111
11117
|
case 0:
|
|
11112
11118
|
this.kh_1 = 3;
|
|
11113
|
-
this.
|
|
11114
|
-
if (this.
|
|
11119
|
+
this.h5m_1 = this.c5m_1.state;
|
|
11120
|
+
if (this.h5m_1.s2q() ? !get_isGameFinished(this.h5m_1.r2q()) : false) {
|
|
11115
11121
|
this.jh_1 = 1;
|
|
11116
|
-
suspendResult = this.
|
|
11122
|
+
suspendResult = this.d5m_1.o4o(this.h5m_1.r2q(), get_clientState_0(this.h5m_1), this);
|
|
11117
11123
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
11118
11124
|
return suspendResult;
|
|
11119
11125
|
}
|
|
@@ -11129,7 +11135,7 @@
|
|
|
11129
11135
|
this.jh_1 = 2;
|
|
11130
11136
|
continue $sm;
|
|
11131
11137
|
case 2:
|
|
11132
|
-
this.
|
|
11138
|
+
this.e5m_1.v2k(VOID, exitAndSaveGameMiddleware$o$handle$slambda$slambda_0(this.c5m_1, this.f5m_1, null));
|
|
11133
11139
|
;
|
|
11134
11140
|
return Unit_getInstance();
|
|
11135
11141
|
case 3:
|
|
@@ -11147,8 +11153,8 @@
|
|
|
11147
11153
|
while (true);
|
|
11148
11154
|
};
|
|
11149
11155
|
protoOf(exitAndSaveGameMiddleware$o$handle$slambda).f14 = function ($this$launchWorker, completion) {
|
|
11150
|
-
var i = new exitAndSaveGameMiddleware$o$handle$slambda(this.
|
|
11151
|
-
i.
|
|
11156
|
+
var i = new exitAndSaveGameMiddleware$o$handle$slambda(this.c5m_1, this.d5m_1, this.e5m_1, this.f5m_1, completion);
|
|
11157
|
+
i.g5m_1 = $this$launchWorker;
|
|
11152
11158
|
return i;
|
|
11153
11159
|
};
|
|
11154
11160
|
function exitAndSaveGameMiddleware$o$handle$slambda_0($store, $persistentAppStateInteractor, $asyncProvider, $tmp0__anonymous__1nv1x1, resultContinuation) {
|
|
@@ -11160,9 +11166,9 @@
|
|
|
11160
11166
|
return l;
|
|
11161
11167
|
}
|
|
11162
11168
|
function _no_name_provided__qut3iv_43($currentPlayerId, $asyncProvider, $persistentAppStateInteractor) {
|
|
11163
|
-
this.
|
|
11164
|
-
this.
|
|
11165
|
-
this.
|
|
11169
|
+
this.i5m_1 = $currentPlayerId;
|
|
11170
|
+
this.j5m_1 = $asyncProvider;
|
|
11171
|
+
this.k5m_1 = $persistentAppStateInteractor;
|
|
11166
11172
|
}
|
|
11167
11173
|
protoOf(_no_name_provided__qut3iv_43).q2l = function (action) {
|
|
11168
11174
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -11172,13 +11178,13 @@
|
|
|
11172
11178
|
$l$block: {
|
|
11173
11179
|
// Inline function 'com.debertz.logic.client.redux.middlewares.single.exitAndSaveGameMiddleware.<anonymous>' call
|
|
11174
11180
|
var tmp0__anonymous__q1qw7t = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
11175
|
-
if (!(this.
|
|
11181
|
+
if (!(this.i5m_1 === tmp0__anonymous__q1qw7t.z3z_1)) {
|
|
11176
11182
|
next(tmp0__anonymous__q1qw7t);
|
|
11177
11183
|
tmp$ret$0 = Unit_getInstance();
|
|
11178
11184
|
break $l$block;
|
|
11179
11185
|
}
|
|
11180
11186
|
next(tmp0__anonymous__q1qw7t);
|
|
11181
|
-
this.
|
|
11187
|
+
this.j5m_1.x2k(VOID, exitAndSaveGameMiddleware$o$handle$slambda_0(store, this.k5m_1, this.j5m_1, tmp0__anonymous__q1qw7t, null));
|
|
11182
11188
|
}
|
|
11183
11189
|
};
|
|
11184
11190
|
protoOf(_no_name_provided__qut3iv_43).r2l = function (store, next, action) {
|
|
@@ -11192,9 +11198,9 @@
|
|
|
11192
11198
|
return tmp$ret$0;
|
|
11193
11199
|
}
|
|
11194
11200
|
function _no_name_provided__qut3iv_44($isEnableBotForPlayer, $isDelayForBot, $random) {
|
|
11195
|
-
this.
|
|
11196
|
-
this.
|
|
11197
|
-
this.
|
|
11201
|
+
this.l5m_1 = $isEnableBotForPlayer;
|
|
11202
|
+
this.m5m_1 = $isDelayForBot;
|
|
11203
|
+
this.n5m_1 = $random;
|
|
11198
11204
|
}
|
|
11199
11205
|
protoOf(_no_name_provided__qut3iv_44).q2l = function (action) {
|
|
11200
11206
|
return action instanceof ContinueGameMechanicAction;
|
|
@@ -11216,7 +11222,7 @@
|
|
|
11216
11222
|
var element = tmp0_iterator.h();
|
|
11217
11223
|
var tmp$ret$0;
|
|
11218
11224
|
// Inline function 'com.debertz.logic.client.redux.middlewares.single.reloadTimersWhenContinueGameMiddleware.<anonymous>.<anonymous>' call
|
|
11219
|
-
tmp$ret$0 = this.
|
|
11225
|
+
tmp$ret$0 = this.l5m_1(element.c2f());
|
|
11220
11226
|
if (tmp$ret$0) {
|
|
11221
11227
|
tmp0_filterTo.a(element);
|
|
11222
11228
|
}
|
|
@@ -11228,7 +11234,7 @@
|
|
|
11228
11234
|
while (tmp0_iterator_0.g()) {
|
|
11229
11235
|
var element_0 = tmp0_iterator_0.h();
|
|
11230
11236
|
// Inline function 'com.debertz.logic.client.redux.middlewares.single.reloadTimersWhenContinueGameMiddleware.<anonymous>.<anonymous>' call
|
|
11231
|
-
store.dispatch(new StartTimerAction(new PlayerTurnTimerTag(element_0.c2f(), element_0.d2u_1.z2g()), getInitialPlayerTurnTimerDelayMillis(element_0, table.config, this.
|
|
11237
|
+
store.dispatch(new StartTimerAction(new PlayerTurnTimerTag(element_0.c2f(), element_0.d2u_1.z2g()), getInitialPlayerTurnTimerDelayMillis(element_0, table.config, this.m5m_1, this.n5m_1), VOID, TimerType_DELAY_getInstance()));
|
|
11232
11238
|
}
|
|
11233
11239
|
};
|
|
11234
11240
|
protoOf(_no_name_provided__qut3iv_44).r2l = function (store, next, action) {
|
|
@@ -11241,9 +11247,9 @@
|
|
|
11241
11247
|
return tmp$ret$0;
|
|
11242
11248
|
}
|
|
11243
11249
|
function removeSavedGameMiddleware$o$handle$slambda($tmp0__anonymous__1nv1x1, $persistentAppStateInteractor, $id, resultContinuation) {
|
|
11244
|
-
this.
|
|
11245
|
-
this.
|
|
11246
|
-
this.
|
|
11250
|
+
this.w5m_1 = $tmp0__anonymous__1nv1x1;
|
|
11251
|
+
this.x5m_1 = $persistentAppStateInteractor;
|
|
11252
|
+
this.y5m_1 = $id;
|
|
11247
11253
|
CoroutineImpl.call(this, resultContinuation);
|
|
11248
11254
|
}
|
|
11249
11255
|
protoOf(removeSavedGameMiddleware$o$handle$slambda).e14 = function ($this$launchWorker, $completion) {
|
|
@@ -11263,10 +11269,10 @@
|
|
|
11263
11269
|
switch (tmp) {
|
|
11264
11270
|
case 0:
|
|
11265
11271
|
this.kh_1 = 3;
|
|
11266
|
-
this.
|
|
11267
|
-
if (!(this.
|
|
11272
|
+
this.a5n_1 = this.w5m_1.gameWinners;
|
|
11273
|
+
if (!(this.a5n_1 == null)) {
|
|
11268
11274
|
this.jh_1 = 1;
|
|
11269
|
-
suspendResult = this.
|
|
11275
|
+
suspendResult = this.x5m_1.p4o(this.y5m_1, this);
|
|
11270
11276
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
11271
11277
|
return suspendResult;
|
|
11272
11278
|
}
|
|
@@ -11297,8 +11303,8 @@
|
|
|
11297
11303
|
while (true);
|
|
11298
11304
|
};
|
|
11299
11305
|
protoOf(removeSavedGameMiddleware$o$handle$slambda).f14 = function ($this$launchWorker, completion) {
|
|
11300
|
-
var i = new removeSavedGameMiddleware$o$handle$slambda(this.
|
|
11301
|
-
i.
|
|
11306
|
+
var i = new removeSavedGameMiddleware$o$handle$slambda(this.w5m_1, this.x5m_1, this.y5m_1, completion);
|
|
11307
|
+
i.z5m_1 = $this$launchWorker;
|
|
11302
11308
|
return i;
|
|
11303
11309
|
};
|
|
11304
11310
|
function removeSavedGameMiddleware$o$handle$slambda_0($tmp0__anonymous__1nv1x1, $persistentAppStateInteractor, $id, resultContinuation) {
|
|
@@ -11310,8 +11316,8 @@
|
|
|
11310
11316
|
return l;
|
|
11311
11317
|
}
|
|
11312
11318
|
function _no_name_provided__qut3iv_45($asyncProvider, $persistentAppStateInteractor) {
|
|
11313
|
-
this.
|
|
11314
|
-
this.
|
|
11319
|
+
this.b5n_1 = $asyncProvider;
|
|
11320
|
+
this.c5n_1 = $persistentAppStateInteractor;
|
|
11315
11321
|
}
|
|
11316
11322
|
protoOf(_no_name_provided__qut3iv_45).q2l = function (action) {
|
|
11317
11323
|
return action instanceof PartyEndedAction;
|
|
@@ -11321,7 +11327,7 @@
|
|
|
11321
11327
|
var tmp0__anonymous__q1qw7t = action instanceof PartyEndedAction ? action : THROW_CCE();
|
|
11322
11328
|
var id = store.state.r2q().id;
|
|
11323
11329
|
next(tmp0__anonymous__q1qw7t);
|
|
11324
|
-
this.
|
|
11330
|
+
this.b5n_1.x2k(VOID, removeSavedGameMiddleware$o$handle$slambda_0(tmp0__anonymous__q1qw7t, this.c5n_1, id, null));
|
|
11325
11331
|
};
|
|
11326
11332
|
protoOf(_no_name_provided__qut3iv_45).r2l = function (store, next, action) {
|
|
11327
11333
|
return this.o44(store, next, action);
|
|
@@ -11332,7 +11338,8 @@
|
|
|
11332
11338
|
tmp$ret$0 = new _no_name_provided__qut3iv_46(asyncProvider, persistentAppStateInteractor);
|
|
11333
11339
|
return tmp$ret$0;
|
|
11334
11340
|
}
|
|
11335
|
-
function removeSavedGameWhenErrorMiddleware$o$handle$slambda($persistentAppStateInteractor, resultContinuation) {
|
|
11341
|
+
function removeSavedGameWhenErrorMiddleware$o$handle$slambda($store, $persistentAppStateInteractor, resultContinuation) {
|
|
11342
|
+
this.l5n_1 = $store;
|
|
11336
11343
|
this.m5n_1 = $persistentAppStateInteractor;
|
|
11337
11344
|
CoroutineImpl.call(this, resultContinuation);
|
|
11338
11345
|
}
|
|
@@ -11353,8 +11360,12 @@
|
|
|
11353
11360
|
switch (tmp) {
|
|
11354
11361
|
case 0:
|
|
11355
11362
|
this.kh_1 = 2;
|
|
11363
|
+
var tmp_0 = this;
|
|
11364
|
+
var tmp0_safe_receiver = this.l5n_1.state.n2p_1;
|
|
11365
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.id;
|
|
11366
|
+
tmp_0.o5n_1 = tmp1_elvis_lhs == null ? 'temp_game_id' : tmp1_elvis_lhs;
|
|
11356
11367
|
this.jh_1 = 1;
|
|
11357
|
-
suspendResult = this.m5n_1.p4o(
|
|
11368
|
+
suspendResult = this.m5n_1.p4o(this.o5n_1, this);
|
|
11358
11369
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
11359
11370
|
return suspendResult;
|
|
11360
11371
|
}
|
|
@@ -11377,12 +11388,12 @@
|
|
|
11377
11388
|
while (true);
|
|
11378
11389
|
};
|
|
11379
11390
|
protoOf(removeSavedGameWhenErrorMiddleware$o$handle$slambda).f14 = function ($this$launchWorker, completion) {
|
|
11380
|
-
var i = new removeSavedGameWhenErrorMiddleware$o$handle$slambda(this.m5n_1, completion);
|
|
11391
|
+
var i = new removeSavedGameWhenErrorMiddleware$o$handle$slambda(this.l5n_1, this.m5n_1, completion);
|
|
11381
11392
|
i.n5n_1 = $this$launchWorker;
|
|
11382
11393
|
return i;
|
|
11383
11394
|
};
|
|
11384
|
-
function removeSavedGameWhenErrorMiddleware$o$handle$slambda_0($persistentAppStateInteractor, resultContinuation) {
|
|
11385
|
-
var i = new removeSavedGameWhenErrorMiddleware$o$handle$slambda($persistentAppStateInteractor, resultContinuation);
|
|
11395
|
+
function removeSavedGameWhenErrorMiddleware$o$handle$slambda_0($store, $persistentAppStateInteractor, resultContinuation) {
|
|
11396
|
+
var i = new removeSavedGameWhenErrorMiddleware$o$handle$slambda($store, $persistentAppStateInteractor, resultContinuation);
|
|
11386
11397
|
var l = function ($this$launchWorker, $completion) {
|
|
11387
11398
|
return i.e14($this$launchWorker, $completion);
|
|
11388
11399
|
};
|
|
@@ -11390,8 +11401,8 @@
|
|
|
11390
11401
|
return l;
|
|
11391
11402
|
}
|
|
11392
11403
|
function _no_name_provided__qut3iv_46($asyncProvider, $persistentAppStateInteractor) {
|
|
11393
|
-
this.
|
|
11394
|
-
this.
|
|
11404
|
+
this.p5n_1 = $asyncProvider;
|
|
11405
|
+
this.q5n_1 = $persistentAppStateInteractor;
|
|
11395
11406
|
}
|
|
11396
11407
|
protoOf(_no_name_provided__qut3iv_46).q2l = function (action) {
|
|
11397
11408
|
return action instanceof ErrorAction;
|
|
@@ -11400,7 +11411,7 @@
|
|
|
11400
11411
|
// Inline function 'com.debertz.logic.client.redux.middlewares.single.removeSavedGameWhenErrorMiddleware.<anonymous>' call
|
|
11401
11412
|
var tmp0__anonymous__q1qw7t = action instanceof ErrorAction ? action : THROW_CCE();
|
|
11402
11413
|
next(tmp0__anonymous__q1qw7t);
|
|
11403
|
-
this.
|
|
11414
|
+
this.p5n_1.x2k(VOID, removeSavedGameWhenErrorMiddleware$o$handle$slambda_0(store, this.q5n_1, null));
|
|
11404
11415
|
};
|
|
11405
11416
|
protoOf(_no_name_provided__qut3iv_46).r2l = function (store, next, action) {
|
|
11406
11417
|
return this.o44(store, next, action);
|
|
@@ -11412,9 +11423,9 @@
|
|
|
11412
11423
|
return tmp$ret$0;
|
|
11413
11424
|
}
|
|
11414
11425
|
function saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda($tmp0__anonymous__1nv1x1, $state, $persistentAppStateInteractor, resultContinuation) {
|
|
11415
|
-
this.
|
|
11416
|
-
this.
|
|
11417
|
-
this.
|
|
11426
|
+
this.z5n_1 = $tmp0__anonymous__1nv1x1;
|
|
11427
|
+
this.a5o_1 = $state;
|
|
11428
|
+
this.b5o_1 = $persistentAppStateInteractor;
|
|
11418
11429
|
CoroutineImpl.call(this, resultContinuation);
|
|
11419
11430
|
}
|
|
11420
11431
|
protoOf(saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda).e14 = function ($this$launchWorker, $completion) {
|
|
@@ -11434,9 +11445,9 @@
|
|
|
11434
11445
|
switch (tmp) {
|
|
11435
11446
|
case 0:
|
|
11436
11447
|
this.kh_1 = 3;
|
|
11437
|
-
if (!this.
|
|
11448
|
+
if ((!this.z5n_1.p5h_1 ? this.a5o_1.s2q() : false) ? !get_isGameFinished(this.a5o_1.r2q()) : false) {
|
|
11438
11449
|
this.jh_1 = 1;
|
|
11439
|
-
suspendResult = this.
|
|
11450
|
+
suspendResult = this.b5o_1.o4o(this.a5o_1.r2q(), get_clientState_0(this.a5o_1), this);
|
|
11440
11451
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
11441
11452
|
return suspendResult;
|
|
11442
11453
|
}
|
|
@@ -11468,8 +11479,8 @@
|
|
|
11468
11479
|
while (true);
|
|
11469
11480
|
};
|
|
11470
11481
|
protoOf(saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda).f14 = function ($this$launchWorker, completion) {
|
|
11471
|
-
var i = new saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda(this.
|
|
11472
|
-
i.
|
|
11482
|
+
var i = new saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda(this.z5n_1, this.a5o_1, this.b5o_1, completion);
|
|
11483
|
+
i.c5o_1 = $this$launchWorker;
|
|
11473
11484
|
return i;
|
|
11474
11485
|
};
|
|
11475
11486
|
function saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda_0($tmp0__anonymous__1nv1x1, $state, $persistentAppStateInteractor, resultContinuation) {
|
|
@@ -11481,8 +11492,8 @@
|
|
|
11481
11492
|
return l;
|
|
11482
11493
|
}
|
|
11483
11494
|
function _no_name_provided__qut3iv_47($asyncProvider, $persistentAppStateInteractor) {
|
|
11484
|
-
this.
|
|
11485
|
-
this.
|
|
11495
|
+
this.d5o_1 = $asyncProvider;
|
|
11496
|
+
this.e5o_1 = $persistentAppStateInteractor;
|
|
11486
11497
|
}
|
|
11487
11498
|
protoOf(_no_name_provided__qut3iv_47).q2l = function (action) {
|
|
11488
11499
|
return action instanceof ForegroundAction;
|
|
@@ -11492,7 +11503,7 @@
|
|
|
11492
11503
|
var tmp0__anonymous__q1qw7t = action instanceof ForegroundAction ? action : THROW_CCE();
|
|
11493
11504
|
var state = store.state;
|
|
11494
11505
|
next(tmp0__anonymous__q1qw7t);
|
|
11495
|
-
this.
|
|
11506
|
+
this.d5o_1.x2k(VOID, saveGameWhenAppOnBackgroundMiddleware$o$handle$slambda_0(tmp0__anonymous__q1qw7t, state, this.e5o_1, null));
|
|
11496
11507
|
};
|
|
11497
11508
|
protoOf(_no_name_provided__qut3iv_47).r2l = function (store, next, action) {
|
|
11498
11509
|
return this.o44(store, next, action);
|
|
@@ -11504,9 +11515,9 @@
|
|
|
11504
11515
|
return tmp$ret$0;
|
|
11505
11516
|
}
|
|
11506
11517
|
function statisticsMiddleware$o$handle$slambda($tmp0__anonymous__1nv1x1, $currentPlayerId, $clientStatisticsInteractor, resultContinuation) {
|
|
11507
|
-
this.
|
|
11508
|
-
this.
|
|
11509
|
-
this.
|
|
11518
|
+
this.n5o_1 = $tmp0__anonymous__1nv1x1;
|
|
11519
|
+
this.o5o_1 = $currentPlayerId;
|
|
11520
|
+
this.p5o_1 = $clientStatisticsInteractor;
|
|
11510
11521
|
CoroutineImpl.call(this, resultContinuation);
|
|
11511
11522
|
}
|
|
11512
11523
|
protoOf(statisticsMiddleware$o$handle$slambda).e14 = function ($this$launchWorker, $completion) {
|
|
@@ -11526,21 +11537,21 @@
|
|
|
11526
11537
|
switch (tmp) {
|
|
11527
11538
|
case 0:
|
|
11528
11539
|
this.kh_1 = 6;
|
|
11529
|
-
this.
|
|
11530
|
-
this.
|
|
11540
|
+
this.r5o_1 = this.n5o_1.earnedBiggestPointPlayerId === this.o5o_1;
|
|
11541
|
+
this.s5o_1 = contains(this.n5o_1.partyWinners, this.o5o_1);
|
|
11531
11542
|
this.jh_1 = 1;
|
|
11532
|
-
suspendResult = this.
|
|
11543
|
+
suspendResult = this.p5o_1.l4o(this.s5o_1, this.r5o_1, this);
|
|
11533
11544
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
11534
11545
|
return suspendResult;
|
|
11535
11546
|
}
|
|
11536
11547
|
|
|
11537
11548
|
continue $sm;
|
|
11538
11549
|
case 1:
|
|
11539
|
-
this.
|
|
11540
|
-
if (!(this.
|
|
11541
|
-
this.
|
|
11550
|
+
this.t5o_1 = this.n5o_1.gameWinners;
|
|
11551
|
+
if (!(this.t5o_1 == null)) {
|
|
11552
|
+
this.u5o_1 = contains(this.t5o_1, this.o5o_1);
|
|
11542
11553
|
this.jh_1 = 2;
|
|
11543
|
-
suspendResult = this.
|
|
11554
|
+
suspendResult = this.p5o_1.m4o(this.u5o_1, this);
|
|
11544
11555
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
11545
11556
|
return suspendResult;
|
|
11546
11557
|
}
|
|
@@ -11555,9 +11566,9 @@
|
|
|
11555
11566
|
this.jh_1 = 3;
|
|
11556
11567
|
continue $sm;
|
|
11557
11568
|
case 3:
|
|
11558
|
-
if (contains(this.
|
|
11569
|
+
if (contains(this.n5o_1.partyLosers, this.o5o_1)) {
|
|
11559
11570
|
this.jh_1 = 4;
|
|
11560
|
-
suspendResult = this.
|
|
11571
|
+
suspendResult = this.p5o_1.n4o(this);
|
|
11561
11572
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
11562
11573
|
return suspendResult;
|
|
11563
11574
|
}
|
|
@@ -11588,8 +11599,8 @@
|
|
|
11588
11599
|
while (true);
|
|
11589
11600
|
};
|
|
11590
11601
|
protoOf(statisticsMiddleware$o$handle$slambda).f14 = function ($this$launchWorker, completion) {
|
|
11591
|
-
var i = new statisticsMiddleware$o$handle$slambda(this.
|
|
11592
|
-
i.
|
|
11602
|
+
var i = new statisticsMiddleware$o$handle$slambda(this.n5o_1, this.o5o_1, this.p5o_1, completion);
|
|
11603
|
+
i.q5o_1 = $this$launchWorker;
|
|
11593
11604
|
return i;
|
|
11594
11605
|
};
|
|
11595
11606
|
function statisticsMiddleware$o$handle$slambda_0($tmp0__anonymous__1nv1x1, $currentPlayerId, $clientStatisticsInteractor, resultContinuation) {
|
|
@@ -11601,9 +11612,9 @@
|
|
|
11601
11612
|
return l;
|
|
11602
11613
|
}
|
|
11603
11614
|
function _no_name_provided__qut3iv_48($asyncProvider, $currentPlayerId, $clientStatisticsInteractor) {
|
|
11604
|
-
this.
|
|
11605
|
-
this.
|
|
11606
|
-
this.
|
|
11615
|
+
this.v5o_1 = $asyncProvider;
|
|
11616
|
+
this.w5o_1 = $currentPlayerId;
|
|
11617
|
+
this.x5o_1 = $clientStatisticsInteractor;
|
|
11607
11618
|
}
|
|
11608
11619
|
protoOf(_no_name_provided__qut3iv_48).q2l = function (action) {
|
|
11609
11620
|
return action instanceof PartyEndedAction;
|
|
@@ -11612,7 +11623,7 @@
|
|
|
11612
11623
|
// Inline function 'com.debertz.logic.client.redux.middlewares.single.statisticsMiddleware.<anonymous>' call
|
|
11613
11624
|
var tmp0__anonymous__q1qw7t = action instanceof PartyEndedAction ? action : THROW_CCE();
|
|
11614
11625
|
next(tmp0__anonymous__q1qw7t);
|
|
11615
|
-
this.
|
|
11626
|
+
this.v5o_1.x2k(VOID, statisticsMiddleware$o$handle$slambda_0(tmp0__anonymous__q1qw7t, this.w5o_1, this.x5o_1, null));
|
|
11616
11627
|
};
|
|
11617
11628
|
protoOf(_no_name_provided__qut3iv_48).r2l = function (store, next, action) {
|
|
11618
11629
|
return this.o44(store, next, action);
|
|
@@ -11654,7 +11665,7 @@
|
|
|
11654
11665
|
return tmp$ret$0;
|
|
11655
11666
|
}
|
|
11656
11667
|
function _no_name_provided__qut3iv_50($logger) {
|
|
11657
|
-
this.
|
|
11668
|
+
this.y5o_1 = $logger;
|
|
11658
11669
|
}
|
|
11659
11670
|
protoOf(_no_name_provided__qut3iv_50).q2l = function (action) {
|
|
11660
11671
|
return action instanceof ExpectantLifecycleAction;
|
|
@@ -11683,7 +11694,7 @@
|
|
|
11683
11694
|
var element = tmp0_iterator.h();
|
|
11684
11695
|
var tmp$ret$1;
|
|
11685
11696
|
// Inline function 'com.debertz.logic.client.redux.middlewares.validation.checkExpectantsMiddleware.<anonymous>.<anonymous>' call
|
|
11686
|
-
tmp$ret$1 = element.a4n_1 === tmp0__anonymous__q1qw7t.
|
|
11697
|
+
tmp$ret$1 = element.a4n_1 === tmp0__anonymous__q1qw7t.l5j_1;
|
|
11687
11698
|
if (tmp$ret$1) {
|
|
11688
11699
|
tmp$ret$0 = false;
|
|
11689
11700
|
break $l$block_0;
|
|
@@ -11692,7 +11703,7 @@
|
|
|
11692
11703
|
tmp$ret$0 = true;
|
|
11693
11704
|
}
|
|
11694
11705
|
if (tmp$ret$0) {
|
|
11695
|
-
this.
|
|
11706
|
+
this.y5o_1.c2l(VOID, "CheckExpectantsMiddleware: Expectant is not exists, can't finish it: " + expectants + ', ' + tmp0__anonymous__q1qw7t);
|
|
11696
11707
|
}
|
|
11697
11708
|
} else {
|
|
11698
11709
|
if (tmp0_subject instanceof ExpectantCreatedClientAction) {
|
|
@@ -11714,7 +11725,7 @@
|
|
|
11714
11725
|
var element_0 = tmp0_iterator_0.h();
|
|
11715
11726
|
var tmp$ret$3;
|
|
11716
11727
|
// Inline function 'com.debertz.logic.client.redux.middlewares.validation.checkExpectantsMiddleware.<anonymous>.<anonymous>' call
|
|
11717
|
-
tmp$ret$3 = element_0.a4n_1 === tmp0__anonymous__q1qw7t.
|
|
11728
|
+
tmp$ret$3 = element_0.a4n_1 === tmp0__anonymous__q1qw7t.d5i_1.a4n_1;
|
|
11718
11729
|
if (tmp$ret$3) {
|
|
11719
11730
|
tmp$ret$2 = true;
|
|
11720
11731
|
break $l$block_2;
|
|
@@ -11723,7 +11734,7 @@
|
|
|
11723
11734
|
tmp$ret$2 = false;
|
|
11724
11735
|
}
|
|
11725
11736
|
if (tmp$ret$2) {
|
|
11726
|
-
this.
|
|
11737
|
+
this.y5o_1.c2l(VOID, "CheckExpectantsMiddleware: Expectant already exists, can't add it: " + expectants + ', ' + tmp0__anonymous__q1qw7t);
|
|
11727
11738
|
}
|
|
11728
11739
|
}
|
|
11729
11740
|
}
|
|
@@ -11739,8 +11750,8 @@
|
|
|
11739
11750
|
return tmp$ret$0;
|
|
11740
11751
|
}
|
|
11741
11752
|
function _no_name_provided__qut3iv_51($currentPlayerId, $gameLogger) {
|
|
11742
|
-
this.
|
|
11743
|
-
this.
|
|
11753
|
+
this.z5o_1 = $currentPlayerId;
|
|
11754
|
+
this.a5p_1 = $gameLogger;
|
|
11744
11755
|
}
|
|
11745
11756
|
protoOf(_no_name_provided__qut3iv_51).q2l = function (action) {
|
|
11746
11757
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -11760,7 +11771,7 @@
|
|
|
11760
11771
|
var element = tmp0_iterator.h();
|
|
11761
11772
|
var tmp$ret$0;
|
|
11762
11773
|
// Inline function 'com.debertz.logic.client.redux.middlewares.validation.checkValidCurrentPlayerIdMiddleware.<anonymous>.<anonymous>' call
|
|
11763
|
-
tmp$ret$0 = element.n2f_1 === this.
|
|
11774
|
+
tmp$ret$0 = element.n2f_1 === this.z5o_1;
|
|
11764
11775
|
if (tmp$ret$0) {
|
|
11765
11776
|
tmp0_filterTo.a(element);
|
|
11766
11777
|
}
|
|
@@ -11769,13 +11780,13 @@
|
|
|
11769
11780
|
tmp$ret$2 = tmp$ret$1;
|
|
11770
11781
|
if (!(tmp$ret$2.i() === 1)) {
|
|
11771
11782
|
var state = store.state;
|
|
11772
|
-
this.
|
|
11783
|
+
this.a5p_1.c2l(VOID, 'checkValidCurrentPlayerIdMiddleware: currentPlayer id is not matched');
|
|
11773
11784
|
var tmp0_safe_receiver = get_clientStateOrNull_0(state);
|
|
11774
11785
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u4n_1;
|
|
11775
11786
|
if (!((tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g4m()) === false)) {
|
|
11776
|
-
store.dispatch(new ErrorAction(new ErrorState('Not valid user session, id:' + this.
|
|
11787
|
+
store.dispatch(new ErrorAction(new ErrorState('Not valid user session, id:' + this.z5o_1, VOID, new GameErrorReason('internal error'))));
|
|
11777
11788
|
} else {
|
|
11778
|
-
throw new SessionException(401, 'Not valid user session, id:' + this.
|
|
11789
|
+
throw new SessionException(401, 'Not valid user session, id:' + this.z5o_1);
|
|
11779
11790
|
}
|
|
11780
11791
|
}
|
|
11781
11792
|
};
|
|
@@ -11789,9 +11800,9 @@
|
|
|
11789
11800
|
return tmp$ret$0;
|
|
11790
11801
|
}
|
|
11791
11802
|
function _no_name_provided__qut3iv_52($putCardValidatorInteractor, $messageFactory, $logger) {
|
|
11792
|
-
this.
|
|
11793
|
-
this.
|
|
11794
|
-
this.
|
|
11803
|
+
this.b5p_1 = $putCardValidatorInteractor;
|
|
11804
|
+
this.c5p_1 = $messageFactory;
|
|
11805
|
+
this.d5p_1 = $logger;
|
|
11795
11806
|
}
|
|
11796
11807
|
protoOf(_no_name_provided__qut3iv_52).q2l = function (action) {
|
|
11797
11808
|
return action instanceof DisabledCardAction;
|
|
@@ -11801,11 +11812,11 @@
|
|
|
11801
11812
|
var tmp0__anonymous__q1qw7t = action instanceof DisabledCardAction ? action : THROW_CCE();
|
|
11802
11813
|
var state = store.state;
|
|
11803
11814
|
if (get_isEarnPointScene(state.r2q().sceneInfo.b3r_1)) {
|
|
11804
|
-
var validationCode = this.
|
|
11815
|
+
var validationCode = this.b5p_1.q4o(tmp0__anonymous__q1qw7t.e5p_1, get_currentPlayer(state.r2q()), state.r2q());
|
|
11805
11816
|
if (!(validationCode == null)) {
|
|
11806
|
-
store.dispatch(new InfoMessageAction(this.
|
|
11817
|
+
store.dispatch(new InfoMessageAction(this.c5p_1.c3v(validationCode)));
|
|
11807
11818
|
} else {
|
|
11808
|
-
this.
|
|
11819
|
+
this.d5p_1.c2l(VOID, 'clientShowDisabledCardMessageMiddleware: card is valid, please check');
|
|
11809
11820
|
}
|
|
11810
11821
|
}
|
|
11811
11822
|
next(tmp0__anonymous__q1qw7t);
|
|
@@ -11820,9 +11831,9 @@
|
|
|
11820
11831
|
return tmp$ret$0;
|
|
11821
11832
|
}
|
|
11822
11833
|
function _no_name_provided__qut3iv_53($putCardValidatorInteractor, $logger, $messageFactory) {
|
|
11823
|
-
this.
|
|
11824
|
-
this.
|
|
11825
|
-
this.
|
|
11834
|
+
this.f5p_1 = $putCardValidatorInteractor;
|
|
11835
|
+
this.g5p_1 = $logger;
|
|
11836
|
+
this.h5p_1 = $messageFactory;
|
|
11826
11837
|
}
|
|
11827
11838
|
protoOf(_no_name_provided__qut3iv_53).q2l = function (action) {
|
|
11828
11839
|
return action instanceof CardPutAction;
|
|
@@ -11833,7 +11844,7 @@
|
|
|
11833
11844
|
var state = store.state;
|
|
11834
11845
|
var cardNotValidCount = 0;
|
|
11835
11846
|
var player = get_currentPlayer(state.r2q());
|
|
11836
|
-
var validationCode = this.
|
|
11847
|
+
var validationCode = this.f5p_1.q4o(tmp0__anonymous__q1qw7t.w5h_1.j2k_1, player, state.r2q());
|
|
11837
11848
|
if (!(validationCode == null)) {
|
|
11838
11849
|
var tmp0 = cardNotValidCount;
|
|
11839
11850
|
cardNotValidCount = tmp0 + 1 | 0;
|
|
@@ -11841,10 +11852,10 @@
|
|
|
11841
11852
|
cardNotValidCount = 0;
|
|
11842
11853
|
}
|
|
11843
11854
|
if (cardNotValidCount > 3) {
|
|
11844
|
-
this.
|
|
11855
|
+
this.g5p_1.c2l(VOID, 'validateCardMiddleware: card is not valid for the third time, please check');
|
|
11845
11856
|
}
|
|
11846
11857
|
if (!(validationCode == null)) {
|
|
11847
|
-
store.dispatch(new InfoMessageAction(this.
|
|
11858
|
+
store.dispatch(new InfoMessageAction(this.h5p_1.c3v(validationCode)));
|
|
11848
11859
|
} else {
|
|
11849
11860
|
next(tmp0__anonymous__q1qw7t);
|
|
11850
11861
|
}
|
|
@@ -11862,7 +11873,7 @@
|
|
|
11862
11873
|
}
|
|
11863
11874
|
function ClientCombinationsReducerImpl() {
|
|
11864
11875
|
}
|
|
11865
|
-
protoOf(ClientCombinationsReducerImpl).
|
|
11876
|
+
protoOf(ClientCombinationsReducerImpl).i5p = function (currentPlayerId, sceneInfo) {
|
|
11866
11877
|
Companion_getInstance_2();
|
|
11867
11878
|
if (sceneInfo.d3r_1 === 'COMBINATION') {
|
|
11868
11879
|
var tmp$ret$0;
|
|
@@ -11883,7 +11894,7 @@
|
|
|
11883
11894
|
return null;
|
|
11884
11895
|
};
|
|
11885
11896
|
function _no_name_provided__qut3iv_54($clientCombinationsReducer) {
|
|
11886
|
-
this.
|
|
11897
|
+
this.j5p_1 = $clientCombinationsReducer;
|
|
11887
11898
|
}
|
|
11888
11899
|
protoOf(_no_name_provided__qut3iv_54).q2l = function (action) {
|
|
11889
11900
|
return isInterface(action, NavigationMechanicAction);
|
|
@@ -11897,7 +11908,7 @@
|
|
|
11897
11908
|
var actId = tmp0__anonymous__q1qw7t.actId;
|
|
11898
11909
|
Companion_getInstance_2();
|
|
11899
11910
|
if (actId === 'COMBINATION') {
|
|
11900
|
-
tmp$ret$0 = state.x3z(VOID, get_clientState_0(state).
|
|
11911
|
+
tmp$ret$0 = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.j5p_1.i5p(get_currentPlayer(table).c2f(), table.sceneInfo)));
|
|
11901
11912
|
break $l$block;
|
|
11902
11913
|
}
|
|
11903
11914
|
tmp$ret$0 = state;
|
|
@@ -11908,19 +11919,19 @@
|
|
|
11908
11919
|
return this.v49(state instanceof AppState ? state : THROW_CCE(), action);
|
|
11909
11920
|
};
|
|
11910
11921
|
function ClientLifecycleReducer(logger, tableLifecycleReducer) {
|
|
11911
|
-
this.
|
|
11912
|
-
this.
|
|
11922
|
+
this.l5p_1 = logger;
|
|
11923
|
+
this.m5p_1 = tableLifecycleReducer;
|
|
11913
11924
|
}
|
|
11914
|
-
protoOf(ClientLifecycleReducer).
|
|
11925
|
+
protoOf(ClientLifecycleReducer).n5p = function (table, state) {
|
|
11915
11926
|
var tmp;
|
|
11916
11927
|
if (state.u4n_1.f4m()) {
|
|
11917
|
-
tmp = this.
|
|
11928
|
+
tmp = this.m5p_1.n4b(table);
|
|
11918
11929
|
} else {
|
|
11919
11930
|
tmp = table;
|
|
11920
11931
|
}
|
|
11921
11932
|
return tmp;
|
|
11922
11933
|
};
|
|
11923
|
-
protoOf(ClientLifecycleReducer).
|
|
11934
|
+
protoOf(ClientLifecycleReducer).o5p = function (state, messagesReducer) {
|
|
11924
11935
|
var tmp0_$this = Companion_getInstance_7();
|
|
11925
11936
|
var tmp1_config = state.u4n_1;
|
|
11926
11937
|
var tmp2_isForeground = state.z4n_1;
|
|
@@ -11928,11 +11939,11 @@
|
|
|
11928
11939
|
var tmp4_bufferedActions = state.y4n_1;
|
|
11929
11940
|
var tmp5_error = state.h4o_1;
|
|
11930
11941
|
var tmp6_messages = messagesReducer(state.v4n_1);
|
|
11931
|
-
return tmp0_$this.
|
|
11942
|
+
return tmp0_$this.p5p(tmp1_config, tmp2_isForeground, tmp3_isSceneActive, tmp6_messages, tmp4_bufferedActions, tmp5_error);
|
|
11932
11943
|
};
|
|
11933
|
-
protoOf(ClientLifecycleReducer).
|
|
11944
|
+
protoOf(ClientLifecycleReducer).q5p = function (state) {
|
|
11934
11945
|
if (state.u4n_1.f4m()) {
|
|
11935
|
-
return Companion_getInstance_7().
|
|
11946
|
+
return Companion_getInstance_7().s5p(state.u4n_1, state.z4n_1, state.a4o_1);
|
|
11936
11947
|
} else {
|
|
11937
11948
|
var tmp0_$this = Companion_getInstance_7();
|
|
11938
11949
|
var tmp1_config = state.u4n_1;
|
|
@@ -11944,13 +11955,13 @@
|
|
|
11944
11955
|
var tmp7_combinations = state.d4o_1;
|
|
11945
11956
|
var tmp8_messages = state.v4n_1;
|
|
11946
11957
|
var tmp9_processingCard = state.g4o_1;
|
|
11947
|
-
return tmp0_$this.
|
|
11958
|
+
return tmp0_$this.r5p(tmp1_config, tmp2_isForeground, tmp3_isSceneActive, tmp8_messages, tmp6_bufferedActions, tmp5_expectants, tmp7_combinations, tmp9_processingCard, tmp4_error);
|
|
11948
11959
|
}
|
|
11949
11960
|
};
|
|
11950
|
-
protoOf(ClientLifecycleReducer).
|
|
11961
|
+
protoOf(ClientLifecycleReducer).t5p = function (messages) {
|
|
11951
11962
|
var tmp$ret$1;
|
|
11952
11963
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
11953
|
-
var tmp1_filterIsInstance = updateMessagesAsNotShown(messages, this.
|
|
11964
|
+
var tmp1_filterIsInstance = updateMessagesAsNotShown(messages, this.l5p_1);
|
|
11954
11965
|
var tmp$ret$0;
|
|
11955
11966
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
11956
11967
|
var tmp0_filterIsInstanceTo = ArrayList_init_$Create$_0();
|
|
@@ -11965,10 +11976,10 @@
|
|
|
11965
11976
|
tmp$ret$1 = tmp$ret$0;
|
|
11966
11977
|
return tmp$ret$1;
|
|
11967
11978
|
};
|
|
11968
|
-
protoOf(ClientLifecycleReducer).
|
|
11979
|
+
protoOf(ClientLifecycleReducer).u5p = function (messages) {
|
|
11969
11980
|
var tmp$ret$2;
|
|
11970
11981
|
// Inline function 'kotlin.collections.filter' call
|
|
11971
|
-
var tmp1_filter = updateMessagesAsNotShown(messages, this.
|
|
11982
|
+
var tmp1_filter = updateMessagesAsNotShown(messages, this.l5p_1);
|
|
11972
11983
|
var tmp$ret$1;
|
|
11973
11984
|
// Inline function 'kotlin.collections.filterTo' call
|
|
11974
11985
|
var tmp0_filterTo = ArrayList_init_$Create$_0();
|
|
@@ -12046,17 +12057,17 @@
|
|
|
12046
12057
|
}
|
|
12047
12058
|
function ClientLifecycleReducer$partyFinishedMessagesReducer$ref($boundThis) {
|
|
12048
12059
|
var l = function (p0) {
|
|
12049
|
-
return $boundThis.
|
|
12060
|
+
return $boundThis.u5p(p0);
|
|
12050
12061
|
};
|
|
12051
12062
|
l.callableName = 'partyFinishedMessagesReducer';
|
|
12052
12063
|
return l;
|
|
12053
12064
|
}
|
|
12054
12065
|
function ClientMechanicLifecycleReducer(clintConfig, logger, tableLifecycleReducer, clientLifecycleReducer, clientCombinationsReducer) {
|
|
12055
12066
|
BaseMechanicLifecycleReducer.call(this, tableLifecycleReducer);
|
|
12056
|
-
this.
|
|
12057
|
-
this.
|
|
12058
|
-
this.
|
|
12059
|
-
this.
|
|
12067
|
+
this.w5p_1 = clintConfig;
|
|
12068
|
+
this.x5p_1 = logger;
|
|
12069
|
+
this.y5p_1 = clientLifecycleReducer;
|
|
12070
|
+
this.z5p_1 = clientCombinationsReducer;
|
|
12060
12071
|
}
|
|
12061
12072
|
protoOf(ClientMechanicLifecycleReducer).i4b = function (state, action) {
|
|
12062
12073
|
var clientState = get_clientStateOrNull(state.o2p_1);
|
|
@@ -12070,8 +12081,8 @@
|
|
|
12070
12081
|
var tmp7_gameTable = tmp0_$this.b4c(tmp1_id, tmp3_config, tmp2_version, tmp4_users, tmp5_gameCreatorPlayerId);
|
|
12071
12082
|
var tmp;
|
|
12072
12083
|
if (clientState == null) {
|
|
12073
|
-
this.
|
|
12074
|
-
tmp = Companion_getInstance_7().
|
|
12084
|
+
this.x5p_1.c2l(VOID, 'ClientPayload is not onStart, should be init via InitClientStateAction');
|
|
12085
|
+
tmp = Companion_getInstance_7().a5q(this.w5p_1);
|
|
12075
12086
|
} else {
|
|
12076
12087
|
tmp = clientState;
|
|
12077
12088
|
}
|
|
@@ -12084,9 +12095,9 @@
|
|
|
12084
12095
|
var tmp1_gameTable = action.u41_1;
|
|
12085
12096
|
var tmp;
|
|
12086
12097
|
if (clientState == null) {
|
|
12087
|
-
tmp = Companion_getInstance_7().
|
|
12098
|
+
tmp = Companion_getInstance_7().b5q(this.w5p_1, this.z5p_1.i5p(get_currentPlayer(action.u41_1).c2f(), action.u41_1.sceneInfo));
|
|
12088
12099
|
} else {
|
|
12089
|
-
tmp = this.
|
|
12100
|
+
tmp = this.y5p_1.q5p(clientState);
|
|
12090
12101
|
}
|
|
12091
12102
|
var tmp2_payload = tmp;
|
|
12092
12103
|
return state.x3z(tmp1_gameTable, tmp2_payload, tmp0_gameLifecycleState, null);
|
|
@@ -12097,14 +12108,14 @@
|
|
|
12097
12108
|
protoOf(ClientMechanicLifecycleReducer).g4b = function (state, action) {
|
|
12098
12109
|
var tmp0_gameLifecycleState = GameLifecycleState_FINISHING_getInstance();
|
|
12099
12110
|
var tmp1_terminationGameReason = action.d41_1;
|
|
12100
|
-
var tmp2_gameTable = this.
|
|
12101
|
-
var tmp3_payload = this.
|
|
12111
|
+
var tmp2_gameTable = this.y5p_1.n5p(state.r2q(), get_clientState_0(state));
|
|
12112
|
+
var tmp3_payload = this.y5p_1.q5p(get_clientState_0(state));
|
|
12102
12113
|
return state.x3z(tmp2_gameTable, tmp3_payload, tmp0_gameLifecycleState, tmp1_terminationGameReason);
|
|
12103
12114
|
};
|
|
12104
12115
|
protoOf(ClientMechanicLifecycleReducer).e4b = function (state, action) {
|
|
12105
12116
|
var tmp = this.l4b_1.o4b(state.r2q());
|
|
12106
12117
|
var tmp_0 = get_clientState_0(state);
|
|
12107
|
-
return state.x3z(tmp, this.
|
|
12118
|
+
return state.x3z(tmp, this.y5p_1.o5p(tmp_0, ClientLifecycleReducer$partyFinishedMessagesReducer$ref(this.y5p_1)));
|
|
12108
12119
|
};
|
|
12109
12120
|
function clientResetProcessingCardReducer() {
|
|
12110
12121
|
var tmp$ret$0;
|
|
@@ -12121,7 +12132,7 @@
|
|
|
12121
12132
|
var tmp$ret$0;
|
|
12122
12133
|
// Inline function 'com.debertz.logic.client.redux.redusers.clientResetProcessingCardReducer.<anonymous>' call
|
|
12123
12134
|
var tmp0__anonymous__q1qw7t = action instanceof PutCardMechanicAction ? action : THROW_CCE();
|
|
12124
|
-
tmp$ret$0 = state.x3z(VOID, get_clientState_0(state).
|
|
12135
|
+
tmp$ret$0 = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null));
|
|
12125
12136
|
return tmp$ret$0;
|
|
12126
12137
|
};
|
|
12127
12138
|
protoOf(_no_name_provided__qut3iv_55).h2l = function (state, action) {
|
|
@@ -12135,21 +12146,21 @@
|
|
|
12135
12146
|
}
|
|
12136
12147
|
function ClientLifecycleReducer$gameFinishedMessagesReducer$ref($boundThis) {
|
|
12137
12148
|
var l = function (p0) {
|
|
12138
|
-
return $boundThis.
|
|
12149
|
+
return $boundThis.t5p(p0);
|
|
12139
12150
|
};
|
|
12140
12151
|
l.callableName = 'gameFinishedMessagesReducer';
|
|
12141
12152
|
return l;
|
|
12142
12153
|
}
|
|
12143
12154
|
function ClientLifecycleReducer$partyFinishedMessagesReducer$ref_0($boundThis) {
|
|
12144
12155
|
var l = function (p0) {
|
|
12145
|
-
return $boundThis.
|
|
12156
|
+
return $boundThis.u5p(p0);
|
|
12146
12157
|
};
|
|
12147
12158
|
l.callableName = 'partyFinishedMessagesReducer';
|
|
12148
12159
|
return l;
|
|
12149
12160
|
}
|
|
12150
12161
|
function _no_name_provided__qut3iv_56($logger, $clientLifecycleReducer) {
|
|
12151
|
-
this.
|
|
12152
|
-
this.
|
|
12162
|
+
this.c5q_1 = $logger;
|
|
12163
|
+
this.d5q_1 = $clientLifecycleReducer;
|
|
12153
12164
|
}
|
|
12154
12165
|
protoOf(_no_name_provided__qut3iv_56).q2l = function (action) {
|
|
12155
12166
|
return action instanceof SceneMechanicAction;
|
|
@@ -12187,7 +12198,7 @@
|
|
|
12187
12198
|
tmp_0 = tmp0_subject === 'EARN_POINTS';
|
|
12188
12199
|
}
|
|
12189
12200
|
if (tmp_0) {
|
|
12190
|
-
tmp = state.x3z(VOID, get_clientState_0(state).
|
|
12201
|
+
tmp = state.x3z(VOID, get_clientState_0(state).k5p(VOID, updateMessagesAsNotShown(get_clientState_0(state).v4n_1, this.c5q_1)));
|
|
12191
12202
|
} else {
|
|
12192
12203
|
Companion_getInstance_0();
|
|
12193
12204
|
if (tmp0_subject === 'CALC_POINTS') {
|
|
@@ -12195,10 +12206,10 @@
|
|
|
12195
12206
|
var tmp_3;
|
|
12196
12207
|
if (gameFinished) {
|
|
12197
12208
|
var tmp_4 = get_clientState_0(state);
|
|
12198
|
-
tmp_3 = this.
|
|
12209
|
+
tmp_3 = this.d5q_1.o5p(tmp_4, ClientLifecycleReducer$gameFinishedMessagesReducer$ref(this.d5q_1));
|
|
12199
12210
|
} else {
|
|
12200
12211
|
var tmp_5 = get_clientState_0(state);
|
|
12201
|
-
tmp_3 = this.
|
|
12212
|
+
tmp_3 = this.d5q_1.o5p(tmp_5, ClientLifecycleReducer$partyFinishedMessagesReducer$ref_0(this.d5q_1));
|
|
12202
12213
|
}
|
|
12203
12214
|
tmp = state.x3z(VOID, tmp_3);
|
|
12204
12215
|
} else {
|
|
@@ -12219,8 +12230,8 @@
|
|
|
12219
12230
|
return tmp$ret$0;
|
|
12220
12231
|
}
|
|
12221
12232
|
function _no_name_provided__qut3iv_57($currentPlayerId, $clientLifecycleReducer) {
|
|
12222
|
-
this.
|
|
12223
|
-
this.
|
|
12233
|
+
this.e5q_1 = $currentPlayerId;
|
|
12234
|
+
this.f5q_1 = $clientLifecycleReducer;
|
|
12224
12235
|
}
|
|
12225
12236
|
protoOf(_no_name_provided__qut3iv_57).q2l = function (action) {
|
|
12226
12237
|
return action instanceof ClientUIAction;
|
|
@@ -12232,19 +12243,19 @@
|
|
|
12232
12243
|
var tmp0_subject = tmp0__anonymous__q1qw7t;
|
|
12233
12244
|
var tmp;
|
|
12234
12245
|
if (tmp0_subject instanceof SwitchChatAction) {
|
|
12235
|
-
tmp = state.x3z(VOID, get_clientState_0(state).
|
|
12246
|
+
tmp = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0__anonymous__q1qw7t.l5h_1));
|
|
12236
12247
|
} else {
|
|
12237
12248
|
if (tmp0_subject instanceof SwitchSettingAction) {
|
|
12238
|
-
tmp = state.x3z(VOID, get_clientState_0(state).
|
|
12249
|
+
tmp = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0__anonymous__q1qw7t.m5h_1));
|
|
12239
12250
|
} else {
|
|
12240
12251
|
if (tmp0_subject instanceof SceneTutorialAction) {
|
|
12241
|
-
tmp = state.x3z(VOID, get_clientState_0(state).
|
|
12252
|
+
tmp = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0__anonymous__q1qw7t.h5q_1));
|
|
12242
12253
|
} else {
|
|
12243
12254
|
if (tmp0_subject instanceof SceneActivationAction) {
|
|
12244
|
-
tmp = state.x3z(VOID, get_clientState_0(state).
|
|
12255
|
+
tmp = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, VOID, VOID, VOID, VOID, tmp0__anonymous__q1qw7t.g5q_1));
|
|
12245
12256
|
} else {
|
|
12246
12257
|
if (tmp0_subject instanceof CombinationToAnnounceAction) {
|
|
12247
|
-
tmp = state.x3z(VOID, get_clientState_0(state).
|
|
12258
|
+
tmp = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, new CombinationToAnnounceState(tmp0__anonymous__q1qw7t.a5i_1, tmp0__anonymous__q1qw7t.b5i_1, tmp0__anonymous__q1qw7t.c5i_1)));
|
|
12248
12259
|
} else {
|
|
12249
12260
|
if (tmp0_subject instanceof SwitchLastBribeAction) {
|
|
12250
12261
|
var tmp_0 = get_clientState_0(state);
|
|
@@ -12255,7 +12266,7 @@
|
|
|
12255
12266
|
} else {
|
|
12256
12267
|
tmp_1 = null;
|
|
12257
12268
|
}
|
|
12258
|
-
tmp = state.x3z(VOID, tmp_0.
|
|
12269
|
+
tmp = state.x3z(VOID, tmp_0.k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1));
|
|
12259
12270
|
} else {
|
|
12260
12271
|
if (tmp0_subject instanceof SwitchGameInfoAction) {
|
|
12261
12272
|
var tmp_2 = get_clientState_0(state);
|
|
@@ -12271,16 +12282,16 @@
|
|
|
12271
12282
|
} else {
|
|
12272
12283
|
tmp_3 = null;
|
|
12273
12284
|
}
|
|
12274
|
-
tmp = state.x3z(VOID, tmp_2.
|
|
12285
|
+
tmp = state.x3z(VOID, tmp_2.k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_3));
|
|
12275
12286
|
} else {
|
|
12276
12287
|
if (tmp0_subject instanceof AnnouncedCombinationAction) {
|
|
12277
|
-
tmp = state.x3z(VOID, get_clientState_0(state).
|
|
12288
|
+
tmp = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null));
|
|
12278
12289
|
} else {
|
|
12279
12290
|
if (tmp0_subject instanceof ForegroundAction) {
|
|
12280
|
-
tmp = state.x3z(VOID, get_clientState_0(state).
|
|
12291
|
+
tmp = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, VOID, VOID, VOID, tmp0__anonymous__q1qw7t.p5h_1));
|
|
12281
12292
|
} else {
|
|
12282
12293
|
if (tmp0_subject instanceof InitClientStateAction) {
|
|
12283
|
-
tmp = state.x3z(VOID, Companion_getInstance_7().
|
|
12294
|
+
tmp = state.x3z(VOID, Companion_getInstance_7().a5q(tmp0__anonymous__q1qw7t.q5h_1));
|
|
12284
12295
|
} else {
|
|
12285
12296
|
if (tmp0_subject instanceof UpdateConfigAction) {
|
|
12286
12297
|
var tmp6_safe_receiver = tmp0__anonymous__q1qw7t.v5h_1;
|
|
@@ -12329,22 +12340,22 @@
|
|
|
12329
12340
|
var tmp_7 = tmp_5.copy(VOID, VOID, VOID, tmp_6, tmp14_elvis_lhs == null ? state.r2q().players : tmp14_elvis_lhs);
|
|
12330
12341
|
var tmp_8 = get_clientState_0(state);
|
|
12331
12342
|
var tmp15_elvis_lhs = tmp0__anonymous__q1qw7t.r5h_1;
|
|
12332
|
-
tmp = state.x3z(tmp_7, tmp_8.
|
|
12343
|
+
tmp = state.x3z(tmp_7, tmp_8.k5p(tmp15_elvis_lhs == null ? get_clientState_0(state).u4n_1 : tmp15_elvis_lhs));
|
|
12333
12344
|
} else {
|
|
12334
12345
|
if (tmp0_subject instanceof CardPutAction) {
|
|
12335
|
-
tmp = state.x3z(VOID, get_clientState_0(state).
|
|
12346
|
+
tmp = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0__anonymous__q1qw7t.w5h_1));
|
|
12336
12347
|
} else {
|
|
12337
12348
|
if (tmp0_subject instanceof InfoMessageAction) {
|
|
12338
|
-
tmp = state.x3z(VOID, get_clientState_0(state).
|
|
12349
|
+
tmp = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, tmp0__anonymous__q1qw7t.z5h_1));
|
|
12339
12350
|
} else {
|
|
12340
12351
|
if (tmp0_subject instanceof UpdateMessagesCountAction) {
|
|
12341
|
-
tmp = state.x3z(updateVoiceCount_0(state.r2q(), this.
|
|
12352
|
+
tmp = state.x3z(updateVoiceCount_0(state.r2q(), this.e5q_1));
|
|
12342
12353
|
} else {
|
|
12343
12354
|
if (tmp0_subject instanceof ResetErrorAction) {
|
|
12344
|
-
tmp = state.x3z(VOID, get_clientState_0(state).
|
|
12355
|
+
tmp = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, null), GameLifecycleState_CREATING_getInstance(), null);
|
|
12345
12356
|
} else {
|
|
12346
12357
|
if (tmp0_subject instanceof ErrorAction) {
|
|
12347
|
-
tmp = state.x3z(VOID, this.
|
|
12358
|
+
tmp = state.x3z(VOID, this.f5q_1.q5p(get_clientState_0(state)).k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0__anonymous__q1qw7t.k4o_1), GameLifecycleState_FINISHED_getInstance(), tmp0__anonymous__q1qw7t.k4o_1.reason);
|
|
12348
12359
|
} else {
|
|
12349
12360
|
if (tmp0_subject instanceof DisabledCardAction) {
|
|
12350
12361
|
tmp = state;
|
|
@@ -12409,7 +12420,7 @@
|
|
|
12409
12420
|
tmp$ret$13 = tmp4_filterTo;
|
|
12410
12421
|
tmp$ret$14 = tmp$ret$13;
|
|
12411
12422
|
var expectants = tmp$ret$14;
|
|
12412
|
-
tmp = state.x3z(VOID, clientState.
|
|
12423
|
+
tmp = state.x3z(VOID, clientState.k5p(VOID, VOID, VOID, plus_0(expectants, expectant.g4n(VOID, VOID, VOID, true))));
|
|
12413
12424
|
} else {
|
|
12414
12425
|
if (equals(tmp0_subject, ThrowBribeAction_getInstance())) {
|
|
12415
12426
|
var clientState_0 = get_clientState_0(state);
|
|
@@ -12471,7 +12482,7 @@
|
|
|
12471
12482
|
tmp$ret$23 = tmp10_filterTo;
|
|
12472
12483
|
tmp$ret$24 = tmp$ret$23;
|
|
12473
12484
|
var expectants_0 = tmp$ret$24;
|
|
12474
|
-
tmp = state.x3z(VOID, clientState_0.
|
|
12485
|
+
tmp = state.x3z(VOID, clientState_0.k5p(VOID, VOID, VOID, plus_0(expectants_0, expectant_0.g4n(VOID, VOID, VOID, true))));
|
|
12475
12486
|
} else {
|
|
12476
12487
|
noWhenBranchMatchedException();
|
|
12477
12488
|
}
|
|
@@ -12545,14 +12556,14 @@
|
|
|
12545
12556
|
// Inline function 'com.debertz.logic.client.redux.redusers.messageReducer.<anonymous>' call
|
|
12546
12557
|
var tmp0__anonymous__q1qw7t = action instanceof MessageMechanicAction ? action : THROW_CCE();
|
|
12547
12558
|
var clientState = get_clientState_0(state);
|
|
12548
|
-
tmp$ret$0 = state.x3z(updateVoiceCount(state.r2q(), tmp0__anonymous__q1qw7t), clientState.
|
|
12559
|
+
tmp$ret$0 = state.x3z(updateVoiceCount(state.r2q(), tmp0__anonymous__q1qw7t), clientState.k5p(VOID, plus_0(clientState.v4n_1, tmp0__anonymous__q1qw7t.x41_1)));
|
|
12549
12560
|
return tmp$ret$0;
|
|
12550
12561
|
};
|
|
12551
12562
|
protoOf(_no_name_provided__qut3iv_58).h2l = function (state, action) {
|
|
12552
12563
|
return this.v49(state instanceof AppState ? state : THROW_CCE(), action);
|
|
12553
12564
|
};
|
|
12554
12565
|
function _no_name_provided__qut3iv_59($gameLogger) {
|
|
12555
|
-
this.
|
|
12566
|
+
this.i5q_1 = $gameLogger;
|
|
12556
12567
|
}
|
|
12557
12568
|
protoOf(_no_name_provided__qut3iv_59).q2l = function (action) {
|
|
12558
12569
|
return action instanceof TrumpMechanicAction;
|
|
@@ -12562,14 +12573,14 @@
|
|
|
12562
12573
|
// Inline function 'com.debertz.logic.client.redux.redusers.clientResetMessagesAfterSelectedTrumpReducer.<anonymous>' call
|
|
12563
12574
|
var tmp0__anonymous__q1qw7t = action instanceof TrumpMechanicAction ? action : THROW_CCE();
|
|
12564
12575
|
var clientState = get_clientState_0(state);
|
|
12565
|
-
tmp$ret$0 = state.x3z(VOID, clientState.
|
|
12576
|
+
tmp$ret$0 = state.x3z(VOID, clientState.k5p(VOID, updateMessagesAsNotShown(clientState.v4n_1, this.i5q_1)));
|
|
12566
12577
|
return tmp$ret$0;
|
|
12567
12578
|
};
|
|
12568
12579
|
protoOf(_no_name_provided__qut3iv_59).h2l = function (state, action) {
|
|
12569
12580
|
return this.v49(state instanceof AppState ? state : THROW_CCE(), action);
|
|
12570
12581
|
};
|
|
12571
12582
|
function _no_name_provided__qut3iv_60($gameLogger) {
|
|
12572
|
-
this.
|
|
12583
|
+
this.j5q_1 = $gameLogger;
|
|
12573
12584
|
}
|
|
12574
12585
|
protoOf(_no_name_provided__qut3iv_60).q2l = function (action) {
|
|
12575
12586
|
return action instanceof PickUpBribeMechanicAction;
|
|
@@ -12579,7 +12590,7 @@
|
|
|
12579
12590
|
// Inline function 'com.debertz.logic.client.redux.redusers.clientResetMessagesAfterBribeReducer.<anonymous>' call
|
|
12580
12591
|
var tmp0__anonymous__q1qw7t = action instanceof PickUpBribeMechanicAction ? action : THROW_CCE();
|
|
12581
12592
|
var clientState = get_clientState_0(state);
|
|
12582
|
-
tmp$ret$0 = state.x3z(VOID, clientState.
|
|
12593
|
+
tmp$ret$0 = state.x3z(VOID, clientState.k5p(VOID, updateMessagesAsNotShown(clientState.v4n_1, this.j5q_1)));
|
|
12583
12594
|
return tmp$ret$0;
|
|
12584
12595
|
};
|
|
12585
12596
|
protoOf(_no_name_provided__qut3iv_60).h2l = function (state, action) {
|
|
@@ -12605,10 +12616,10 @@
|
|
|
12605
12616
|
var tmp;
|
|
12606
12617
|
if (tmp0_subject instanceof AddToBufferAction) {
|
|
12607
12618
|
var tmp_0 = tmp0__anonymous__q1qw7t.i5h_1;
|
|
12608
|
-
tmp = state.x3z(VOID, clientState.
|
|
12619
|
+
tmp = state.x3z(VOID, clientState.k5p(VOID, VOID, VOID, VOID, plus_0(clientState.y4n_1, tmp_0 instanceof MechanicAction ? tmp_0 : THROW_CCE())));
|
|
12609
12620
|
} else {
|
|
12610
12621
|
if (tmp0_subject instanceof ReleaseBufferAction) {
|
|
12611
|
-
tmp = state.x3z(VOID, clientState.
|
|
12622
|
+
tmp = state.x3z(VOID, clientState.k5p(VOID, VOID, VOID, VOID, emptyList()));
|
|
12612
12623
|
} else {
|
|
12613
12624
|
noWhenBranchMatchedException();
|
|
12614
12625
|
}
|
|
@@ -12653,7 +12664,7 @@
|
|
|
12653
12664
|
}
|
|
12654
12665
|
tmp$ret$1 = tmp0_filterTo;
|
|
12655
12666
|
tmp$ret$2 = tmp$ret$1;
|
|
12656
|
-
tmp$ret$3 = state.x3z(VOID, clientState.
|
|
12667
|
+
tmp$ret$3 = state.x3z(VOID, clientState.k5p(VOID, VOID, VOID, tmp$ret$2));
|
|
12657
12668
|
return tmp$ret$3;
|
|
12658
12669
|
};
|
|
12659
12670
|
protoOf(_no_name_provided__qut3iv_62).h2l = function (state, action) {
|
|
@@ -12678,7 +12689,7 @@
|
|
|
12678
12689
|
var tmp0_subject = tmp0__anonymous__q1qw7t;
|
|
12679
12690
|
var tmp;
|
|
12680
12691
|
if (tmp0_subject instanceof ExpectantCreatedClientAction) {
|
|
12681
|
-
tmp = state.x3z(VOID, clientState.
|
|
12692
|
+
tmp = state.x3z(VOID, clientState.k5p(VOID, VOID, VOID, plus_0(clientState.x4n_1, tmp0__anonymous__q1qw7t.d5i_1)));
|
|
12682
12693
|
} else {
|
|
12683
12694
|
if (tmp0_subject instanceof ExpectantFinishedClientAction) {
|
|
12684
12695
|
var tmp$ret$1;
|
|
@@ -12691,7 +12702,7 @@
|
|
|
12691
12702
|
var element = tmp0_iterator.h();
|
|
12692
12703
|
var tmp$ret$0;
|
|
12693
12704
|
// Inline function 'com.debertz.logic.client.redux.redusers.expectant.expectantLifecycleReducer.<anonymous>.<anonymous>' call
|
|
12694
|
-
tmp$ret$0 = element.a4n_1 === tmp0__anonymous__q1qw7t.
|
|
12705
|
+
tmp$ret$0 = element.a4n_1 === tmp0__anonymous__q1qw7t.l5j_1;
|
|
12695
12706
|
if (tmp$ret$0) {
|
|
12696
12707
|
if (found)
|
|
12697
12708
|
throw IllegalArgumentException_init_$Create$('Collection contains more than one matching element.');
|
|
@@ -12722,7 +12733,7 @@
|
|
|
12722
12733
|
tmp$ret$3 = tmp1_filterTo;
|
|
12723
12734
|
tmp$ret$4 = tmp$ret$3;
|
|
12724
12735
|
var expectants = tmp$ret$4;
|
|
12725
|
-
tmp = state.x3z(VOID, clientState.
|
|
12736
|
+
tmp = state.x3z(VOID, clientState.k5p(VOID, VOID, VOID, plus_0(expectants, expectant.g4n(VOID, VOID, true))));
|
|
12726
12737
|
} else {
|
|
12727
12738
|
noWhenBranchMatchedException();
|
|
12728
12739
|
}
|
|
@@ -12760,9 +12771,9 @@
|
|
|
12760
12771
|
return tmp;
|
|
12761
12772
|
}
|
|
12762
12773
|
function _no_name_provided__qut3iv_64($playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
12763
|
-
this.
|
|
12764
|
-
this.
|
|
12765
|
-
this.
|
|
12774
|
+
this.k5q_1 = $playerTurnInteractor;
|
|
12775
|
+
this.l5q_1 = $logger;
|
|
12776
|
+
this.m5q_1 = $playerTurnMechanicReducer;
|
|
12766
12777
|
}
|
|
12767
12778
|
protoOf(_no_name_provided__qut3iv_64).q2l = function (action) {
|
|
12768
12779
|
return action instanceof ExpectantCreatedClientAction;
|
|
@@ -12772,7 +12783,7 @@
|
|
|
12772
12783
|
$l$block_0: {
|
|
12773
12784
|
// Inline function 'com.debertz.logic.client.redux.redusers.online.clientResetPlayerTurnAfterExpectantCreatedReducer.<anonymous>' call
|
|
12774
12785
|
var tmp0__anonymous__q1qw7t = action instanceof ExpectantCreatedClientAction ? action : THROW_CCE();
|
|
12775
|
-
var expectantAction = tmp0__anonymous__q1qw7t.
|
|
12786
|
+
var expectantAction = tmp0__anonymous__q1qw7t.d5i_1.b4n_1;
|
|
12776
12787
|
var tmp;
|
|
12777
12788
|
if (isInterface(expectantAction, PlayerTurnAnswerAction)) {
|
|
12778
12789
|
tmp = getPlayerTurn(expectantAction, state.r2q());
|
|
@@ -12788,7 +12799,7 @@
|
|
|
12788
12799
|
tmp_0 = tmp0_elvis_lhs;
|
|
12789
12800
|
}
|
|
12790
12801
|
var player = tmp_0;
|
|
12791
|
-
var tmp1_elvis_lhs = this.
|
|
12802
|
+
var tmp1_elvis_lhs = this.k5q_1.x3x(player, tmp0__anonymous__q1qw7t);
|
|
12792
12803
|
var tmp_1;
|
|
12793
12804
|
if (tmp1_elvis_lhs == null) {
|
|
12794
12805
|
tmp$ret$0 = state;
|
|
@@ -12797,8 +12808,8 @@
|
|
|
12797
12808
|
tmp_1 = tmp1_elvis_lhs;
|
|
12798
12809
|
}
|
|
12799
12810
|
var turnModel = tmp_1;
|
|
12800
|
-
this.
|
|
12801
|
-
tmp$ret$0 = state.x3z(this.
|
|
12811
|
+
this.l5q_1.n2o('PlayerTurn', 'clientResetPlayerTurnAfterExpectantCreatedReducer: ' + turnModel);
|
|
12812
|
+
tmp$ret$0 = state.x3z(this.m5q_1.v4b(state.r2q(), turnModel));
|
|
12802
12813
|
}
|
|
12803
12814
|
return tmp$ret$0;
|
|
12804
12815
|
};
|
|
@@ -12806,10 +12817,10 @@
|
|
|
12806
12817
|
return this.v49(state instanceof AppState ? state : THROW_CCE(), action);
|
|
12807
12818
|
};
|
|
12808
12819
|
function _no_name_provided__qut3iv_65($clientReduxConfig, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
12809
|
-
this.
|
|
12810
|
-
this.
|
|
12811
|
-
this.
|
|
12812
|
-
this.
|
|
12820
|
+
this.n5q_1 = $clientReduxConfig;
|
|
12821
|
+
this.o5q_1 = $playerTurnInteractor;
|
|
12822
|
+
this.p5q_1 = $logger;
|
|
12823
|
+
this.q5q_1 = $playerTurnMechanicReducer;
|
|
12813
12824
|
}
|
|
12814
12825
|
protoOf(_no_name_provided__qut3iv_65).q2l = function (action) {
|
|
12815
12826
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
@@ -12823,7 +12834,7 @@
|
|
|
12823
12834
|
var tmp;
|
|
12824
12835
|
if (tmp0_subject instanceof CombinationChoiceMechanicAction) {
|
|
12825
12836
|
var tmp_0;
|
|
12826
|
-
if (this.
|
|
12837
|
+
if (this.n5q_1.j4k_1 ? !tmp0__anonymous__q1qw7t.v2l() : false) {
|
|
12827
12838
|
tmp_0 = null;
|
|
12828
12839
|
} else {
|
|
12829
12840
|
tmp_0 = getPlayerTurn(tmp0__anonymous__q1qw7t, state.r2q());
|
|
@@ -12832,7 +12843,7 @@
|
|
|
12832
12843
|
} else {
|
|
12833
12844
|
if (tmp0_subject instanceof TeamsDataMechanicAction) {
|
|
12834
12845
|
var tmp_1;
|
|
12835
|
-
if (this.
|
|
12846
|
+
if (this.n5q_1.j4k_1 ? !tmp0__anonymous__q1qw7t.v2l() : false) {
|
|
12836
12847
|
tmp_1 = null;
|
|
12837
12848
|
} else {
|
|
12838
12849
|
tmp_1 = getPlayerTurn(tmp0__anonymous__q1qw7t, state.r2q());
|
|
@@ -12855,7 +12866,7 @@
|
|
|
12855
12866
|
tmp_2 = tmp1_elvis_lhs;
|
|
12856
12867
|
}
|
|
12857
12868
|
var player = tmp_2;
|
|
12858
|
-
var tmp2_elvis_lhs = this.
|
|
12869
|
+
var tmp2_elvis_lhs = this.o5q_1.x3x(player, tmp0__anonymous__q1qw7t);
|
|
12859
12870
|
var tmp_3;
|
|
12860
12871
|
if (tmp2_elvis_lhs == null) {
|
|
12861
12872
|
tmp$ret$0 = state;
|
|
@@ -12864,8 +12875,8 @@
|
|
|
12864
12875
|
tmp_3 = tmp2_elvis_lhs;
|
|
12865
12876
|
}
|
|
12866
12877
|
var turnModel = tmp_3;
|
|
12867
|
-
this.
|
|
12868
|
-
tmp$ret$0 = state.x3z(this.
|
|
12878
|
+
this.p5q_1.n2o('PlayerTurn', 'clientResetPlayerTurnAfterAnswerReducer: ' + turnModel);
|
|
12879
|
+
tmp$ret$0 = state.x3z(this.q5q_1.v4b(state.r2q(), turnModel));
|
|
12869
12880
|
}
|
|
12870
12881
|
return tmp$ret$0;
|
|
12871
12882
|
};
|
|
@@ -12879,7 +12890,7 @@
|
|
|
12879
12890
|
return tmp$ret$0;
|
|
12880
12891
|
}
|
|
12881
12892
|
function _no_name_provided__qut3iv_66($clientLifecycleReducer) {
|
|
12882
|
-
this.
|
|
12893
|
+
this.r5q_1 = $clientLifecycleReducer;
|
|
12883
12894
|
}
|
|
12884
12895
|
protoOf(_no_name_provided__qut3iv_66).q2l = function (action) {
|
|
12885
12896
|
return isInterface(action, TerminatedAction);
|
|
@@ -12900,7 +12911,7 @@
|
|
|
12900
12911
|
}
|
|
12901
12912
|
}
|
|
12902
12913
|
var errorState = tmp;
|
|
12903
|
-
tmp$ret$0 = state.x3z(VOID, this.
|
|
12914
|
+
tmp$ret$0 = state.x3z(VOID, this.r5q_1.q5p(get_clientState_0(state)).k5p(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, errorState));
|
|
12904
12915
|
return tmp$ret$0;
|
|
12905
12916
|
};
|
|
12906
12917
|
protoOf(_no_name_provided__qut3iv_66).h2l = function (state, action) {
|
|
@@ -12953,7 +12964,7 @@
|
|
|
12953
12964
|
tmp = tmp0_subject === 'CALC_POINTS';
|
|
12954
12965
|
}
|
|
12955
12966
|
if (tmp) {
|
|
12956
|
-
tmp$ret$0 = state.x3z(VOID, get_clientState_0(state).
|
|
12967
|
+
tmp$ret$0 = state.x3z(VOID, get_clientState_0(state).k5p(VOID, VOID, VOID, VOID, VOID, VOID, false));
|
|
12957
12968
|
break $l$block;
|
|
12958
12969
|
}
|
|
12959
12970
|
tmp$ret$0 = state;
|
|
@@ -12964,27 +12975,27 @@
|
|
|
12964
12975
|
return this.v49(state instanceof AppState ? state : THROW_CCE(), action);
|
|
12965
12976
|
};
|
|
12966
12977
|
function PlayerHandSelector(clientReduxConfig, gameLogicProvider, putCardValidatorInteractor) {
|
|
12967
|
-
this.
|
|
12968
|
-
this.
|
|
12969
|
-
this.
|
|
12978
|
+
this.s5q_1 = clientReduxConfig;
|
|
12979
|
+
this.t5q_1 = gameLogicProvider;
|
|
12980
|
+
this.u5q_1 = putCardValidatorInteractor;
|
|
12970
12981
|
}
|
|
12971
12982
|
function Companion_2() {
|
|
12972
12983
|
Companion_instance_2 = this;
|
|
12973
12984
|
}
|
|
12974
|
-
protoOf(Companion_2).
|
|
12985
|
+
protoOf(Companion_2).b5q = function (config, combinations) {
|
|
12975
12986
|
return new ClientState(config, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, combinations);
|
|
12976
12987
|
};
|
|
12977
|
-
protoOf(Companion_2).
|
|
12988
|
+
protoOf(Companion_2).a5q = function (config, combinations, $super) {
|
|
12978
12989
|
combinations = combinations === VOID ? null : combinations;
|
|
12979
|
-
return $super === VOID ? this.
|
|
12990
|
+
return $super === VOID ? this.b5q(config, combinations) : $super.b5q.call(this, config, combinations);
|
|
12980
12991
|
};
|
|
12981
|
-
protoOf(Companion_2).
|
|
12992
|
+
protoOf(Companion_2).p5p = function (config, isForeground, isSceneActive, messages, bufferedActions, error) {
|
|
12982
12993
|
return new ClientState(config, messages, VOID, VOID, bufferedActions, isForeground, isSceneActive, VOID, VOID, VOID, VOID, VOID, VOID, error);
|
|
12983
12994
|
};
|
|
12984
|
-
protoOf(Companion_2).
|
|
12995
|
+
protoOf(Companion_2).r5p = function (config, isForeground, isSceneActive, messages, bufferedActions, expectants, combinations, processingCard, error) {
|
|
12985
12996
|
return new ClientState(config, messages, VOID, expectants, bufferedActions, isForeground, isSceneActive, VOID, VOID, combinations, VOID, VOID, processingCard, error);
|
|
12986
12997
|
};
|
|
12987
|
-
protoOf(Companion_2).
|
|
12998
|
+
protoOf(Companion_2).s5p = function (config, isForeground, isSceneActive) {
|
|
12988
12999
|
return new ClientState(config, VOID, VOID, VOID, VOID, isForeground, isSceneActive);
|
|
12989
13000
|
};
|
|
12990
13001
|
var Companion_instance_2;
|
|
@@ -13025,10 +13036,10 @@
|
|
|
13025
13036
|
this.h4o_1 = error;
|
|
13026
13037
|
this.i4o_1 = tutorial;
|
|
13027
13038
|
}
|
|
13028
|
-
protoOf(ClientState).
|
|
13039
|
+
protoOf(ClientState).v5q = function (config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, error, tutorial) {
|
|
13029
13040
|
return new ClientState(config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, error, tutorial);
|
|
13030
13041
|
};
|
|
13031
|
-
protoOf(ClientState).
|
|
13042
|
+
protoOf(ClientState).k5p = function (config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, error, tutorial, $super) {
|
|
13032
13043
|
config = config === VOID ? this.u4n_1 : config;
|
|
13033
13044
|
messages = messages === VOID ? this.v4n_1 : messages;
|
|
13034
13045
|
infoMessage = infoMessage === VOID ? this.w4n_1 : infoMessage;
|
|
@@ -13044,7 +13055,7 @@
|
|
|
13044
13055
|
processingCard = processingCard === VOID ? this.g4o_1 : processingCard;
|
|
13045
13056
|
error = error === VOID ? this.h4o_1 : error;
|
|
13046
13057
|
tutorial = tutorial === VOID ? this.i4o_1 : tutorial;
|
|
13047
|
-
return $super === VOID ? this.
|
|
13058
|
+
return $super === VOID ? this.v5q(config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, error, tutorial) : $super.v5q.call(this, config, messages, infoMessage, expectants, bufferedActions, isForeground, isSceneActive, chatOpened, settingsOpened, combinations, lastBribe, gameInfo, processingCard, error, tutorial);
|
|
13048
13059
|
};
|
|
13049
13060
|
protoOf(ClientState).toString = function () {
|
|
13050
13061
|
return 'ClientState(config=' + this.u4n_1 + ', messages=' + this.v4n_1 + ', infoMessage=' + this.w4n_1 + ', expectants=' + this.x4n_1 + ', bufferedActions=' + this.y4n_1 + ', isForeground=' + this.z4n_1 + ', isSceneActive=' + this.a4o_1 + ', chatOpened=' + this.b4o_1 + ', settingsOpened=' + this.c4o_1 + ', combinations=' + this.d4o_1 + ', lastBribe=' + this.e4o_1 + ', gameInfo=' + this.f4o_1 + ', processingCard=' + this.g4o_1 + ', error=' + this.h4o_1 + ', tutorial=' + this.i4o_1 + ')';
|
|
@@ -13106,17 +13117,17 @@
|
|
|
13106
13117
|
return true;
|
|
13107
13118
|
};
|
|
13108
13119
|
function CombinationToAnnounceState(combinations, acceptedCombinations, declinedCombinations) {
|
|
13109
|
-
this.
|
|
13110
|
-
this.
|
|
13111
|
-
this.
|
|
13120
|
+
this.n5j_1 = combinations;
|
|
13121
|
+
this.o5j_1 = acceptedCombinations;
|
|
13122
|
+
this.p5j_1 = declinedCombinations;
|
|
13112
13123
|
}
|
|
13113
13124
|
protoOf(CombinationToAnnounceState).toString = function () {
|
|
13114
|
-
return 'CombinationToAnnounceState(combinations=' + this.
|
|
13125
|
+
return 'CombinationToAnnounceState(combinations=' + this.n5j_1 + ', acceptedCombinations=' + this.o5j_1 + ', declinedCombinations=' + this.p5j_1 + ')';
|
|
13115
13126
|
};
|
|
13116
13127
|
protoOf(CombinationToAnnounceState).hashCode = function () {
|
|
13117
|
-
var result = hashCode(this.
|
|
13128
|
+
var result = hashCode(this.n5j_1);
|
|
13129
|
+
result = imul(result, 31) + (this.o5j_1 == null ? 0 : hashCode(this.o5j_1)) | 0;
|
|
13118
13130
|
result = imul(result, 31) + (this.p5j_1 == null ? 0 : hashCode(this.p5j_1)) | 0;
|
|
13119
|
-
result = imul(result, 31) + (this.q5j_1 == null ? 0 : hashCode(this.q5j_1)) | 0;
|
|
13120
13131
|
return result;
|
|
13121
13132
|
};
|
|
13122
13133
|
protoOf(CombinationToAnnounceState).equals = function (other) {
|
|
@@ -13125,12 +13136,12 @@
|
|
|
13125
13136
|
if (!(other instanceof CombinationToAnnounceState))
|
|
13126
13137
|
return false;
|
|
13127
13138
|
var tmp0_other_with_cast = other instanceof CombinationToAnnounceState ? other : THROW_CCE();
|
|
13139
|
+
if (!equals(this.n5j_1, tmp0_other_with_cast.n5j_1))
|
|
13140
|
+
return false;
|
|
13128
13141
|
if (!equals(this.o5j_1, tmp0_other_with_cast.o5j_1))
|
|
13129
13142
|
return false;
|
|
13130
13143
|
if (!equals(this.p5j_1, tmp0_other_with_cast.p5j_1))
|
|
13131
13144
|
return false;
|
|
13132
|
-
if (!equals(this.q5j_1, tmp0_other_with_cast.q5j_1))
|
|
13133
|
-
return false;
|
|
13134
13145
|
return true;
|
|
13135
13146
|
};
|
|
13136
13147
|
function ErrorState(message, userInfo, reason) {
|
|
@@ -13158,14 +13169,14 @@
|
|
|
13158
13169
|
protoOf(ErrorState).b9 = function () {
|
|
13159
13170
|
return this.reason;
|
|
13160
13171
|
};
|
|
13161
|
-
protoOf(ErrorState).
|
|
13172
|
+
protoOf(ErrorState).w5q = function (message, userInfo, reason) {
|
|
13162
13173
|
return new ErrorState(message, userInfo, reason);
|
|
13163
13174
|
};
|
|
13164
13175
|
protoOf(ErrorState).copy = function (message, userInfo, reason, $super) {
|
|
13165
13176
|
message = message === VOID ? this.message : message;
|
|
13166
13177
|
userInfo = userInfo === VOID ? this.userInfo : userInfo;
|
|
13167
13178
|
reason = reason === VOID ? this.reason : reason;
|
|
13168
|
-
return this.
|
|
13179
|
+
return this.w5q(message, userInfo, reason);
|
|
13169
13180
|
};
|
|
13170
13181
|
protoOf(ErrorState).toString = function () {
|
|
13171
13182
|
return 'ErrorState(message=' + this.message + ', userInfo=' + this.userInfo + ', reason=' + this.reason + ')';
|
|
@@ -13340,13 +13351,13 @@
|
|
|
13340
13351
|
return tmp.d28(VOID, GameClientEngineControllerImpl$createDI$lambda(currentPlayerId, clientConfig, clientReduxConfig, logicReduxConfig, botConfig, externalReducers, externalMiddlewares, logger));
|
|
13341
13352
|
}
|
|
13342
13353
|
function _no_name_provided__qut3iv_68($item) {
|
|
13343
|
-
this.
|
|
13354
|
+
this.z5q_1 = $item;
|
|
13344
13355
|
}
|
|
13345
13356
|
protoOf(_no_name_provided__qut3iv_68).q2l = function (action) {
|
|
13346
13357
|
return isInterface(action, Action);
|
|
13347
13358
|
};
|
|
13348
13359
|
protoOf(_no_name_provided__qut3iv_68).v49 = function (state, action) {
|
|
13349
|
-
return this.
|
|
13360
|
+
return this.z5q_1(state, isInterface(action, Action) ? action : THROW_CCE());
|
|
13350
13361
|
};
|
|
13351
13362
|
protoOf(_no_name_provided__qut3iv_68).h2l = function (state, action) {
|
|
13352
13363
|
return this.v49(state instanceof AppState ? state : THROW_CCE(), action);
|
|
@@ -13413,11 +13424,11 @@
|
|
|
13413
13424
|
}
|
|
13414
13425
|
function GameClientEngineControllerImpl(loggerCallback) {
|
|
13415
13426
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
13416
|
-
this.
|
|
13417
|
-
this.
|
|
13427
|
+
this.a5r_1 = loggerCallback;
|
|
13428
|
+
this.b5r_1 = new ParserHelperImpl();
|
|
13418
13429
|
}
|
|
13419
|
-
protoOf(GameClientEngineControllerImpl).
|
|
13420
|
-
return this.
|
|
13430
|
+
protoOf(GameClientEngineControllerImpl).x5q = function () {
|
|
13431
|
+
return this.b5r_1;
|
|
13421
13432
|
};
|
|
13422
13433
|
protoOf(GameClientEngineControllerImpl).setEnableLogger = function (enabled) {
|
|
13423
13434
|
Logger_getInstance().w2n_1 = enabled;
|
|
@@ -13425,9 +13436,9 @@
|
|
|
13425
13436
|
protoOf(GameClientEngineControllerImpl).createOnlineGameEngine = function (currentPlayerId) {
|
|
13426
13437
|
return this.createOnlineGameEngineWithLogic(currentPlayerId);
|
|
13427
13438
|
};
|
|
13428
|
-
protoOf(GameClientEngineControllerImpl).
|
|
13439
|
+
protoOf(GameClientEngineControllerImpl).y5q = function (currentPlayerId, reducers, middlewares, isAutoStepCurrentPlayer, botExitsWhenNGameNumberIsFinished) {
|
|
13429
13440
|
var loggerOutputWithTablePayload = null;
|
|
13430
|
-
var tmp0_safe_receiver = this.
|
|
13441
|
+
var tmp0_safe_receiver = this.a5r_1;
|
|
13431
13442
|
var tmp;
|
|
13432
13443
|
if (tmp0_safe_receiver == null) {
|
|
13433
13444
|
tmp = null;
|
|
@@ -13437,7 +13448,7 @@
|
|
|
13437
13448
|
// Inline function 'kotlin.contracts.contract' call
|
|
13438
13449
|
var tmp$ret$0;
|
|
13439
13450
|
// Inline function 'GameClientEngineControllerImpl.createOnlineGameEngineWithLogic.<anonymous>' call
|
|
13440
|
-
var loggerOutput = createLoggerOutputWithTablePayload(this.
|
|
13451
|
+
var loggerOutput = createLoggerOutputWithTablePayload(this.a5r_1);
|
|
13441
13452
|
loggerOutputWithTablePayload = loggerOutput;
|
|
13442
13453
|
tmp$ret$0 = new CombinedGameLogger(listOf_0(loggerOutput));
|
|
13443
13454
|
tmp$ret$1 = tmp$ret$0;
|
|
@@ -13519,7 +13530,7 @@
|
|
|
13519
13530
|
return gameMechanic;
|
|
13520
13531
|
};
|
|
13521
13532
|
defineProp(protoOf(GameClientEngineControllerImpl), 'parser', function () {
|
|
13522
|
-
return this.
|
|
13533
|
+
return this.x5q();
|
|
13523
13534
|
});
|
|
13524
13535
|
//region block: post-declaration
|
|
13525
13536
|
protoOf(PlayersSceneContractImpl).d5b = waitUntilSceneActivated;
|