@runox-game/game-engine
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -63,8 +63,2 @@ "use strict"; | ||
} | ||
/* | ||
state.stack.cards = []; | ||
state.playersGroup.players.forEach((player) => { | ||
player.hand.cards = []; | ||
}); | ||
*/ | ||
state.stack.addCard(firstStackCard); | ||
@@ -74,2 +68,3 @@ state.log(" Carta en la mesa " + firstStackCard.sprite, log_levels_enum_1.LogLevel.USER); | ||
state.log(" El primer turno es para " + playerTurn.name, log_levels_enum_1.LogLevel.USER); | ||
state.turn.round = 0; | ||
state.turn.setPlayerTurn(playerTurn); | ||
@@ -76,0 +71,0 @@ this.events.dispatchAfterGameStart(); |
@@ -5,2 +5,3 @@ import { IPlayer } from './player.model'; | ||
valid: boolean; | ||
round: number; | ||
setPlayerTurn(player: IPlayer): void; | ||
@@ -10,2 +11,3 @@ } | ||
player: IPlayer | undefined; | ||
round: number; | ||
constructor(); | ||
@@ -12,0 +14,0 @@ get valid(): boolean; |
@@ -6,2 +6,3 @@ "use strict"; | ||
function Turn() { | ||
this.round = 0; | ||
this.player = undefined; | ||
@@ -17,2 +18,6 @@ } | ||
Turn.prototype.setPlayerTurn = function (player) { | ||
var _a; | ||
if (((_a = this.player) === null || _a === void 0 ? void 0 : _a.id) !== player.id) { | ||
this.round++; | ||
} | ||
this.player = player; | ||
@@ -19,0 +24,0 @@ }; |
{ | ||
"name": "@runox-game/game-engine", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "RunoX game engine", | ||
@@ -5,0 +5,0 @@ "main": "lib/game-engine.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
130833
3222