Package visuals.cubeFactories
Class HardCubeFactory
java.lang.Object
visuals.cubeFactories.HardCubeFactory
- All Implemented Interfaces:
ICubeFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Imageprivate final Imageprivate final FXHardController -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateCubics(GridPane gridPane, ArrayList<MemoryObject> memoryObjects) Creates the cubes for the hard game mode and adds them to the given grid pane.
-
Field Details
-
gui
-
imageUrlList
-
backImage
-
behindImage
-
-
Constructor Details
-
HardCubeFactory
-
-
Method Details
-
createCubics
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:
createCubicsin interfaceICubeFactory- Parameters:
gridPane- the grid pane to add the cubes tomemoryObjects- the list of memory objects to create cubes for
-