Package visuals.gameModes
Class FXAbstractGameController
java.lang.Object
visuals.gameModes.FXAbstractGameController
- All Implemented Interfaces:
FXIGameController
- Direct Known Subclasses:
FXEasyController,FXHardController,FXMediumController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IGameControllerprivate final ImageTranslatorboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToCubeList(BoxMaker cube) voidclearGameOverMenu(AnchorPane sceneRoot, AnchorPane gameRoot) Method for clearing the game over menuvoidvoidvoidvoidvoidgameOverMenu(AnchorPane gameRoot, AnchorPane sceneRoot, boolean victory) Method for initializing the game over menuvoidgetTime(int i) voidglowHint(int idToGlow) voidhoverOff(MouseEvent event) voidhoverOn(MouseEvent event) voidinitScoreHeaders(ImageView personalScoreHeader, ImageView worldScoreHeader) Method for initializing the score headers based on the languagevoidsendIdToEngine(int id) voidsetActiveID(int activeID) voidvoidsetPersonalScore(ModeType modeType, List<Label> labels) Assigns personal scores to the labelsvoidsetWorldScore(ModeType modeType, List<Label> labels) Assigns world scores to the labelsvoidupdateDynamicScore(int score) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface visuals.gameModes.FXIGameController
gameOver, newGame, returnMenu, setCubesToGame, setImages, setStartGame
-
Field Details
-
cubeList
-
gameController
-
activeList
-
imageTranslator
-
dynamicScore
-
dynamicHeader
-
three
-
two
-
one
-
numberPane
-
wallOfeetu
-
dynamicScorePane
-
timerPane
-
play
-
practice
public boolean practice
-
-
Constructor Details
-
FXAbstractGameController
public FXAbstractGameController()
-
-
Method Details
-
addToCubeList
- Specified by:
addToCubeListin interfaceFXIGameController
-
clearPair
- Specified by:
clearPairin interfaceFXIGameController
-
glowHint
public void glowHint(int idToGlow) - Specified by:
glowHintin interfaceFXIGameController
-
clearStorage
public void clearStorage()- Specified by:
clearStoragein interfaceFXIGameController
-
setActiveID
public void setActiveID(int activeID) - Specified by:
setActiveIDin interfaceFXIGameController
-
compareFoundMatch
public void compareFoundMatch()- Specified by:
compareFoundMatchin interfaceFXIGameController
-
getTime
public void getTime(int i) - Specified by:
getTimein interfaceFXIGameController
-
sendIdToEngine
public void sendIdToEngine(int id) - Specified by:
sendIdToEnginein interfaceFXIGameController
-
setCamera
public void setCamera()- Specified by:
setCamerain interfaceFXIGameController
-
clearGameOverMenu
Method for clearing the game over menu- Parameters:
sceneRoot- scene rootgameRoot- game root
-
gameOverMenu
Method for initializing the game over menu- Parameters:
gameRoot- game rootsceneRoot- scene root
-
initScoreHeaders
Method for initializing the score headers based on the language- Parameters:
personalScoreHeader- personal score headerworldScoreHeader- world score header
-
setWorldScore
Assigns world scores to the labels- Parameters:
modeType- difficultylabels- labels to be used
-
setPersonalScore
Assigns personal scores to the labels- Parameters:
modeType- difficultylabels- labels to be used
-
hoverOn
-
hoverOff
-
updateDynamicScore
public void updateDynamicScore(int score) - Specified by:
updateDynamicScorein interfaceFXIGameController
-
countDown
- Specified by:
countDownin interfaceFXIGameController
-