Skip to content

PlayerStatistics beta ​

Interface of @v12-engine/editor

ts
export interface PlayerStatistics

What one player has on the map (mapStatistics)

Members ​

buildings ​

ts
buildings: CountedThings;

Its buildings: what stands (every kind that is not a unit nor a resource)

name ​

ts
name: string;

The player's name as the map has it

player ​

ts
player: PlayerId;

The player's id on the map

start ​

ts
start?: {
        mines: CountedThings;
        amount: number;
        trees: CountedThings;
    };

At its start (MapPlayer.start), within BUILD_REACH: the mines (resources of two cells or more) and what they hold, and the trees (the smaller ones). None for a player with no start

supply ​

ts
supply: {
        used: number;
        provided: number;
    };

The supply its units take (UnitTypeDef.supply), and what its buildings give (supplyGiven)

units ​

ts
units: CountedThings;

Its units: what moves (kind: 'unit')