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

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


    } catch (IllegalActionException e) {
      throw new IllegalActionException("Joining table " + mediatingTable.getTableId().toString()
          + " is not a valid action." + e.getMessage());
    }
    player.setSittingIn(true);
    mediatingTable.publishSitInEvent(new SitInEvent(player.getMemento()));
    return new HoldemPlayerContextImpl(player, mediatingTable);
   
  }
View Full Code Here


      game.sitIn(seatId, player);
    } catch (SeatTakenException e) {
      throw new IllegalActionException(e.getMessage());
    }

    mediatingTable.publishSitInEvent(new SitInEvent(player.getMemento()));
    return new HoldemPlayerContextImpl(player, mediatingTable);
  }
View Full Code Here

      Iterator<SeatedPlayer> iter = arrivedPlayers.iterator();
      while(iter.hasNext()){
        SeatedPlayer sitter = iter.next();
        if(sitter.getId().equals(id)) {
          // set the sitting in flag to true
          dispatch(new SitInEvent(new SeatedPlayer(sitter, true)));
          return;
        }
      }
      throw new IllegalStateException();
    }
View Full Code Here

TOP

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

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.