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 @@ -187,10 +187,10 @@ class GameController : Controller() {
187
187
previousTurnColorProperty().set(turnColorProperty().get())
188
188
turnColorProperty().set(event.gameState.currentColor)
189
189
}
190
- undeployedRedPiecesProperty().set(event.gameState.undeployedPieceShapes[ Color .RED ] )
191
- undeployedBluePiecesProperty().set(event.gameState.undeployedPieceShapes[ Color .BLUE ] )
192
- undeployedGreenPiecesProperty().set(event.gameState.undeployedPieceShapes[ Color .GREEN ] )
193
- undeployedYellowPiecesProperty().set(event.gameState.undeployedPieceShapes[ Color .YELLOW ] )
190
+ undeployedRedPiecesProperty().set(event.gameState.undeployedPieceShapes( Color .RED ) )
191
+ undeployedBluePiecesProperty().set(event.gameState.undeployedPieceShapes( Color .BLUE ) )
192
+ undeployedGreenPiecesProperty().set(event.gameState.undeployedPieceShapes( Color .GREEN ) )
193
+ undeployedYellowPiecesProperty().set(event.gameState.undeployedPieceShapes( Color .YELLOW ) )
194
194
boardController.board.boardProperty().set(event.gameState.board)
195
195
validRedPiecesProperty().set(ArrayList ())
196
196
validBluePiecesProperty().set(ArrayList ())
@@ -209,7 +209,7 @@ class GameController : Controller() {
209
209
Color .BLUE -> validBluePiecesProperty()
210
210
Color .GREEN -> validGreenPiecesProperty()
211
211
Color .YELLOW -> validYellowPiecesProperty()
212
- }.set(event.gameState.undeployedPieceShapes[ event.gameState.currentColor]? .filter {
212
+ }.set(event.gameState.undeployedPieceShapes( event.gameState.currentColor) .filter {
213
213
isSelectable(it)
214
214
} as ArrayList <PieceShape >? )
215
215
}
You can’t perform that action at this time.
0 commit comments