Update Spiel.java

This commit is contained in:
delta1805 2017-09-21 12:58:32 +02:00 committed by GitHub
parent 3cc0906d8f
commit a0a3604f21
1 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,14 @@ public class Spiel {
this.schiri = s; this.schiri = s;
ballBesitz = ((int) Math.random()) == 0 ? true : false; ballBesitz = ((int) Math.random()) == 0 ? true : false;
spielzeit = 0; spielzeit = 0;
heimteam.setPositions(true);
auswärtsteam.setPositions(false);
b = new Ball();
if(ballBesitz){
b.s = heimteam.spieler[9];
}else{
b.s = auswärtsteam.spieler[9];
}
} }
public void tick() { public void tick() {