added so player can winn
This commit is contained in:
parent
92e08382a8
commit
556e2f4866
13 changed files with 126 additions and 9 deletions
|
|
@ -57,5 +57,16 @@ public abstract class Player {
|
|||
}
|
||||
}
|
||||
|
||||
public void kilAll(){
|
||||
for(int i=0; i<units.size() ;i++){
|
||||
units.get(i).destroyed();
|
||||
units.get(i).remove();
|
||||
}
|
||||
}
|
||||
|
||||
public abstract Building getCC();
|
||||
|
||||
public abstract boolean defeated();
|
||||
|
||||
public abstract void endGame(int status);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue