Class representing a match.

See MatchValues for detailed descriptions of properties.

Constructors

Properties

Accessors

Constructors

  • Create a new match.

    Parameters

    • id: string
    • round: number
    • match: number

    Returns Match

Properties

active: boolean

If the match is active

bye: boolean

If the match is a bye

id: string

Unique ID of the match

match: number

Match number for the match

meta: {
    [key: string]: any;
}

Any extra information

Type declaration

  • [key: string]: any
path: {
    loss: string;
    win: string;
}

Next match for winners and losers

Type declaration

  • loss: string

    ID of the next match for the loser of the current match (or null if none).

  • win: string

    ID of the next match for the winner of the current match (or null if none).

player1: {
    draw: number;
    id: string;
    loss: number;
    win: number;
}

Details for player one

Type declaration

  • draw: number

    Number of draws.

  • id: string

    ID for player one (or null if no player assigned).

  • loss: number

    Number of losses for player one.

  • win: number

    Number of wins for player one.

player2: {
    draw: number;
    id: string;
    loss: number;
    win: number;
}

Details for player two

Type declaration

  • draw: number

    Number of draws for player two.

  • id: string

    ID for player two (or null if no player assigned).

  • loss: number

    Number of losses for player two.

  • win: number

    Number of wins for player two.

round: number

Round number for the match

Accessors

  • set values(options): void
  • Set information about the match (only changes in information need to be included in the object)

    Parameters

    Returns void