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

Examples of org.cspoker.common.api.lobby.holdemtable.action.SitInAction


  public RemoteHoldemPlayerContext sitIn(SeatId seatId, int amount,
      HoldemPlayerListener holdemPlayerListener) throws RemoteException,
      IllegalActionException {
    if(playerContext.compareAndSet(null, new XmlRemoteHoldemPlayerContext(performer,generator,tableID, stalePlayerContextTrigger))){
      serverListenerTree.getLobbyListenerTree().getHoldemTableListenerTree(tableID).setHoldemPlayerListener(holdemPlayerListener);
      performer.perform(new SitInAction(generator.getNextID(),tableID,seatId,amount));
      return playerContext.get();
    }
    throw new IllegalActionException("Already seated at table #"+tableID+".");
   
  }
View Full Code Here

TOP

Related Classes of org.cspoker.common.api.lobby.holdemtable.action.SitInAction

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.