Skip to content

Commit bcca611

Browse files
author
Julien
committed
style(SDK): reformatted a file
1 parent 0fe26f5 commit bcca611

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

runner/src/main/java/com/codingame/gameengine/runner/MultiplayerGameRunner.java

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,19 @@ public MultiplayerGameRunner() {
2020

2121
/**
2222
* 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.
2529
*/
26-
30+
2731
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));
3236
}
3337

3438
/**
@@ -43,7 +47,8 @@ public void setLeagueLevel(int leagueLevel) {
4347
* If those parameters are present in the given input, the input values should override the generated values.
4448
* </p>
4549
*
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
4752
*/
4853
public void setSeed(Long seed) {
4954
this.seed = seed;
@@ -119,7 +124,7 @@ public void addAgent(Class<?> playerClass, String nickname, String avatarUrl) {
119124
public void addAgent(String commandLine, String nickname, String avatarUrl) {
120125
addAgent(new CommandLinePlayerAgent(commandLine), nickname, avatarUrl);
121126
}
122-
127+
123128
/**
124129
* Adds an AI to the next game to run, with the specified nickname.
125130
*

0 commit comments

Comments
 (0)