Interface IGameView
- All Known Implementing Classes:
GameView
public interface IGameView
Interface for GameView.
Specifies the methods that the GameView should implement.
-
Method Summary
Modifier and TypeMethodDescriptionGets the fail view.Gets the prepare view.Gets the run view.Gets the selection view.Gets the victory view.javafx.scene.layout.BorderPanegetView()Gets the main view node.Gets the welcome view.voidsetFailView(IFailView failView) Sets the fail view.voidsetPrepareView(IPrepareView prepareView) Sets the prepare view.voidsetRunView(IRunView runView) Sets the run view.voidsetSelectionView(ISelectionView selectionView) Sets the selection view.voidsetVictoryView(IVictoryView victoryView) Sets the victory view.voidsetWelcomeView(IWelcomeView welcomeView) Sets the welcome view.voidShows the fail view.voidShows the prepare view.voidShows the run view.voidShows the selection view.voidShows the victory view.voidShows the welcome view.
-
Method Details
-
getWelcomeView
IWelcomeView getWelcomeView()Gets the welcome view.- Returns:
- The welcome view.
-
setWelcomeView
Sets the welcome view.- Parameters:
welcomeView- The welcome view to set.
-
getSelectionView
ISelectionView getSelectionView()Gets the selection view.- Returns:
- The selection view.
-
setSelectionView
Sets the selection view.- Parameters:
selectionView- The selection view to set.
-
getPrepareView
IPrepareView getPrepareView()Gets the prepare view.- Returns:
- The prepare view.
-
setPrepareView
Sets the prepare view.- Parameters:
prepareView- The prepare view to set.
-
getRunView
IRunView getRunView()Gets the run view.- Returns:
- The run view.
-
setRunView
Sets the run view.- Parameters:
runView- The run view to set.
-
getVictoryView
IVictoryView getVictoryView()Gets the victory view.- Returns:
- The victory view.
-
setVictoryView
Sets the victory view.- Parameters:
victoryView- The victory view to set.
-
getFailView
IFailView getFailView()Gets the fail view.- Returns:
- The fail view.
-
setFailView
Sets the fail view.- Parameters:
failView- The fail view to set.
-
getView
javafx.scene.layout.BorderPane getView()Gets the main view node.- Returns:
- The BorderPane main view node.
-
showVictoryView
void showVictoryView()Shows the victory view. -
showSelectionView
void showSelectionView()Shows the selection view. -
showPrepareView
void showPrepareView()Shows the prepare view. -
showRunView
void showRunView()Shows the run view. -
showWelcomeView
void showWelcomeView()Shows the welcome view. -
showFailView
void showFailView()Shows the fail view.
-