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