Class UpgradeTileGroup

java.lang.Object
com.example.project.controllers.gameScreens.UpgradeTileGroup

public class UpgradeTileGroup extends Object
tile group that observes an observable list and updates the ui nodes for some game tiles.
  • 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.