2015-08-08 20:58:45 +00:00
|
|
|
package tk.sznp.thebuttonautoflair;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
public class MaybeOfflinePlayer
|
|
|
|
{ //2015.08.08.
|
|
|
|
public String PlayerName;
|
|
|
|
public String UserName;
|
|
|
|
public String Flair; //If the user comments their name, it gets set, it doesn't matter if they accepted it or not
|
|
|
|
public boolean AcceptedFlair;
|
|
|
|
public boolean IgnoredFlair;
|
2015-08-09 22:28:15 +00:00
|
|
|
public boolean FlairDecided; //2015.08.09.
|
2015-08-10 19:29:09 +00:00
|
|
|
public boolean FlairRecognised; //2015.08.10.
|
2015-08-10 20:47:05 +00:00
|
|
|
public boolean CommentedOnReddit; //2015.08.10.
|
2015-08-08 20:58:45 +00:00
|
|
|
public static HashMap<String, MaybeOfflinePlayer> AllPlayers=new HashMap<>(); //2015.08.08.
|
|
|
|
public static MaybeOfflinePlayer AddPlayerIfNeeded(String playername)
|
|
|
|
{
|
|
|
|
if(!AllPlayers.containsKey(playername))
|
|
|
|
{
|
|
|
|
MaybeOfflinePlayer player=new MaybeOfflinePlayer();
|
|
|
|
player.PlayerName=playername;
|
2015-08-10 20:47:05 +00:00
|
|
|
player.Flair=""; //2015.08.10.
|
2015-08-08 20:58:45 +00:00
|
|
|
AllPlayers.put(playername, player);
|
|
|
|
return player;
|
|
|
|
}
|
|
|
|
return AllPlayers.get(playername);
|
|
|
|
}
|
2015-08-09 22:28:15 +00:00
|
|
|
/*public enum FlairClassType
|
|
|
|
{ //2015.08.09.
|
|
|
|
NonPresser,
|
|
|
|
CantPress,
|
|
|
|
Undecided
|
|
|
|
}*/
|
2015-08-08 20:58:45 +00:00
|
|
|
}
|