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