Send player state with each player action. autofold/disconnect timeout now depends on player action timeout.

This commit is contained in:
lotodore
2011-12-17 23:34:34 +00:00
parent 7c5335f1da
commit 99616b4eed
45 changed files with 394 additions and 119 deletions
@@ -0,0 +1,60 @@
package pokerth_protocol;
//
// This file was generated by the BinaryNotes compiler.
// See http://bnotes.sourceforge.net
// Any modifications to this file will be lost upon recompilation of the source ASN.1.
//
import org.bn.*;
import org.bn.annotations.*;
import org.bn.annotations.constraints.*;
import org.bn.coders.*;
import org.bn.types.*;
@ASN1PreparedElement
@ASN1Enum (
name = "NetPlayerState"
)
public class NetPlayerState implements IASN1PreparedElement {
public enum EnumType {
@ASN1EnumItem ( name = "playerStateNormal", hasTag = true , tag = 0 )
playerStateNormal ,
@ASN1EnumItem ( name = "playerStateSessionInactive", hasTag = true , tag = 1 )
playerStateSessionInactive ,
}
private EnumType value;
private Integer integerForm;
public EnumType getValue() {
return this.value;
}
public void setValue(EnumType value) {
this.value = value;
}
public Integer getIntegerForm() {
return integerForm;
}
public void setIntegerForm(Integer value) {
integerForm = value;
}
public void initWithDefaults() {
}
private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(NetPlayerState.class);
public IASN1PreparedElementData getPreparedData() {
return preparedData;
}
}
@@ -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;
}