package utils.comparator;

import edu.neu.ccs.demeterf.demfgen.lib.List;
import gen.Pair;
import gen.PlayerID;
import gen.PlayerStore;

/** Class to determine whether two player accounts belong to the same player
 * @author animesh
 *
 */
public class PlayerStoreComparator extends List.Pred<Pair<PlayerID, PlayerStore>> {
	PlayerID look;
	
	public PlayerStoreComparator(PlayerID pId) {
		super();
		this.look = pId;
	}


	@Override
	public boolean huh(Pair<PlayerID, PlayerStore> arg0) {
		return (arg0.a.equals(look));
	}
}