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