never seen that
This commit is contained in:
parent
c68897c5d1
commit
a2405abab4
|
|
@ -148,10 +148,6 @@ public class Spiel {
|
||||||
}
|
}
|
||||||
if (weiter) {
|
if (weiter) {
|
||||||
double tordis = s.p.getDistance(nichtballteam.torwart.p);
|
double tordis = s.p.getDistance(nichtballteam.torwart.p);
|
||||||
if(tordis <10){
|
|
||||||
tor();
|
|
||||||
}else{
|
|
||||||
tordis = s.p.getDistance(nichtballteam.torwart.p);
|
|
||||||
Spieler t = null;
|
Spieler t = null;
|
||||||
boolean ss = false;
|
boolean ss = false;
|
||||||
for (Spieler m : ballteam.spieler) {
|
for (Spieler m : ballteam.spieler) {
|
||||||
|
|
@ -182,7 +178,7 @@ public class Spiel {
|
||||||
t.takeBall(s);
|
t.takeBall(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -191,11 +187,11 @@ public class Spiel {
|
||||||
|
|
||||||
public void torPhase(){
|
public void torPhase(){
|
||||||
if(ballBesitz){
|
if(ballBesitz){
|
||||||
if(b.s.p.getDistance(auswärtsteam.torwart.p)<20){
|
if(b.s.p.getDistance(auswärtsteam.torwart.p)<5){
|
||||||
tor();
|
tor();
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if(b.s.p.getDistance(heimteam.torwart.p)<20){
|
if(b.s.p.getDistance(heimteam.torwart.p)<5){
|
||||||
tor();
|
tor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue