Send player state with each player action. autofold/disconnect timeout now depends on player action timeout.
This commit is contained in:
@@ -45,6 +45,11 @@ import org.bn.types.*;
|
||||
private NetPlayerAction playerAction = null;
|
||||
|
||||
|
||||
@ASN1Element ( name = "playerState", isOptional = false , hasTag = false , hasDefaultValue = false )
|
||||
|
||||
private NetPlayerState playerState = null;
|
||||
|
||||
|
||||
@ASN1Element ( name = "totalPlayerBet", isOptional = false , hasTag = false , hasDefaultValue = false )
|
||||
|
||||
private AmountOfMoney totalPlayerBet = null;
|
||||
@@ -114,6 +119,18 @@ import org.bn.types.*;
|
||||
|
||||
|
||||
|
||||
public NetPlayerState getPlayerState () {
|
||||
return this.playerState;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void setPlayerState (NetPlayerState value) {
|
||||
this.playerState = value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public AmountOfMoney getTotalPlayerBet () {
|
||||
return this.totalPlayerBet;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user