Class MediumCubeFactory

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

public class MediumCubeFactory extends Object implements ICubeFactory
  • Field Details

  • Constructor Details

  • Method Details

    • createCubics

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