mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-02 08:48:06 +00:00
20 lines
450 B
TypeScript
20 lines
450 B
TypeScript
import {TerraNullius, Cell, Tile, PlayerID} from "./Game";
|
|
import {GameImpl} from "./GameImpl";
|
|
|
|
|
|
export class TerraNulliusImpl implements TerraNullius {
|
|
public tiles: Map<Cell, Tile> = new Map<Cell, Tile>();
|
|
|
|
|
|
constructor(private gs: GameImpl) {
|
|
}
|
|
|
|
id(): PlayerID {
|
|
return 'TerraNulliusID';
|
|
}
|
|
ownsTile(cell: Cell): boolean {
|
|
return this.tiles.has(cell);
|
|
}
|
|
isPlayer(): false {return false as const;}
|
|
}
|