Module com.example.project
Class UpgradeTileGroup
java.lang.Object
com.example.project.controllers.gameScreens.UpgradeTileGroup
tile group that observes an observable list and updates the ui nodes for some game tiles.
-
Constructor Summary
ConstructorsConstructorDescriptionUpgradeTileGroup
(javafx.scene.layout.Pane container, javafx.beans.property.ReadOnlyListProperty<UpgradeTile> observedList) Constructor with no additional sync action parameter.UpgradeTileGroup
(javafx.scene.layout.Pane container, javafx.beans.property.ReadOnlyListProperty<UpgradeTile> observedList, Consumer<UpgradeTile> afterSyncActions) Constructor. -
Method Summary
-
Constructor Details
-
UpgradeTileGroup
public UpgradeTileGroup(javafx.scene.layout.Pane container, javafx.beans.property.ReadOnlyListProperty<UpgradeTile> observedList, Consumer<UpgradeTile> afterSyncActions) Constructor.- Parameters:
container
- container all tiles are in.observedList
- the observed list that when changes this tile group will sync.afterSyncActions
- additional synchronisation actions that need to be called.
-
UpgradeTileGroup
public UpgradeTileGroup(javafx.scene.layout.Pane container, javafx.beans.property.ReadOnlyListProperty<UpgradeTile> observedList) Constructor with no additional sync action parameter.- Parameters:
container
- container tiles are in.observedList
- the observed list that when changes this tile group will sync.
-