@@ -20,15 +20,19 @@ public MultiplayerGameRunner() {
20
20
21
21
/**
22
22
* Sets the league level to run. The first league is 1.
23
- * <p>The value can also be set by setting the environment variable <code>league.level</code>.</p>
24
- * @param leagueLevel the league level. 1 is the lowest level and default value.
23
+ * <p>
24
+ * The value can also be set by setting the environment variable <code>league.level</code>.
25
+ * </p>
26
+ *
27
+ * @param leagueLevel
28
+ * the league level. 1 is the lowest level and default value.
25
29
*/
26
-
30
+
27
31
public void setLeagueLevel (int leagueLevel ) {
28
- if (leagueLevel < 1 || leagueLevel >= 20 ) {
29
- throw new IllegalArgumentException ("League level must be higher than 0 and lesser than 20" );
30
- }
31
- System .setProperty ("league.level" , String .valueOf (leagueLevel ));
32
+ if (leagueLevel < 1 || leagueLevel >= 20 ) {
33
+ throw new IllegalArgumentException ("League level must be higher than 0 and lesser than 20" );
34
+ }
35
+ System .setProperty ("league.level" , String .valueOf (leagueLevel ));
32
36
}
33
37
34
38
/**
@@ -43,7 +47,8 @@ public void setLeagueLevel(int leagueLevel) {
43
47
* If those parameters are present in the given input, the input values should override the generated values.
44
48
* </p>
45
49
*
46
- * @param seed this game's seed returned by the <code>GameManager</code> during execution
50
+ * @param seed
51
+ * this game's seed returned by the <code>GameManager</code> during execution
47
52
*/
48
53
public void setSeed (Long seed ) {
49
54
this .seed = seed ;
@@ -119,7 +124,7 @@ public void addAgent(Class<?> playerClass, String nickname, String avatarUrl) {
119
124
public void addAgent (String commandLine , String nickname , String avatarUrl ) {
120
125
addAgent (new CommandLinePlayerAgent (commandLine ), nickname , avatarUrl );
121
126
}
122
-
127
+
123
128
/**
124
129
* Adds an AI to the next game to run, with the specified nickname.
125
130
*
0 commit comments