Skip to content

Commit bc631ec

Browse files
Merge branch 'sdk-doc-update' into 'master'
doc(sdk): fix typos See merge request codingame/game-engine!226
2 parents 2d836df + 4b429c1 commit bc631ec

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

engine/core/src/main/java/com/codingame/gameengine/core/AbstractReferee.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public abstract class AbstractReferee {
2626
* </ul>
2727
*
2828
* @param turn
29-
* which turn of the game is currently being computed.
29+
* which turn of the game is currently being computed. Starts at 1.
3030
*/
3131
abstract public void gameTurn(int turn);
3232

engine/modules/entities/src/main/java/com/codingame/gameengine/module/entities/Shape.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public abstract class Shape<T extends BlendableEntity<?>> extends BlendableEntit
1717
}
1818

1919
/**
20-
* Sets the color of the fill of this <code>Shape</code> as an RGB integer or null if the fill should not be drawn.
20+
* Sets the color of the fill of this <code>Shape</code> as an RGB integer. If the fill should not be drawn, use <code>setFillAlpha(0)</code>.
2121
*
2222
* @param color
2323
* the color of the fill of this <code>Shape</code>.
@@ -30,7 +30,7 @@ public T setFillColor(int color) {
3030
}
3131

3232
/**
33-
* Sets the color of the fill of this <code>Shape</code> as an RGB integer or null if the fill should not be drawn.
33+
* Sets the color of the fill of this <code>Shape</code> as an RGB integer. If the fill should not be drawn, use <code>setFillAlpha(0)</code>.
3434
*
3535
* @param color
3636
* the color of the fill of this <code>Shape</code>.

playground/core-concepts/core-3-game-manager.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ If a player times out (send an invalid value, takes too long to execute ...) you
147147

148148
### Maximum number of turns
149149

150-
You can set the maximum number of turns before the game ends (even if there are still active players). If you don't set this paramter, the game will end within **200** turns.
150+
You can set the maximum number of turns before the game ends (even if there are still active players). If you don't set this parameter, the game will end within **200** turns.
151151

152152
```java
153153
gameManager.setMaxTurns(250);
@@ -157,7 +157,7 @@ gameManager.setMaxTurns(250);
157157
158158
### Turn maximum time
159159

160-
You can set the maximum time allowed to a Player to execute their code for a turn. If you don't set this paramter, the players will have **50**ms to execute.
160+
You can set the maximum time allowed to a Player to execute their code for a turn. If you don't set this parameter, the players will have **50**ms to execute.
161161

162162
```java
163163
gameManager.setTurnMaxTime(45);

playground/core-concepts/core-4-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For type-specific configuration, see:
1313

1414
In order to use the CodinGame SDK, you need to correctly configure the file `pom.xml`.
1515

16-
A good start would be to check the [game skeleton' pom.xml](https://github.com/CodinGame/game-skeleton/blob/master/pom.xml). It contains all you need to start your project. Make sure you use the lastest version of the SDK. See the [Release Notes](playground/misc/misc-3-release-notes.md).
16+
A good start would be to check the [game skeleton' pom.xml](https://github.com/CodinGame/game-skeleton/blob/master/pom.xml). It contains all you need to start your project. Make sure you use the latest version of the SDK. See the [Release Notes](playground/misc/misc-3-release-notes.md).
1717

1818
Think of updating the `artifactId` value with the name of your game in case you want to create several games.
1919

0 commit comments

Comments
 (0)