Class

class Player


Player Variables

VariableTable

VariableData TypeDescriptionValidation
nameStringStores the name of the player to be displayed on the table.This is only changed using a validated user input, which ensures it’s a String, that it isn’t a duplicate name and that it’s not too long (rather than a character limit, this is based on the length of the characters to ensure the entire name can be displayed on screen).
statusPlayerStatusStores the current status of the player (e.g. IDLE, BET_MATCHED, FOLDED).The only changes that can occur to this variable are managed by validated helper functions within Player, Players and the TableDataViewModel, to ensure that only the correct data type is given.
balanceIntStores the current chip count in the player’s possession.The only changes that can occur to this variable are managed by validated helper functions within Player and Players, to ensure that only the correct data type is given.
currentBetIntStores the current bet amount made by the player.The only changes that can occur to this variable are managed by validated helper functions within Player, to ensure that only the correct data type is given.