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); } } }
private void resetPlayerVoteCounts() { for (Player p : this.g_players) { p.setVoteCount(0); } }