summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/view/ITablePanel.java
blob: 48eb3577117f5983f4dd6d6973e72ac57575a912 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package jrummikub.view;

import java.util.Map;

import jrummikub.model.Position;
import jrummikub.model.StoneSet;

/**
 * The view of the table, where the stone sets lie
 */
public interface ITablePanel extends IClickable {
  /**
   * Sets the player name on the left label
   * 
   * @param playerName
   *          the name to set
   */
  public void setLeftPlayerName(String playerName);

  /**
   * Sets the player name on the top label
   * 
   * @param playerName
   *          the name to set
   */
  public void setTopPlayerName(String playerName);

  /**
   * Sets the player name on the right label
   * 
   * @param playerName
   *          the name to set
   */
  public void setRightPlayerName(String playerName);

  /**
   * Sets the stone sets lying on the table
   * 
   * @param stoneSets
   *          set stone sets on the table
   */
  public void setStoneSets(Map<StoneSet, Position> stoneSets);

  /**
   * Returns the stone collection (the panel showing the stones currently
   * selected)
   * 
   * @return the stone collection
   */
  IStoneCollectionPanel getStoneCollectionPanel();
}