summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-16 22:09:56 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-16 22:09:56 +0200
commita4f5beb00598f577598a0e39e4e1099d9ea6e1e6 (patch)
treec83ad081123ae493ad7945a30a10dab92a344f3f /src/jrummikub/control
parent604ef91282ad234130b1d46569efd486ab6c5024 (diff)
downloadJRummikub-a4f5beb00598f577598a0e39e4e1099d9ea6e1e6.tar
JRummikub-a4f5beb00598f577598a0e39e4e1099d9ea6e1e6.zip
Move getHandPanel from IPlayerPanel to IView
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@245 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control')
-rw-r--r--src/jrummikub/control/TurnControl.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/jrummikub/control/TurnControl.java b/src/jrummikub/control/TurnControl.java
index 4652ea7..4140b57 100644
--- a/src/jrummikub/control/TurnControl.java
+++ b/src/jrummikub/control/TurnControl.java
@@ -98,15 +98,15 @@ public class TurnControl {
}
}));
- view.getPlayerPanel().getHandPanel().setStones(hand.clone());
- view.getPlayerPanel().getHandPanel().resetCurrentRow();
+ view.getHandPanel().setStones(hand.clone());
+ view.getHandPanel().resetCurrentRow();
view.enableStartTurnPanel(false);
timer.startTimer();
}
private void addHandPanelHandlers() {
- connections.add(view.getPlayerPanel().getHandPanel().getClickEvent()
+ connections.add(view.getHandPanel().getClickEvent()
.add(new IListener1<Position>() {
@Override
public void handle(Position pos) {
@@ -114,7 +114,7 @@ public class TurnControl {
}
}));
- connections.add(view.getPlayerPanel().getHandPanel().getStoneClickEvent()
+ connections.add(view.getHandPanel().getStoneClickEvent()
.add(new IListener2<Stone, Boolean>() {
@Override
@@ -123,7 +123,7 @@ public class TurnControl {
}
}));
- connections.add(view.getPlayerPanel().getHandPanel().getRangeClickEvent()
+ connections.add(view.getHandPanel().getRangeClickEvent()
.add(new IListener2<Stone, Boolean>() {
@Override
@@ -227,7 +227,7 @@ public class TurnControl {
i++;
}
view.setSelectedStones(selectedStones);
- view.getPlayerPanel().getHandPanel().setStones(hand);
+ view.getHandPanel().setStones(hand);
}
private void sortStones(Comparator<Stone> comparator) {
@@ -250,7 +250,7 @@ public class TurnControl {
}
}
- view.getPlayerPanel().getHandPanel().setStones(hand);
+ view.getHandPanel().setStones(hand);
}
private void sortByRuns() {
@@ -307,7 +307,7 @@ public class TurnControl {
selectedStones.clear();
view.getTablePanel().setStoneSets(table);
- view.getPlayerPanel().getHandPanel().setStones(hand);
+ view.getHandPanel().setStones(hand);
view.setSelectedStones(selectedStones);
}
@@ -433,7 +433,7 @@ public class TurnControl {
selectedStones.clear();
view.getTablePanel().setStoneSets(table);
- view.getPlayerPanel().getHandPanel().setStones(hand);
+ view.getHandPanel().setStones(hand);
view.setSelectedStones(selectedStones);
}