shortened tor()

This commit is contained in:
delta1805 2017-09-24 23:01:05 +02:00
parent 57510917ec
commit 239ad51f0f
1 changed files with 3 additions and 5 deletions

View File

@ -204,20 +204,18 @@ public class Spiel {
heimteam.tore++;
System.out.println("Heimteam punktet!");
ballWechsel();
auswärtsteam.spieler[9].takeBall(b.s);
heimteam.setPositions(true);
auswärtsteam.setPositions(false);
}else{
auswärtsteam.tore++;
System.out.println("Auswärtsteam punktet!");
ballWechsel();
heimteam.spieler[9].takeBall(b.s);
heimteam.setPositions(true);
auswärtsteam.setPositions(false);
}
if(ballBesitz){
b.s = heimteam.spieler[9];
}else{
b.s = auswärtsteam.spieler[9];
}
}
public void ballWechsel(){