Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

disableMultiplayerForTesting: boolean = false

Set to true in testing to avoid relying on the multiplayer extension.

playerNumber: number | null = null

Functions

  • endLobbyGame(): Promise<void>
  • getCurrentPlayerNumber(): number
  • getPlayerUsername(playerNumber: number): undefined | string
  • Returns the player username at the given number in the lobby. The number is shifted by one, so that the first player has number 1.

    Parameters

    • playerNumber: number

    Returns undefined | string

  • getPlayersInLobbyCount(): number
  • handleLobbyGameEnded(): void
  • hasLobbyGameJustEnded(): boolean
  • hasLobbyGameJustStarted(): boolean
  • isLobbyGameRunning(): boolean
  • isPlayerHost(): boolean
  • openLobbiesWindow(runtimeScene: RuntimeScene): Promise<void>
  • showLobbiesCloseButton(runtimeScene: RuntimeScene, visible: boolean): void

Generated using TypeDoc