Class GameOverController

java.lang.Object
visuals.gameModes.GameOverController

public class GameOverController extends Object
  • Field Details

  • 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 controller
      gameController - IGameController the game controller
      gameRoot - AnchorPane the root of the game. is blurred when this pane is shown
    • neonBorderHue

      private void neonBorderHue()
    • animateStars

      private void animateStars(String stars)
      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

      private void styleButton(Button b)
      Style a button.
      Parameters:
      b - Button to be styled
    • changeLanguage

      public void changeLanguage(Locale locale)
      Change the language of the game. Based on language selected elsewhere
      Parameters:
      locale - Locale to be changed to