UNPKG

@runox-game/game-engine

Version:
26 lines (25 loc) 785 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Player = void 0; var hand_model_1 = require("./hand.model"); var Player = /** @class */ (function () { function Player(id, name, pic) { this.id = id; this.name = name; this.pic = pic; this.hand = new hand_model_1.Hand(); } Object.defineProperty(Player.prototype, "valid", { get: function () { return (this.id !== undefined && this.name !== undefined && this.pic !== undefined && this.hand !== undefined && this.hand.valid); }, enumerable: false, configurable: true }); return Player; }()); exports.Player = Player;