Members
currentGame :Game
Reference to current game
Type:
currentMatch :Match
Reference to current match
Type:
currentPieceType :PieceType
Player's piece type for current game
Type:
currentRule :Rule
Reference to rule for current game
Type:
id :number
Unique ID
Type:
- number
name :string
Username
Type:
- string
socketID :string
ID of player's socket
Type:
- string
stats :PlayerStats
Player's statistics
Type:
Methods
(static) createNew() → {Player}
Create new player object with unique ID.
Player object is not saved to database.
Returns:
- New player object
- Type
- Player