Skip to main content

Class: Player

Hierarchy

  • Schema

    Player

    ↳↳ Bot

Implements

  • PlayerDefinition

Constructors

constructor

new Player(options)

Parameters

NameType
optionsPlayerOptions

Overrides

Schema.constructor

Other Properties

isTapDragging

isTapDragging: boolean = false

Is player currently using tap events to play a drag action? (accessibility dragging fallback)


Player Properties

clientID

clientID: string

Implementation of

PlayerDefinition.clientID


hasEntityInMainFocus

Readonly hasEntityInMainFocus: boolean = false

Automatically applied after any entity this player owns has their ownersMainFocus set to true.

Don't change manually.

Implementation of

PlayerDefinition.hasEntityInMainFocus


name

name: string

Implementation of

PlayerDefinition.name


score

score: number = 0

Implementation of

PlayerDefinition.score


timeLeft

timeLeft: number = -1

Utilize this in a time-sensitive game

Implementation of

PlayerDefinition.timeLeft