@vankosoft/game-platform 1.2.0 → 1.2.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ 1.1.0 | Release date: **26.08.2026**
2
+ ============================================
3
+ * New Features:
4
+ - Create ContractBridgeBidDto Interface.
5
+ - Update NPM Package Version.
6
+ - Add a New Method into Announce Model.
7
+ - Add Card Images.
8
+ - Update Package Version.
9
+ - Face Up Dummy Player Cards.
10
+
11
+
1
12
  1.0.0 | Release date: **16.08.2026**
2
13
  ============================================
3
14
  * New Features:
package/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -0,0 +1,8 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { PlayerPosition } from '../../Enum/playerPosition';
4
+
5
+ export interface DummyFaceupActionDto extends ActionDto {
6
+ DummyPlayer: PlayerPosition;
7
+ Player: PlayerPosition;
8
+ }
@@ -0,0 +1,11 @@
1
+ import { ActionDto } from './actionDto';
2
+
3
+ import { PlayerPosition } from '../../Enum/playerPosition';
4
+ import { CardDto } from '../CardGame/cardDto';
5
+
6
+ export interface DummyPlayCardActionDto extends ActionDto {
7
+ Card: CardDto;
8
+ Belote: boolean;
9
+ Player: PlayerPosition;
10
+ TrickNumber: number;
11
+ }
@@ -22,5 +22,6 @@ export interface CardGameDto extends GameDto {
22
22
 
23
23
  MyCards: any;
24
24
  Bids: any;
25
+
25
26
  LastBid: boolean;
26
27
  }
@@ -8,6 +8,7 @@ export interface GameCookieDto
8
8
 
9
9
  color?: PlayerColor;
10
10
  position?: PlayerPosition;
11
+ dummyPlayer?: PlayerPosition;
11
12
 
12
13
  roomSelected: boolean;
13
14
  }
@@ -20,14 +20,16 @@ export declare enum ActionNames {
20
20
  playingStarted = 18,
21
21
  playCard = 19,
22
22
  opponentPlayCard = 20,
23
- trickEnded = 21,
24
- roundEnded = 22,
25
- startNewRound = 23,
26
- announceMade = 24,
27
- startNewGame = 25,
28
- chessGameStarted = 26,
29
- chessMoveMade = 27,
30
- chessOpponentMove = 28,
31
- chessInvalidMoveMade = 29,
32
- serverWasTerminated = 30
23
+ dummyFaceup = 21,
24
+ dummyPlayCard = 22,
25
+ trickEnded = 23,
26
+ roundEnded = 24,
27
+ startNewRound = 25,
28
+ announceMade = 26,
29
+ startNewGame = 27,
30
+ chessGameStarted = 28,
31
+ chessMoveMade = 29,
32
+ chessOpponentMove = 30,
33
+ chessInvalidMoveMade = 31,
34
+ serverWasTerminated = 32
33
35
  }
@@ -3,5 +3,5 @@ import { IThemes } from './themes';
3
3
  import { CardDto } from '../Dto/CardGame/cardDto';
4
4
  import { PlayerPosition } from '../Enum/playerPosition';
5
5
  export declare class Card {
6
- static draw(cx: CanvasRenderingContext2D | null, cardImagesPath: string, cardBack: string, card: CardDto, point: Point, width: number, height: number, angle: number, theme: IThemes, position: PlayerPosition, highLighted: boolean, debugCards: boolean): void;
6
+ static draw(cx: CanvasRenderingContext2D | null, cardImagesPath: string, cardBack: string, card: CardDto, point: Point, width: number, height: number, angle: number, theme: IThemes, position: PlayerPosition, isDummy: boolean, highLighted: boolean, debugCards: boolean): void;
7
7
  }
@@ -89,6 +89,8 @@ export { OpponentBidsActionDto } from './Dto/Actions/opponentBidsActionDto';
89
89
  export { PlayingStartedActionDto } from './Dto/Actions/playingStartedActionDto';
90
90
  export { PlayCardActionDto } from './Dto/Actions/playCardActionDto';
91
91
  export { OpponentPlayCardActionDto } from './Dto/Actions/opponentPlayCardActionDto';
92
+ export { DummyFaceupActionDto } from './Dto/Actions/dummyFaceupActionDto';
93
+ export { DummyPlayCardActionDto } from './Dto/Actions/dummyPlayCardActionDto';
92
94
  export { TrickEndedActionDto } from './Dto/Actions/trickEndedActionDto';
93
95
  export { RoundEndedActionDto } from './Dto/Actions/roundEndedActionDto';
94
96
  export { StartNewRoundActionDto } from './Dto/Actions/startNewRoundActionDto';
package/dist/cjs/index.js CHANGED
@@ -202,17 +202,19 @@ exports.ActionNames = void 0;
202
202
  ActionNames[ActionNames["playingStarted"] = 18] = "playingStarted";
203
203
  ActionNames[ActionNames["playCard"] = 19] = "playCard";
204
204
  ActionNames[ActionNames["opponentPlayCard"] = 20] = "opponentPlayCard";
205
- ActionNames[ActionNames["trickEnded"] = 21] = "trickEnded";
206
- ActionNames[ActionNames["roundEnded"] = 22] = "roundEnded";
207
- ActionNames[ActionNames["startNewRound"] = 23] = "startNewRound";
208
- ActionNames[ActionNames["announceMade"] = 24] = "announceMade";
209
- ActionNames[ActionNames["startNewGame"] = 25] = "startNewGame";
205
+ ActionNames[ActionNames["dummyFaceup"] = 21] = "dummyFaceup";
206
+ ActionNames[ActionNames["dummyPlayCard"] = 22] = "dummyPlayCard";
207
+ ActionNames[ActionNames["trickEnded"] = 23] = "trickEnded";
208
+ ActionNames[ActionNames["roundEnded"] = 24] = "roundEnded";
209
+ ActionNames[ActionNames["startNewRound"] = 25] = "startNewRound";
210
+ ActionNames[ActionNames["announceMade"] = 26] = "announceMade";
211
+ ActionNames[ActionNames["startNewGame"] = 27] = "startNewGame";
210
212
  // Chess Game Actions
211
- ActionNames[ActionNames["chessGameStarted"] = 26] = "chessGameStarted";
212
- ActionNames[ActionNames["chessMoveMade"] = 27] = "chessMoveMade";
213
- ActionNames[ActionNames["chessOpponentMove"] = 28] = "chessOpponentMove";
214
- ActionNames[ActionNames["chessInvalidMoveMade"] = 29] = "chessInvalidMoveMade";
215
- ActionNames[ActionNames["serverWasTerminated"] = 30] = "serverWasTerminated";
213
+ ActionNames[ActionNames["chessGameStarted"] = 28] = "chessGameStarted";
214
+ ActionNames[ActionNames["chessMoveMade"] = 29] = "chessMoveMade";
215
+ ActionNames[ActionNames["chessOpponentMove"] = 30] = "chessOpponentMove";
216
+ ActionNames[ActionNames["chessInvalidMoveMade"] = 31] = "chessInvalidMoveMade";
217
+ ActionNames[ActionNames["serverWasTerminated"] = 32] = "serverWasTerminated";
216
218
  })(exports.ActionNames || (exports.ActionNames = {}));
217
219
 
218
220
  /* Auto Generated */
@@ -575,13 +577,13 @@ function GetAnnounceSymbol(symbolId) {
575
577
  }
576
578
 
577
579
  class Card {
578
- static draw(cx, cardImagesPath, cardBack, card, point, width, height, angle, theme, position, highLighted, debugCards) {
580
+ static draw(cx, cardImagesPath, cardBack, card, point, width, height, angle, theme, position, isDummy, highLighted, debugCards) {
579
581
  if (!cx) {
580
582
  return;
581
583
  }
582
584
  const { x, y } = point;
583
585
  const image = new Image(width, height);
584
- if (position === exports.PlayerPosition.south || debugCards) {
586
+ if (position === exports.PlayerPosition.south || isDummy || debugCards) {
585
587
  let imgSrc = `${cardImagesPath}/${card.cardIndex}.png`;
586
588
  image.src = imgSrc;
587
589
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vankosoft/game-platform",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Game Platform",
5
5
  "repository": {
6
6
  "type": "git",