Class Player

Represents a player in a game. Use a deriving class to store any per-player properties, like scores or owned objects. Use prompt to request inputs from a player.

Hierarchy

  • Player

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

cameras: CameraView[] = []
index: number
name: string
prompt: PromptHelper = ...
DEFAULT_COLORS: readonly Color[] = ...

Accessors

  • get isActive(): boolean
  • If true, it's this player's turn, and they'll have a visual indicator that they should act.

    Returns boolean

Methods

Generated using TypeDoc