cloakfall
    Preparing search index...

    Interface BarPlayer

    One player, as read from the rendered page.

    interface BarPlayer {
        colour: string;
        id: string;
        index: number;
        name: string;
        own: boolean;
        placed: boolean;
        shots: number;
        status: number;
        target: boolean;
        turn: string;
    }
    Index
    colour: string
    id: string

    Who this is, whatever their position: their colour (unique within a game), else their name.

    index: number

    Position among .boards' children (0-based), which is how the stylesheet picks the board to show. It can change from turn to turn (local multiplayer puts the current player's board first), so choices are kept by id.

    name: string
    own: boolean

    This viewer's own board (role-own): never hidden, and not one to choose.

    placed: boolean

    Whether the board has a role yet (role-own/target/summary): not while ships are still being placed.

    shots: number

    Shots on this player's board so far (cells with data-shot), to follow the action.

    status: number
    target: boolean

    A board this viewer can fire at right now (role-target): only during their own turn.

    turn: string

    'attacker' while it is their turn, 'winner' at the end, '' otherwise (playerStats.ts's data-turn).