java.lang.Object
project.pong.controller.TopBarController
The TopBarController class controls the switching of views in the Pong game.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTopBarController(MainViewController mainViewController) Constructs a TopBarController object with the specified main view controller. -
Method Summary
Modifier and TypeMethodDescriptionvoidswitchView(WindowState typeView) Switches the view based on the provided window state.
-
Field Details
-
mainViewController
-
-
Constructor Details
-
TopBarController
Constructs a TopBarController object with the specified main view controller.- Parameters:
mainViewController- The main view controller.
-
-
Method Details
-
switchView
Switches the view based on the provided window state.- Parameters:
typeView- The type of window state to switch to.
-