java.lang.Object
View.bookscrabbleapp.LobbyController
- All Implemented Interfaces:
Observer,javafx.fxml.Initializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate the list of the players that connected with their namesvoidinitialize(URL url, ResourceBundle resourceBundle) method that call all the function that needed to run when the page loadvoidwhen the host click on the button start game it will move all the players into the IngGme pagevoidmethod that - when the player click on the button backToLogin it will go to the login pagevoidvoidstartGame(javafx.scene.input.MouseEvent mouseEvent) voidupdate(Observable o, Object arg) update the guests that we need to move to game page and moves them all or update the guests player list.
-
Constructor Details
-
LobbyController
public LobbyController()
-
-
Method Details
-
startGame
public void startGame(javafx.scene.input.MouseEvent mouseEvent) - Parameters:
mouseEvent- when click on join game or create game it start the game
-
initialize
method that call all the function that needed to run when the page load- Specified by:
initializein interfacejavafx.fxml.Initializable- Parameters:
url-resourceBundle-
-
handlerPlayerList
public void handlerPlayerList()create the list of the players that connected with their names -
moveToLoginScene
public void moveToLoginScene()method that - when the player click on the button backToLogin it will go to the login page -
moveInGameScene
public void moveInGameScene()when the host click on the button start game it will move all the players into the IngGme page -
quitBtnHandler
public void quitBtnHandler() -
update
update the guests that we need to move to game page and moves them all or update the guests player list.
-