valtech-components 4.0.457 → 4.0.459
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +216 -3
- package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +27 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +242 -3
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +25 -1
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -35,6 +35,12 @@ interface ChessimalsMoveTrailView {
|
|
|
35
35
|
animal?: ChessimalsAnimalType;
|
|
36
36
|
capture: boolean;
|
|
37
37
|
}
|
|
38
|
+
interface ChessimalsChallengeTensionView {
|
|
39
|
+
title: string;
|
|
40
|
+
body: string;
|
|
41
|
+
icon: string;
|
|
42
|
+
critical: boolean;
|
|
43
|
+
}
|
|
38
44
|
export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
39
45
|
private readonly i18n;
|
|
40
46
|
private readonly audio;
|
|
@@ -60,6 +66,10 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
60
66
|
private moveEffectStartTimer;
|
|
61
67
|
private moveEffectClearTimer;
|
|
62
68
|
private powerUnlockTimer;
|
|
69
|
+
private turnTimerInterval;
|
|
70
|
+
private turnTimerKey;
|
|
71
|
+
private turnTimerDeadline;
|
|
72
|
+
private turnTimerExpiredKey;
|
|
63
73
|
private pendingOnlineGameId;
|
|
64
74
|
private openingOnlineGameId;
|
|
65
75
|
private openedOnlineGameId;
|
|
@@ -72,7 +82,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
72
82
|
readonly botProfiles: ChessimalsBotProfile[];
|
|
73
83
|
readonly challengeLadder: ChessimalsChallengeBot[];
|
|
74
84
|
readonly animals: ChessimalsAnimalView[];
|
|
75
|
-
readonly valtechComponentsVersion = "4.0.
|
|
85
|
+
readonly valtechComponentsVersion = "4.0.459";
|
|
76
86
|
readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
|
|
77
87
|
readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
|
|
78
88
|
readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
|
|
@@ -89,6 +99,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
89
99
|
readonly challengeLastBot: import("@angular/core").WritableSignal<ChessimalsChallengeBot>;
|
|
90
100
|
readonly challengeLastRoundStats: import("@angular/core").WritableSignal<ChessimalsChallengeRoundStats>;
|
|
91
101
|
readonly challengeNewRecord: import("@angular/core").WritableSignal<boolean>;
|
|
102
|
+
readonly turnSecondsRemaining: import("@angular/core").WritableSignal<number>;
|
|
92
103
|
readonly selectedPieceId: import("@angular/core").WritableSignal<string>;
|
|
93
104
|
readonly selectedAnimal: import("@angular/core").WritableSignal<ChessimalsAnimalType>;
|
|
94
105
|
readonly isRulesModalOpen: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -172,6 +183,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
172
183
|
readonly winBody: import("@angular/core").Signal<string>;
|
|
173
184
|
readonly winReasonLabel: import("@angular/core").Signal<string>;
|
|
174
185
|
readonly movesSummary: import("@angular/core").Signal<string>;
|
|
186
|
+
readonly capturesByColor: import("@angular/core").Signal<Record<ChessimalsPlayerColor, number>>;
|
|
175
187
|
readonly resultCaptures: import("@angular/core").Signal<number>;
|
|
176
188
|
readonly resultPowers: import("@angular/core").Signal<ChessimalsAnimalType[]>;
|
|
177
189
|
readonly resultStats: import("@angular/core").Signal<{
|
|
@@ -240,6 +252,14 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
240
252
|
private createTutorialGame;
|
|
241
253
|
private basicMovesForColor;
|
|
242
254
|
selectCell(position: ChessimalsPosition): void;
|
|
255
|
+
private commitChessimalsMove;
|
|
256
|
+
private syncTurnTimer;
|
|
257
|
+
private tickTurnTimer;
|
|
258
|
+
private clearTurnTimer;
|
|
259
|
+
private turnTimerDurationSeconds;
|
|
260
|
+
private handleTurnTimerExpired;
|
|
261
|
+
private chooseAutomaticTurnMove;
|
|
262
|
+
private isPromotionMove;
|
|
243
263
|
private animateMove;
|
|
244
264
|
private applyAnimatedMove;
|
|
245
265
|
private playPowerUnlockSound;
|
|
@@ -279,6 +299,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
279
299
|
showRankLabel(col: number): boolean;
|
|
280
300
|
showFileLabel(row: number): boolean;
|
|
281
301
|
playerLabel(color: ChessimalsPlayerColor): string;
|
|
302
|
+
capturesScoreLabel(): string;
|
|
303
|
+
turnTimerLabel(): string;
|
|
304
|
+
isTurnTimerLow(): boolean;
|
|
282
305
|
turnStateLabel(): string;
|
|
283
306
|
turnStateBody(): string;
|
|
284
307
|
winnerDisplayName(): string;
|
|
@@ -337,6 +360,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
|
|
|
337
360
|
challengeOutcomeBody(): string;
|
|
338
361
|
challengeNextRivalLabel(): string;
|
|
339
362
|
challengeContinueLabel(): string;
|
|
363
|
+
challengeTensionMoment(): ChessimalsChallengeTensionView | undefined;
|
|
340
364
|
challengeHasNewRecord(): boolean;
|
|
341
365
|
totalChallengePowers(stats?: ChessimalsChallengeRoundStats): number;
|
|
342
366
|
private createChallengeRoundStats;
|
package/lib/version.d.ts
CHANGED