Class HardCubeFactory

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

public class HardCubeFactory extends Object implements ICubeFactory
  • Field Details

  • Constructor Details

  • Method Details

    • createCubics

      public void createCubics(GridPane gridPane, ArrayList<MemoryObject> memoryObjects)
      Creates the cubes for the hard 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