added so player can winn

This commit is contained in:
Ziver Koc 2007-05-07 11:33:49 +00:00
parent 92e08382a8
commit 556e2f4866
13 changed files with 126 additions and 9 deletions

View file

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