RonaldoSetzer/GAME-Battleship

View on GitHub
src/battleship/views/components/EnemyTileDisplay.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { TileDisplay } from "./TileDisplay";

export class EnemyTileDisplay extends TileDisplay {
    private _enabled: boolean;
    public set enabled(value) {
        this.interactive = value;
        this.buttonMode = value;
        this._enabled = value;
    }

    public get enabled(): boolean {
        return this._enabled;
    }

    constructor(tileId: number, col: number, row: number) {
        super(tileId, col, row);
        this.enabled = true;
    }
}