Package visuals.gameModes
Class GameOverController
java.lang.Object
visuals.gameModes.GameOverController
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FXIGameController(package private) Label(package private) VBox(package private) AnchorPaneprivate AnchorPaneprivate GaussianBlur(package private) HBox(package private) Button(package private) ImageView(package private) Button(package private) ImageView(package private) ImageView(package private) Labelprivate Boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidanimateStars(String stars) pretty complicated method that does a simple thing.voidchangeLanguage(Locale locale) Change the language of the game.voidInitialize(FXIGameController fxigameController, IGameController gameController, AnchorPane gameRoot, boolean victory) initialize method serves as a constructor for the classprivate voidInitialize styles, first does the fonts, then calls styleButton for the buttonsprivate voidvoidreturn to menu, with fades and blurs as with all other return to menu methodsvoidStart a mew game.private voidStyle a button.
-
Field Details
-
fxigameController
-
gameRoot
-
gaussianBlur
-
gameOverRoot
AnchorPane gameOverRoot -
hboxStarContainer
HBox hboxStarContainer -
newGame
Button newGame -
mainMenu
Button mainMenu -
score
Label score -
gameOver
Label gameOver -
gameOverPane
VBox gameOverPane -
neonBorder
ImageView neonBorder -
newgameNeo
ImageView newgameNeo -
returnNeo
ImageView returnNeo -
victory
-
-
Constructor Details
-
GameOverController
public GameOverController()
-
-
Method Details
-
Initialize
public void Initialize(FXIGameController fxigameController, IGameController gameController, AnchorPane gameRoot, boolean victory) initialize method serves as a constructor for the class- Parameters:
fxigameController- FXIGameController this view's controllergameController- IGameController the game controllergameRoot- AnchorPane the root of the game. is blurred when this pane is shown
-
neonBorderHue
private void neonBorderHue() -
animateStars
pretty complicated method that does a simple thing. based on the grade, makes 1 to 3 spinning stars pop up.- Parameters:
stars- number of stars (grade)
-
setButtonMenu
public void setButtonMenu()return to menu, with fades and blurs as with all other return to menu methods -
setButtonRestart
public void setButtonRestart()Start a mew game. -
initStyles
private void initStyles()Initialize styles, first does the fonts, then calls styleButton for the buttons -
styleButton
Style a button.- Parameters:
b- Button to be styled
-
changeLanguage
Change the language of the game. Based on language selected elsewhere- Parameters:
locale- Locale to be changed to
-