Package org.cspoker.common.elements.table

Examples of org.cspoker.common.elements.table.Table


   * Returns a short description for this table: #id and name.
   *
   * @return A short description for this table: #id and name.
   */
  public Table getShortTableInformation() {
    return new Table(getTableId(), getName());
  }
View Full Code Here


    TableId tableId = new TableId(counter.getAndIncrement());
    PokerTable table = new PokerTable(tableId, name, configuration, accountContext);
    tables.put(tableId, table);
   
    for (LobbyListener listener : lobbyListeners) {
      listener.onTableCreated(new TableCreatedEvent(accountContext.getPlayer().getMemento(), new Table(tableId, name)));
    }
   
    return table.getTableInformation();
  }
View Full Code Here

  public void removeTable(long tableId) {
    PokerTable table = tables.get(new TableId(tableId));
   
    if (table != null && table.isEmpty()) {
      tables.remove(new TableId(tableId));
      Table tableInfo = table.getShortTableInformation();
      table.terminate();
      for (LobbyListener listener : lobbyListeners) {
        listener.onTableRemoved(new TableRemovedEvent(tableInfo));
      }
    }
View Full Code Here

TOP

Related Classes of org.cspoker.common.elements.table.Table

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.