@@ -76,7 +76,8 @@ public TextMakerFr(Map<PlayerColor, String> names) {
76
76
/**
77
77
* Creates a string representing the given game item in the given count,
78
78
* according to the French language
79
- * @param item the game item, should have a French name whose plural is regular
79
+ *
80
+ * @param item the game item, should have a French name whose plural is regular
80
81
* @param count the count of the game item, if it indicates a plural quantity, the item name will be pluralized
81
82
* @return a string representing the given game item in the given count
82
83
*/
@@ -87,6 +88,7 @@ private String pluralizeGameItems(GameItem item, int count) {
87
88
/**
88
89
* Takes an ordered list, and returns a string representing the items in the list
89
90
* in a human-readable way
91
+ *
90
92
* @param items an ordered list of items
91
93
* @return a string representing the items in the list in a human-readable way
92
94
*/
@@ -109,6 +111,7 @@ private String itemsToString(List<String> items) {
109
111
/**
110
112
* Orders the given set of player colors and returns a string representing them, telling they earned (some points)
111
113
* Example: Alice, Edgar et Bruno ont remporté (X points en tant qu'occupant-e-s majoritaires)
114
+ *
112
115
* @param scorers the set of player colors that scored
113
116
*/
114
117
private String earnMessage (Set <PlayerColor > scorers ) {
@@ -128,8 +131,9 @@ private String earnMessage(Set<PlayerColor> scorers) {
128
131
129
132
/**
130
133
* Returns a string representing the given set of player colors and the given points
134
+ *
131
135
* @param scorers the set of player colors that scored
132
- * @param points the points they scored
136
+ * @param points the points they scored
133
137
* @return a string representing the given set of player colors and the given points
134
138
*/
135
139
private String earnMessagePoints (Set <PlayerColor > scorers , int points ) {
@@ -141,10 +145,11 @@ private String earnMessagePoints(Set<PlayerColor> scorers, int points) {
141
145
/**
142
146
* Returns a string representing the given set of player colors and the given points,
143
147
* telling they earned the points as majority occupants
148
+ *
144
149
* @param scorers the set of player colors that scored
145
- * @param points the points they scored
150
+ * @param points the points they scored
146
151
* @return a string representing the given set of player colors and the given points,
147
- * telling they earned the points as majority occupants
152
+ * telling they earned the points as majority occupants
148
153
*/
149
154
private String earnMessageMajorityOccupants (Set <PlayerColor > scorers , int points ) {
150
155
Preconditions .checkArgument (!scorers .isEmpty ());
@@ -162,7 +167,8 @@ private String earnMessageMajorityOccupants(Set<PlayerColor> scorers, int points
162
167
/**
163
168
* Pluralizes the given word if the count is greater than 1,
164
169
* according to the French language. The word has to be a regular one in French
165
- * @param word it has to be a French regular word
170
+ *
171
+ * @param word it has to be a French regular word
166
172
* @param count the count of the word
167
173
* @return the pluralized word if the count is greater than 1, the word otherwise
168
174
*/
@@ -172,6 +178,7 @@ private String pluralize(String word, int count) {
172
178
173
179
/**
174
180
* Returns a string representing the given map of animals and their counts
181
+ *
175
182
* @param animals the map of animals to represent as a string
176
183
* @return a string representing the given map of animals and their counts
177
184
*/
@@ -188,7 +195,7 @@ private String animalsToString(Map<Animal.Kind, Integer> animals) {
188
195
return itemsToString (animalsList );
189
196
}
190
197
191
-
198
+
192
199
@ Override
193
200
public String playerName (PlayerColor playerColor ) {
194
201
Preconditions .checkArgument (names .containsKey (playerColor ));
0 commit comments