This commit is contained in:
Delta1805 2017-09-20 19:04:51 +02:00
parent b82738b505
commit 8184bbc5f8
1 changed files with 0 additions and 5 deletions

View File

@ -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;
} }
} }