Make NetworkRoundControl test work
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@496 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
890051a3e9
commit
9df5497276
6 changed files with 109 additions and 83 deletions
|
@ -97,7 +97,11 @@ public abstract class AbstractTurnControl implements ITurnControl {
|
|||
}
|
||||
|
||||
protected void cleanUp() {
|
||||
timer.stopTimer();
|
||||
if (timer != null) {
|
||||
timer.stopTimer();
|
||||
}
|
||||
started = true;
|
||||
|
||||
for (Connection c : connections) {
|
||||
c.remove();
|
||||
}
|
||||
|
|
|
@ -90,7 +90,6 @@ public class HumanTurnControl extends AbstractTurnControl {
|
|||
|
||||
connections.add(view.getPlayerPanel().getEndTurnEvent()
|
||||
.add(new IListener() {
|
||||
|
||||
@Override
|
||||
public void handle() {
|
||||
endOfTurn(false);
|
||||
|
|
Reference in a new issue