shortened tor()
This commit is contained in:
parent
57510917ec
commit
239ad51f0f
|
|
@ -204,20 +204,18 @@ public class Spiel {
|
||||||
heimteam.tore++;
|
heimteam.tore++;
|
||||||
System.out.println("Heimteam punktet!");
|
System.out.println("Heimteam punktet!");
|
||||||
ballWechsel();
|
ballWechsel();
|
||||||
|
auswärtsteam.spieler[9].takeBall(b.s);
|
||||||
heimteam.setPositions(true);
|
heimteam.setPositions(true);
|
||||||
auswärtsteam.setPositions(false);
|
auswärtsteam.setPositions(false);
|
||||||
}else{
|
}else{
|
||||||
auswärtsteam.tore++;
|
auswärtsteam.tore++;
|
||||||
System.out.println("Auswärtsteam punktet!");
|
System.out.println("Auswärtsteam punktet!");
|
||||||
ballWechsel();
|
ballWechsel();
|
||||||
|
heimteam.spieler[9].takeBall(b.s);
|
||||||
heimteam.setPositions(true);
|
heimteam.setPositions(true);
|
||||||
auswärtsteam.setPositions(false);
|
auswärtsteam.setPositions(false);
|
||||||
}
|
}
|
||||||
if(ballBesitz){
|
|
||||||
b.s = heimteam.spieler[9];
|
|
||||||
}else{
|
|
||||||
b.s = auswärtsteam.spieler[9];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ballWechsel(){
|
public void ballWechsel(){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue