Skip to content

Commit 07dd82b

Browse files
committed
docs(plugin26): field todos
1 parent ba71016 commit 07dd82b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

plugin2026/src/main/kotlin/sc/plugin2026/Field.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import sc.api.plugins.IField
66
import sc.plugin2026.FieldState.Companion.from
77
import java.util.Optional
88

9+
// TODO remove this
10+
911
/**
1012
* Ein Feld des Spielfelds. Ein Spielfeld hat eine x- und y-Koordinate und einen [FieldState], der anzeigt ob sich etwas auf diesem Feld befindet.
1113
*/
@@ -14,8 +16,8 @@ class Field @JvmOverloads constructor(
1416
@field:XStreamAsAttribute var x: Int,
1517
@field:XStreamAsAttribute var y: Int,
1618
@field:XStreamAsAttribute var state: FieldState = FieldState.EMPTY
17-
):
18-
IField<Field> {
19+
): IField<Field> {
20+
1921
constructor(x: Int, y: Int, piranha: PlayerColor): this(x, y, from(piranha))
2022

2123
constructor(x: Int, y: Int, isObstructed: Boolean): this(

plugin2026/src/main/kotlin/sc/plugin2026/FieldState.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package sc.plugin2026
22

33
import sc.api.plugins.Team
44

5+
// TODO include fish size - maybe a sealed class
6+
57
enum class FieldState {
68
ONE,
79
TWO,

0 commit comments

Comments
 (0)