Package de.pokerth.protocol.ProtoBuf

Examples of de.pokerth.protocol.ProtoBuf.MyActionRequestMessage


        assertTrue(card2 < 52);
        assertTrue(card2 >= 0);
      }
      else if (msg.hasPlayersTurnMessage()) {
        if (msg.getPlayersTurnMessage().getPlayerId() == firstPlayerId) {
          MyActionRequestMessage myRequest = MyActionRequestMessage.newBuilder()
            .setGameId(gameId)
            .setGameState(msg.getPlayersTurnMessage().getGameState())
            .setHandNum(handNum)
            .setMyAction(NetPlayerAction.netActionAllIn)
            .setMyRelativeBet(0)
            .build();
          PokerTHMessage outMsg = PokerTHMessage.newBuilder()
            .setMessageType(PokerTHMessageType.Type_MyActionRequestMessage)
            .setMyActionRequestMessage(myRequest)
            .build();
          sendMessage(outMsg);
        }
      }
      for (int i = 0; i < 9; i++) {
        while (s[i].getInputStream().available() > 0) {
          PokerTHMessage inMsg = receiveMessage(s[i]);
          failOnErrorMessage(inMsg);
          if (inMsg.hasPlayersTurnMessage()) {
            if (inMsg.getPlayersTurnMessage().getPlayerId() == playerId[i]) {

              MyActionRequestMessage myRequest = MyActionRequestMessage.newBuilder()
                .setGameId(gameId)
                .setGameState(inMsg.getPlayersTurnMessage().getGameState())
                .setHandNum(handNum)
                .setMyAction(NetPlayerAction.netActionFold)
                .setMyRelativeBet(0)
View Full Code Here


          if (msg.hasHandStartMessage()) {
            handNum[i / 10]++;
          }
          else if (msg.hasPlayersTurnMessage()) {
            if (msg.getPlayersTurnMessage().getPlayerId() == playerId[i / 10]) {
              MyActionRequestMessage myRequest = MyActionRequestMessage.newBuilder()
                .setGameId(gameId[i / 10])
                .setGameState(msg.getPlayersTurnMessage().getGameState())
                .setHandNum(handNum[i / 10])
                .setMyAction(NetPlayerAction.netActionAllIn)
                .setMyRelativeBet(0)
View Full Code Here

TOP

Related Classes of de.pokerth.protocol.ProtoBuf.MyActionRequestMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.