@runox-game/game-engine
Version:
RunoX game engine
26 lines (25 loc) • 785 B
JavaScript
;
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;