Oh boi
This commit is contained in:
parent
b82738b505
commit
8184bbc5f8
|
|
@ -9,16 +9,11 @@ public class Team {
|
||||||
Torwart torwart;
|
Torwart torwart;
|
||||||
int siege;
|
int siege;
|
||||||
|
|
||||||
|
|
||||||
public Team(){
|
|
||||||
|
|
||||||
|
|
||||||
public boolean isInTeam(Person p){
|
public boolean isInTeam(Person p){
|
||||||
for(Person pp:spieler){
|
for(Person pp:spieler){
|
||||||
if(p.equals(pp)) return true;
|
if(p.equals(pp)) return true;
|
||||||
}
|
}
|
||||||
if(torwart.equals(p)) return true;
|
if(torwart.equals(p)) return true;
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue