Show heap size in side panel
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@497 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
9df5497276
commit
ec54bde90a
5 changed files with 107 additions and 36 deletions
|
@ -203,12 +203,15 @@ public class RoundControl {
|
|||
}
|
||||
|
||||
void deal() {
|
||||
view.getSidePanel().setHeapCapacity(roundState.getGameHeap().getSize());
|
||||
for (int i = 0; i < roundState.getPlayerCount(); i++) {
|
||||
IHand hand = roundState.getNthNextPlayer(i).getHand();
|
||||
for (int j = 0; j < roundState.getGameSettings().getNumberOfStonesDealt(); j++) {
|
||||
hand.drop(roundState.getGameHeap().drawStone(), new Position(0, 0));
|
||||
}
|
||||
}
|
||||
view.getSidePanel().setHeapSize(roundState.getGameHeap().getSize());
|
||||
|
||||
}
|
||||
|
||||
private boolean laidOutValidPoints() {
|
||||
|
@ -392,6 +395,8 @@ public class RoundControl {
|
|||
hand.drop(roundState.getGameHeap().drawStone(), new Position(
|
||||
Hand.WIDTH - 1, rowCount - 1));
|
||||
}
|
||||
|
||||
view.getSidePanel().setHeapSize(roundState.getGameHeap().getSize());
|
||||
}
|
||||
|
||||
private void dealStone() {
|
||||
|
|
Reference in a new issue