Exemple #1
0
 public synchronized void vote(String u_name) {
   this.g_round_vote_count++;
   for (Player p : this.g_players) {
     if ((p.getUName()).equals(u_name)) {
       p.setVoteCount(p.getVoteCount() + 1);
     }
   }
 }
Exemple #2
0
 private void resetPlayerVoteCounts() {
   for (Player p : this.g_players) {
     p.setVoteCount(0);
   }
 }