UNPKG

@andreabiagini5/applicazioni-e-servizi-web-project

Version:
23 lines 567 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MoveFactory = void 0; /** * Value object representing a move. */ class MoveFactory { } exports.MoveFactory = MoveFactory; /** * Move factory. Returns a move relative to the given coordinates. * @param x the x coordinate * @param y the y coordinate * @returns a move relative to the given coordinates */ MoveFactory.create = (x, y) => new MoveImpl(x, y); class MoveImpl { constructor(x, y) { this.x = x; this.y = y; } } //# sourceMappingURL=Move.js.map