Package visuals.gameModes.easy
Class FXEasyController
java.lang.Object
visuals.gameModes.FXAbstractGameController
visuals.gameModes.easy.FXEasyController
- All Implemented Interfaces:
Initializable,FXIGameController
public class FXEasyController
extends FXAbstractGameController
implements Initializable, FXIGameController
A controller class that manages the gameplay for the easy level in a memory match game.
Extends
FXAbstractGameController and implements Initializable and FXIGameController.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ImageView(package private) ImageView(package private) ImageViewprivate ICubeFactoryprivate EasyEffects(package private) ImageView(package private) GridPane(package private) ImageView(package private) ImageView(package private) ImageView(package private) AnchorPane(package private) Label(package private) Label(package private) Label(package private) Label(package private) Label(package private) ImageView(package private) ImageView(package private) ImageView(package private) AnchorPane(package private) Pane(package private) Label(package private) Label(package private) Label(package private) Label(package private) Label(package private) ImageViewFields inherited from class visuals.gameModes.FXAbstractGameController
cubeList, dynamicHeader, dynamicScore, dynamicScorePane, gameController, numberPane, one, practice, three, timerPane, two, wallOfeetu -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCubeList(BoxMaker cube) voidvoidvoidvoidvoidgameOver(boolean victory) voidinitialize(URL url, ResourceBundle resourceBundle) Initializes the controller with the specified URL and resource bundle.voidnewGame()voidvoidsendIdToEngine(int id) voidsetActiveID(int activeID) voidsetCubesToGame(ArrayList<MemoryObject> memoryObjects) voidvoidvoidupdateDynamicScore(int score) Methods inherited from class visuals.gameModes.FXAbstractGameController
clearGameOverMenu, gameOverMenu, getTime, glowHint, hoverOff, hoverOn, initScoreHeaders, setCamera, setPersonalScore, setWorldScoreMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface visuals.gameModes.FXIGameController
getTime, glowHint, setCamera
-
Field Details
-
easyGridi
GridPane easyGridi -
background
ImageView background -
easyTop
ImageView easyTop -
easyL
ImageView easyL -
easyBot
ImageView easyBot -
play
ImageView play -
returngame
ImageView returngame -
scorePane
Pane scorePane -
p1
Label p1 -
p2
Label p2 -
p3
Label p3 -
p4
Label p4 -
p5
Label p5 -
w1
Label w1 -
w2
Label w2 -
w3
Label w3 -
w4
Label w4 -
w5
Label w5 -
easy3Dgrid
ImageView easy3Dgrid -
easyneo
ImageView easyneo -
easyEnd
ImageView easyEnd -
sceneRoot
AnchorPane sceneRoot -
gameRoot
AnchorPane gameRoot -
personalScoreHeader
ImageView personalScoreHeader -
worldScoreHeader
ImageView worldScoreHeader -
personalLabels
-
worldLabels
-
easyCubeFactory
-
easyEffects
-
-
Constructor Details
-
FXEasyController
public FXEasyController()
-
-
Method Details
-
initialize
Initializes the controller with the specified URL and resource bundle.- Specified by:
initializein interfaceInitializable- Parameters:
url- the URL of the FXML fileresourceBundle- the resource bundle
-
setImages
public void setImages()- Specified by:
setImagesin interfaceFXIGameController
-
setStartGame
public void setStartGame()- Specified by:
setStartGamein interfaceFXIGameController
-
setCubesToGame
- Specified by:
setCubesToGamein interfaceFXIGameController
-
newGame
public void newGame()- Specified by:
newGamein interfaceFXIGameController
-
returnMenu
public void returnMenu()- Specified by:
returnMenuin interfaceFXIGameController
-
addToCubeList
- Specified by:
addToCubeListin interfaceFXIGameController- Overrides:
addToCubeListin classFXAbstractGameController
-
clearPair
- Specified by:
clearPairin interfaceFXIGameController- Overrides:
clearPairin classFXAbstractGameController
-
clearStorage
public void clearStorage()- Specified by:
clearStoragein interfaceFXIGameController- Overrides:
clearStoragein classFXAbstractGameController
-
gameOver
public void gameOver(boolean victory) - Specified by:
gameOverin interfaceFXIGameController
-
setActiveID
public void setActiveID(int activeID) - Specified by:
setActiveIDin interfaceFXIGameController- Overrides:
setActiveIDin classFXAbstractGameController
-
compareFoundMatch
public void compareFoundMatch()- Specified by:
compareFoundMatchin interfaceFXIGameController- Overrides:
compareFoundMatchin classFXAbstractGameController
-
sendIdToEngine
public void sendIdToEngine(int id) - Specified by:
sendIdToEnginein interfaceFXIGameController- Overrides:
sendIdToEnginein classFXAbstractGameController
-
updateDynamicScore
public void updateDynamicScore(int score) - Specified by:
updateDynamicScorein interfaceFXIGameController- Overrides:
updateDynamicScorein classFXAbstractGameController
-
countDown
- Specified by:
countDownin interfaceFXIGameController- Overrides:
countDownin classFXAbstractGameController
-