the readme of Siedler of catan has been written and language correction.
This commit is contained in:
@@ -27,7 +27,7 @@ public class SiedlerBoard extends HexBoard<Config.Land, Settlement, Road, String
|
||||
*/
|
||||
private final HashMap<Point, Field> fields = new HashMap<>();
|
||||
Config.Faction longestRoadFaction = null;
|
||||
int longestRoadLenth = 0;
|
||||
int longestRoadLength = 0;
|
||||
|
||||
/**
|
||||
* Method to create the predefined game field from Config.
|
||||
@@ -172,13 +172,13 @@ public class SiedlerBoard extends HexBoard<Config.Land, Settlement, Road, String
|
||||
}
|
||||
if (currentFaction != null) {
|
||||
longestRoadFaction = currentFaction;
|
||||
longestRoadLenth = currentRoad;
|
||||
longestRoadLength = currentRoad;
|
||||
}
|
||||
} else {
|
||||
for (Config.Faction faction : players.keySet()) {
|
||||
if (players.get(faction) >= 5 && players.get(faction) > longestRoadLenth) {
|
||||
if (players.get(faction) >= 5 && players.get(faction) > longestRoadLength) {
|
||||
longestRoadFaction = faction;
|
||||
longestRoadLenth = players.get(faction);
|
||||
longestRoadLength = players.get(faction);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -186,8 +186,8 @@ public class SiedlerBoard extends HexBoard<Config.Land, Settlement, Road, String
|
||||
}
|
||||
|
||||
//todo javadoc
|
||||
public int getLongestRoadLenth() {
|
||||
return longestRoadLenth;
|
||||
public int getLongestRoadLength() {
|
||||
return longestRoadLength;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user