Module project.pong

Class TopBarController

java.lang.Object
project.pong.controller.TopBarController

public class TopBarController extends Object
The TopBarController class controls the switching of views in the Pong game.
  • Field Details

  • Constructor Details

    • TopBarController

      public TopBarController(MainViewController mainViewController)
      Constructs a TopBarController object with the specified main view controller.
      Parameters:
      mainViewController - The main view controller.
  • Method Details

    • switchView

      public void switchView(WindowState typeView)
      Switches the view based on the provided window state.
      Parameters:
      typeView - The type of window state to switch to.