mirror of
https://github.com/duckietm/Nitro-Cool-UI.git
synced 2025-06-21 22:36:58 +00:00
44 lines
808 B
TypeScript
44 lines
808 B
TypeScript
export class Tile
|
|
{
|
|
private _height: string;
|
|
private _isBlocked: boolean;
|
|
private _selected: boolean; // new property
|
|
|
|
constructor(height: string, isBlocked: boolean)
|
|
{
|
|
this._height = height;
|
|
this._isBlocked = isBlocked;
|
|
this._selected = false; // default to not selected
|
|
}
|
|
|
|
public get height(): string
|
|
{
|
|
return this._height;
|
|
}
|
|
|
|
public set height(height: string)
|
|
{
|
|
this._height = height;
|
|
}
|
|
|
|
public get isBlocked(): boolean
|
|
{
|
|
return this._isBlocked;
|
|
}
|
|
|
|
public set isBlocked(val: boolean)
|
|
{
|
|
this._isBlocked = val;
|
|
}
|
|
|
|
public get selected(): boolean
|
|
{
|
|
return this._selected;
|
|
}
|
|
|
|
public set selected(value: boolean)
|
|
{
|
|
this._selected = value;
|
|
}
|
|
}
|