project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/netplay/Player.java
equal
deleted
inserted
replaced
5 public class Player { |
5 public class Player { |
6 public static final ByNameComparator nameComparator = new ByNameComparator(); |
6 public static final ByNameComparator nameComparator = new ByNameComparator(); |
7 |
7 |
8 public final String name; |
8 public final String name; |
9 public final long playerId; |
9 public final long playerId; |
10 public final boolean friend; |
|
11 public final boolean ignored; |
|
12 |
10 |
13 public Player(String name, long playerId, boolean friend, boolean ignored) { |
11 public Player(String name, long playerId) { |
14 super(); |
|
15 this.name = name; |
12 this.name = name; |
16 this.playerId = playerId; |
13 this.playerId = playerId; |
17 this.friend = friend; |
|
18 this.ignored = ignored; |
|
19 } |
14 } |
20 |
15 |
21 private static class ByNameComparator implements Comparator<Player> { |
16 private static class ByNameComparator implements Comparator<Player> { |
22 public int compare(Player lhs, Player rhs) { |
17 public int compare(Player lhs, Player rhs) { |
23 return lhs.name.compareToIgnoreCase(rhs.name); |
18 return lhs.name.compareToIgnoreCase(rhs.name); |