File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
src/main/kotlin/sc/gui/controller Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -189,10 +189,10 @@ class GameController : Controller() {
189
189
previousTurnColorProperty().set(turnColorProperty().get())
190
190
turnColorProperty().set(event.gameState.currentColor)
191
191
}
192
- undeployedRedPiecesProperty().set(event.gameState.undeployedPieceShapes[ Color .RED ] )
193
- undeployedBluePiecesProperty().set(event.gameState.undeployedPieceShapes[ Color .BLUE ] )
194
- undeployedGreenPiecesProperty().set(event.gameState.undeployedPieceShapes[ Color .GREEN ] )
195
- undeployedYellowPiecesProperty().set(event.gameState.undeployedPieceShapes[ Color .YELLOW ] )
192
+ undeployedRedPiecesProperty().set(event.gameState.undeployedPieceShapes( Color .RED ) )
193
+ undeployedBluePiecesProperty().set(event.gameState.undeployedPieceShapes( Color .BLUE ) )
194
+ undeployedGreenPiecesProperty().set(event.gameState.undeployedPieceShapes( Color .GREEN ) )
195
+ undeployedYellowPiecesProperty().set(event.gameState.undeployedPieceShapes( Color .YELLOW ) )
196
196
boardController.board.boardProperty().set(event.gameState.board)
197
197
validRedPiecesProperty().set(ArrayList ())
198
198
validBluePiecesProperty().set(ArrayList ())
@@ -211,7 +211,7 @@ class GameController : Controller() {
211
211
Color .BLUE -> validBluePiecesProperty()
212
212
Color .GREEN -> validGreenPiecesProperty()
213
213
Color .YELLOW -> validYellowPiecesProperty()
214
- }.set(event.gameState.undeployedPieceShapes[ event.gameState.currentColor]? .filter {
214
+ }.set(event.gameState.undeployedPieceShapes( event.gameState.currentColor) .filter {
215
215
isSelectable(it)
216
216
} as ArrayList <PieceShape >? )
217
217
}
You can’t perform that action at this time.
0 commit comments