added so player can winn
This commit is contained in:
parent
92e08382a8
commit
556e2f4866
13 changed files with 126 additions and 9 deletions
|
|
@ -64,6 +64,7 @@ public class PlayerHandler {
|
|||
}
|
||||
|
||||
public void update(){
|
||||
//****** ECONOMY **************
|
||||
// sends the funds to the players
|
||||
fundsTimmer++;
|
||||
if(fundsTimmer >= fundsDelay){
|
||||
|
|
@ -79,9 +80,15 @@ public class PlayerHandler {
|
|||
}
|
||||
fundsTimmer = 0;
|
||||
}
|
||||
//*******************************
|
||||
// updates the players
|
||||
for(int i=0; i<players.size() ;i++){
|
||||
players.get(i).update();
|
||||
if(players.get(i).defeated()){
|
||||
players.get(i).kilAll();
|
||||
}
|
||||
else{
|
||||
players.get(i).update();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue