package mafiaserver;

/**
 * VoteSequence.java
 * Contains the VoteSequence class
 * @author Cory Gehr (cmg5573)
 */
public class VoteSequence extends Thread {
    
}

@@ -15,16 +15,43 @@
 erver;%0A%0A
+import java.util.HashMap;%0A%0A
 /**%0A * V
@@ -185,10 +185,696 @@
  %7B%0A    %0A
+    private final HashMap%3CString, String%3E votes; // List of votes%0A    %0A    /**%0A     * VoteSequence()%0A     * Constructor for the VoteSequence class%0A     */%0A    public VoteSequence() %7B%0A        this.votes = new HashMap();%0A    %7D%0A    %0A    /**%0A     * addVote()%0A     * Adds a vote for a player%0A     * @param client Player Voting%0A     * @param vote Vote Value%0A     */%0A    public void addVote(RemoteParticipant client, String vote) %7B%0A        // Add or overwrite current vote for the client, if they can vote%0A        if(client.canVote()) %7B%0A            this.votes.put(client.getUsername(), vote);%0A        %7D%0A        else %7B%0A            client.pushOutput(%22You cannot vote on this.%22);%0A        %7D%0A    %7D%0A
 %7D%0A

Add VoteSequence