Skip to main content

Class: ConnectedPlayer

Representing a connected player.

Hierarchy

  • default

    ConnectedPlayer

Methods

getID

getID(): string

Get the player's ID.

Example

player.getID(); // '5458282176661711'

Returns

string

Player ID

Inherited from

Player.getID

Defined in

models/player.ts:29


getName

getName(): string

Get the player's name.

Example

player.getName(); // 'Alpha Omega'

Returns

string

Player name

Inherited from

Player.getName

Defined in

models/player.ts:41


getPhoto

getPhoto(): string

Get the player's photo.

Example

player.getPhoto(); // A CORS supported URL to user's photo

Returns

string

URL of player photo

Inherited from

Player.getPhoto

Defined in

models/player.ts:55


hasPlayed

hasPlayed(): boolean

Get info about if the player has played the game.

Example

player.hasPlayed();  

Returns

boolean

True if the player has played the game

Inherited from

Player.hasPlayed

Defined in

models/player.ts:67