Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.69 KB | None | 0 0
  1. int i = 0;
  2.         if(this.activeGame.getHuman() instanceof Mafia && humanAtPos.isAlive()) {
  3.             if(this.humanVote==-1){
  4.                 MainController.appendStr("Humans time to vote who to kill: ");
  5.                 return 4;
  6.             }
  7.             tmpHuman = (HumanPlayer)humanAtPos;
  8.             vote = tmpHuman.mafiaVote();
  9.             this.setHumanVote(humanVote);
  10.             this.setVoteHistogram(this.humanVote);
  11.             i=1;
  12.         }
  13.        
  14.         for(; i<this.activeGame.getMafiaCount(); i++) {
  15.             tmpPlayer = tmpList.get((mafia.get(i) ));
  16.             tmpMaf = (Mafia) tmpPlayer;
  17.            
  18.             if(tmpMaf.isAlive()) {
  19.                 vote = tmpMaf.voteNight(this.getVoteHistogram(), this.getHumanVote());
  20.                 System.out.println("Mafia vote: " + vote );
  21.                 this.setVoteHistogram(vote);
  22.             }
  23.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement