public class AppPresenter
extends java.lang.Object
AppPresenter class consists in
the MVP architecture presenter| Constructor and Description |
|---|
AppPresenter(javafx.stage.Stage window)
Constructs the presenter with the app's window
|
| Modifier and Type | Method and Description |
|---|---|
void |
launchGame()
Launches a Tarot game from menu
|
void |
notifyEndAnimation(CardUpdate cardUpdate)
Aims to notify the model of an animation's end
|
void |
quit()
Quits app from menu
|
void |
setDealerChoosingEnabled(boolean on) |
void |
setGameModel(GameModel gameModel) |
void |
setGameView(GameView gameView) |
void |
transmitUserChoice(int choice)
Transmits user choice to the model
|
public AppPresenter(javafx.stage.Stage window)
window - the app windowpublic void transmitUserChoice(int choice)
choice - the user choicepublic void notifyEndAnimation(CardUpdate cardUpdate)
cardUpdate - the cardUpdate associated to the animationpublic void launchGame()
public void quit()
public void setDealerChoosingEnabled(boolean on)
public void setGameModel(GameModel gameModel)
public void setGameView(GameView gameView)