Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int i = 0;
- if(this.activeGame.getHuman() instanceof Mafia && humanAtPos.isAlive()) {
- if(this.humanVote==-1){
- MainController.appendStr("Humans time to vote who to kill: ");
- return 4;
- }
- tmpHuman = (HumanPlayer)humanAtPos;
- vote = tmpHuman.mafiaVote();
- this.setHumanVote(humanVote);
- this.setVoteHistogram(this.humanVote);
- i=1;
- }
- for(; i<this.activeGame.getMafiaCount(); i++) {
- tmpPlayer = tmpList.get((mafia.get(i) ));
- tmpMaf = (Mafia) tmpPlayer;
- if(tmpMaf.isAlive()) {
- vote = tmpMaf.voteNight(this.getVoteHistogram(), this.getHumanVote());
- System.out.println("Mafia vote: " + vote );
- this.setVoteHistogram(vote);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement