From 908be22031595558329c0f7679003a260b5939cc Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Tue, 10 May 2016 19:03:14 +0200 Subject: Rename fuzzy parameter --- src/ch/epfl/xblast/client/XBlastComponent.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ch') diff --git a/src/ch/epfl/xblast/client/XBlastComponent.java b/src/ch/epfl/xblast/client/XBlastComponent.java index 388a208..e734d2d 100644 --- a/src/ch/epfl/xblast/client/XBlastComponent.java +++ b/src/ch/epfl/xblast/client/XBlastComponent.java @@ -109,12 +109,12 @@ public final class XBlastComponent extends JComponent { } - private static Comparator buildPlayerComparator(PlayerID blackSheep) { + private static Comparator buildPlayerComparator(PlayerID priorityPlayer) { Comparator coordinateComparator = (p1, p2) -> p1.position().compareTo(p2.position()); Comparator idComparator = - (p1, p2) -> p1.id() == blackSheep ? -1 : 0; + (p1, p2) -> p1.id() == priorityPlayer ? -1 : 0; return coordinateComparator.thenComparing(idComparator); } -- cgit v1.2.3