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

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


    EventId eid2 = new EventId(43);
   
    TableId tid = new TableId(1337);
   
    Queue<DispatchableAction<?>> queue = new LinkedList<DispatchableAction<?>>();
    SitInAnywhereAction action1 = new SitInAnywhereAction(eid1,tid,6500);
    queue.add(action1);
    BetOrRaiseAction action2 = new BetOrRaiseAction(eid2,tid,25);
    queue.add(action2);
   
    HTTPRequest request =  new HTTPRequest(queue);
View Full Code Here


  public RemoteHoldemPlayerContext sitIn(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 SitInAnywhereAction(generator.getNextID(),tableID,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.SitInAnywhereAction

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.