UNPKG

monopoly-shared-model

Version:

Shared model for Monopoly

32 lines 786 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Serializable_1 = require("../Serializable"); class PropertyToken extends Serializable_1.Serializable { constructor(name, price, owner, type) { super(); this.name = name; this.price = price; this.owner = owner; this.type = type; } getName() { return this.name; } getPrice() { return this.price; } getOwner() { return this.owner; } getType() { return this.type; } setOwner(owner) { this.owner = owner; } static emptyObject() { return new PropertyToken(null, null, null, null); } } exports.PropertyToken = PropertyToken; //# sourceMappingURL=PropertyToken.js.map