This commit is contained in:
GordonDaFreeman 2017-09-24 23:17:50 +02:00
parent 0c79ef9b7e
commit 8fb4e83115
1 changed files with 33 additions and 35 deletions

View File

@ -55,7 +55,8 @@ public class Spiel {
}
for (Spieler s : ballteam.spieler) {
double d = s.geschwindigkeit;
if(s.hasBall()) d-=1;
if (s.hasBall())
d -= 1;
s.p.moveTo(nichtballteam.torwart.p, d);
System.out.println(s.getname() + " läuft!");
}
@ -90,11 +91,9 @@ public class Spiel {
g.takeBall(s);
s.motivation -= 20;
ballWechsel();
}
if (rng < 90) {
} else if (rng < 90) {
}
if (rng < 101) {
} else if (rng < 101) {
Spieler t = null;
double d = 200;
for (Spieler temp : ballteam.spieler) {
@ -234,5 +233,4 @@ public class Spiel {
return r;
}
}