diff --git a/tests/src/pokerth_protocol/GameStartMessage.java b/tests/src/pokerth_protocol/GameStartMessage.java index 742e4428..0715031f 100644 --- a/tests/src/pokerth_protocol/GameStartMessage.java +++ b/tests/src/pokerth_protocol/GameStartMessage.java @@ -35,19 +35,83 @@ import org.bn.types.*; private NonZeroId startDealerPlayerId = null; -@ASN1SequenceOf( name = "playerSeats", isSetOf = false ) - - @ASN1ValueRangeConstraint ( - - min = 2L, - - max = 10L - - ) - - @ASN1Element ( name = "playerSeats", isOptional = false , hasTag = false , hasDefaultValue = false ) + + @ASN1PreparedElement + @ASN1Choice ( name = "gameStartMode" ) + public static class GameStartModeChoiceType implements IASN1PreparedElement { + + @ASN1Element ( name = "gameStartModeInitial", isOptional = false , hasTag = true, tag = 0 , hasDefaultValue = false ) - private java.util.Collection playerSeats = null; + private GameStartModeInitial gameStartModeInitial = null; + + + @ASN1Element ( name = "gameStartModeRejoin", isOptional = false , hasTag = true, tag = 1 , hasDefaultValue = false ) + + private GameStartModeRejoin gameStartModeRejoin = null; + + + + public GameStartModeInitial getGameStartModeInitial () { + return this.gameStartModeInitial; + } + + public boolean isGameStartModeInitialSelected () { + return this.gameStartModeInitial != null; + } + + private void setGameStartModeInitial (GameStartModeInitial value) { + this.gameStartModeInitial = value; + } + + + public void selectGameStartModeInitial (GameStartModeInitial value) { + this.gameStartModeInitial = value; + + setGameStartModeRejoin(null); + + } + + + + + public GameStartModeRejoin getGameStartModeRejoin () { + return this.gameStartModeRejoin; + } + + public boolean isGameStartModeRejoinSelected () { + return this.gameStartModeRejoin != null; + } + + private void setGameStartModeRejoin (GameStartModeRejoin value) { + this.gameStartModeRejoin = value; + } + + + public void selectGameStartModeRejoin (GameStartModeRejoin value) { + this.gameStartModeRejoin = value; + + setGameStartModeInitial(null); + + } + + + + + public void initWithDefaults() { + } + + public IASN1PreparedElementData getPreparedData() { + return preparedData_GameStartModeChoiceType; + } + + private static IASN1PreparedElementData preparedData_GameStartModeChoiceType = CoderFactory.getInstance().newPreparedElementData(GameStartModeChoiceType.class); + + } + + + @ASN1Element ( name = "gameStartMode", isOptional = false , hasTag = false , hasDefaultValue = false ) + + private GameStartModeChoiceType gameStartMode = null; @@ -75,14 +139,14 @@ import org.bn.types.*; - public java.util.Collection getPlayerSeats () { - return this.playerSeats; + public GameStartModeChoiceType getGameStartMode () { + return this.gameStartMode; } - public void setPlayerSeats (java.util.Collection value) { - this.playerSeats = value; + public void setGameStartMode (GameStartModeChoiceType value) { + this.gameStartMode = value; } diff --git a/tests/src/pokerth_protocol/GameStartModeInitial.java b/tests/src/pokerth_protocol/GameStartModeInitial.java new file mode 100644 index 00000000..75ee0481 --- /dev/null +++ b/tests/src/pokerth_protocol/GameStartModeInitial.java @@ -0,0 +1,62 @@ + +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 + @ASN1Sequence ( name = "GameStartModeInitial", isSet = false ) + public class GameStartModeInitial implements IASN1PreparedElement { + +@ASN1SequenceOf( name = "playerSeats", isSetOf = false ) + + @ASN1ValueRangeConstraint ( + + min = 2L, + + max = 10L + + ) + + @ASN1Element ( name = "playerSeats", isOptional = false , hasTag = false , hasDefaultValue = false ) + + private java.util.Collection playerSeats = null; + + + + public java.util.Collection getPlayerSeats () { + return this.playerSeats; + } + + + + public void setPlayerSeats (java.util.Collection value) { + this.playerSeats = value; + } + + + + + public void initWithDefaults() { + + } + + private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameStartModeInitial.class); + public IASN1PreparedElementData getPreparedData() { + return preparedData; + } + + + } + \ No newline at end of file diff --git a/tests/src/pokerth_protocol/GameStartModeRejoin.java b/tests/src/pokerth_protocol/GameStartModeRejoin.java new file mode 100644 index 00000000..f0ed8731 --- /dev/null +++ b/tests/src/pokerth_protocol/GameStartModeRejoin.java @@ -0,0 +1,62 @@ + +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 + @ASN1Sequence ( name = "GameStartModeRejoin", isSet = false ) + public class GameStartModeRejoin implements IASN1PreparedElement { + +@ASN1SequenceOf( name = "rejoinPlayerData", isSetOf = false ) + + @ASN1ValueRangeConstraint ( + + min = 2L, + + max = 10L + + ) + + @ASN1Element ( name = "rejoinPlayerData", isOptional = false , hasTag = false , hasDefaultValue = false ) + + private java.util.Collection rejoinPlayerData = null; + + + + public java.util.Collection getRejoinPlayerData () { + return this.rejoinPlayerData; + } + + + + public void setRejoinPlayerData (java.util.Collection value) { + this.rejoinPlayerData = value; + } + + + + + public void initWithDefaults() { + + } + + private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(GameStartModeRejoin.class); + public IASN1PreparedElementData getPreparedData() { + return preparedData; + } + + + } + \ No newline at end of file diff --git a/tests/src/pokerth_protocol/InitAckMessage.java b/tests/src/pokerth_protocol/InitAckMessage.java index e895d563..c806873e 100644 --- a/tests/src/pokerth_protocol/InitAckMessage.java +++ b/tests/src/pokerth_protocol/InitAckMessage.java @@ -40,6 +40,11 @@ import org.bn.types.*; private AvatarHash yourAvatar = null; + @ASN1Element ( name = "rejoinGameId", isOptional = true , hasTag = false , hasDefaultValue = false ) + + private NonZeroId rejoinGameId = null; + + public Guid getYourSessionId () { return this.yourSessionId; @@ -80,6 +85,22 @@ import org.bn.types.*; } + + public NonZeroId getRejoinGameId () { + return this.rejoinGameId; + } + + + public boolean isRejoinGameIdPresent () { + return this.rejoinGameId != null; + } + + + public void setRejoinGameId (NonZeroId value) { + this.rejoinGameId = value; + } + + public void initWithDefaults() { diff --git a/tests/src/pokerth_protocol/InitMessage.java b/tests/src/pokerth_protocol/InitMessage.java index 865ce038..3bcb2a2c 100644 --- a/tests/src/pokerth_protocol/InitMessage.java +++ b/tests/src/pokerth_protocol/InitMessage.java @@ -36,6 +36,11 @@ import org.bn.types.*; private Long buildId = null; + @ASN1Element ( name = "myLastSessionId", isOptional = false , hasTag = false , hasDefaultValue = false ) + + private Guid myLastSessionId = null; + + @ASN1PreparedElement @ASN1Choice ( name = "login" ) @@ -174,6 +179,18 @@ import org.bn.types.*; + public Guid getMyLastSessionId () { + return this.myLastSessionId; + } + + + + public void setMyLastSessionId (Guid value) { + this.myLastSessionId = value; + } + + + public LoginChoiceType getLogin () { return this.login; } diff --git a/tests/src/pokerth_protocol/JoinGameFailed.java b/tests/src/pokerth_protocol/JoinGameFailed.java index 6fdcabd3..c38d36bd 100644 --- a/tests/src/pokerth_protocol/JoinGameFailed.java +++ b/tests/src/pokerth_protocol/JoinGameFailed.java @@ -47,6 +47,8 @@ import org.bn.types.*; invalidSettings , @ASN1EnumItem ( name = "ipAddressBlocked", hasTag = true , tag = 10 ) ipAddressBlocked , + @ASN1EnumItem ( name = "rejoinFailed", hasTag = true , tag = 11 ) + rejoinFailed , } private EnumType value; diff --git a/tests/src/pokerth_protocol/JoinGameRequestMessage.java b/tests/src/pokerth_protocol/JoinGameRequestMessage.java index a6b004eb..4f271f08 100644 --- a/tests/src/pokerth_protocol/JoinGameRequestMessage.java +++ b/tests/src/pokerth_protocol/JoinGameRequestMessage.java @@ -40,6 +40,11 @@ import org.bn.types.*; private JoinNewGame joinNewGame = null; + @ASN1Element ( name = "rejoinExistingGame", isOptional = false , hasTag = true, tag = 2 , hasDefaultValue = false ) + + private RejoinExistingGame rejoinExistingGame = null; + + public JoinExistingGame getJoinExistingGame () { return this.joinExistingGame; @@ -58,6 +63,8 @@ import org.bn.types.*; this.joinExistingGame = value; setJoinNewGame(null); + + setRejoinExistingGame(null); } @@ -81,6 +88,33 @@ import org.bn.types.*; this.joinNewGame = value; setJoinExistingGame(null); + + setRejoinExistingGame(null); + + } + + + + + public RejoinExistingGame getRejoinExistingGame () { + return this.rejoinExistingGame; + } + + public boolean isRejoinExistingGameSelected () { + return this.rejoinExistingGame != null; + } + + private void setRejoinExistingGame (RejoinExistingGame value) { + this.rejoinExistingGame = value; + } + + + public void selectRejoinExistingGame (RejoinExistingGame value) { + this.rejoinExistingGame = value; + + setJoinExistingGame(null); + + setJoinNewGame(null); } diff --git a/tests/src/pokerth_protocol/RejoinExistingGame.java b/tests/src/pokerth_protocol/RejoinExistingGame.java new file mode 100644 index 00000000..3d809370 --- /dev/null +++ b/tests/src/pokerth_protocol/RejoinExistingGame.java @@ -0,0 +1,52 @@ + +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 + @ASN1Sequence ( name = "RejoinExistingGame", isSet = false ) + public class RejoinExistingGame implements IASN1PreparedElement { + + @ASN1Element ( name = "gameId", isOptional = false , hasTag = false , hasDefaultValue = false ) + + private NonZeroId gameId = null; + + + + public NonZeroId getGameId () { + return this.gameId; + } + + + + public void setGameId (NonZeroId value) { + this.gameId = value; + } + + + + + public void initWithDefaults() { + + } + + private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(RejoinExistingGame.class); + public IASN1PreparedElementData getPreparedData() { + return preparedData; + } + + + } + \ No newline at end of file diff --git a/tests/src/pokerth_protocol/RejoinPlayerData.java b/tests/src/pokerth_protocol/RejoinPlayerData.java new file mode 100644 index 00000000..e2f3a9c8 --- /dev/null +++ b/tests/src/pokerth_protocol/RejoinPlayerData.java @@ -0,0 +1,77 @@ + +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 + @ASN1Sequence ( name = "RejoinPlayerData", isSet = false ) + public class RejoinPlayerData implements IASN1PreparedElement { + + @ASN1Element ( name = "playerId", isOptional = false , hasTag = false , hasDefaultValue = false ) + + private NonZeroId playerId = null; + + @ASN1Integer( name = "" ) + @ASN1ValueRangeConstraint ( + + min = 0L, + + max = 10000000L + + ) + + @ASN1Element ( name = "playerMoney", isOptional = false , hasTag = false , hasDefaultValue = false ) + + private Integer playerMoney = null; + + + + public NonZeroId getPlayerId () { + return this.playerId; + } + + + + public void setPlayerId (NonZeroId value) { + this.playerId = value; + } + + + + public Integer getPlayerMoney () { + return this.playerMoney; + } + + + + public void setPlayerMoney (Integer value) { + this.playerMoney = value; + } + + + + + public void initWithDefaults() { + + } + + private static IASN1PreparedElementData preparedData = CoderFactory.getInstance().newPreparedElementData(RejoinPlayerData.class); + public IASN1PreparedElementData getPreparedData() { + return preparedData; + } + + + } + \ No newline at end of file