monopoly-shared-model
Version:
Shared model for Monopoly
24 lines • 665 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const Serializable_1 = require("../Serializable");
class JailedPlayerThrow extends Serializable_1.Serializable {
constructor(playerName) {
super();
this.playerName = playerName;
this.nbTries = 0;
}
getNbTries() {
return this.nbTries;
}
getPlayerName() {
return this.playerName;
}
incrementNbTries() {
this.nbTries = +this.nbTries + 1;
}
static emptyObject() {
return new JailedPlayerThrow(null);
}
}
exports.JailedPlayerThrow = JailedPlayerThrow;
//# sourceMappingURL=JailedPlayerThrow.js.map