Class EasyCubeFactory

java.lang.Object
visuals.cubeFactories.EasyCubeFactory
All Implemented Interfaces:
ICubeFactory

public class EasyCubeFactory extends Object implements ICubeFactory
  • Field Details

    • easyController

      private final FXEasyController easyController
    • imageUrlList

      private static ArrayList<Image> imageUrlList
    • backImage

      private final Image backImage
    • behindImage

      private final Image behindImage
  • Constructor Details

  • Method Details

    • createCubics

      public void createCubics(GridPane gridPane, ArrayList<MemoryObject> memoryObjects)
      Creates the cubes for the easy game mode and adds them to the given grid pane. Adds event handlers for mouse enter and exit to scale the cubes on hover. Adds a fade-in animation for each cube.
      Specified by:
      createCubics in interface ICubeFactory
      Parameters:
      gridPane - the grid pane to add the cubes to
      memoryObjects - the list of memory objects to create cubes for