Package org.cspoker.common.api.lobby.holdemtable.event

Examples of org.cspoker.common.api.lobby.holdemtable.event.CallEvent


    }
   
    // Change to next player
    game.nextPlayer();
   
    gameMediator.publishCallEvent(new CallEvent(player.getId(),movedAmount));
    BettingRound.logger.info(player.getName() + " calls.");
  }
View Full Code Here


    GameState state;
    if (stack <= largestBet - bet) {
      state = new AllInState(gameState, new AllInEvent(actor, stack));
    } else {
      state = new CallState(gameState, new CallEvent(actor, largestBet - bet));
    }
    return state;
  }
View Full Code Here

    public void onCall(Call call) {
      PlayerId id = getId(call);
      int movedAmount = getGameState().getCallValue(id);
      if(movedAmount == getGameState().getPlayer(id).getStack())
        dispatch(new AllInEvent(id, movedAmount));
      else dispatch(new CallEvent(id, movedAmount));
    }
View Full Code Here

TOP

Related Classes of org.cspoker.common.api.lobby.holdemtable.event.CallEvent

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.