Module AM37

Class GUI

java.lang.Object
javafx.application.Application
it.polimi.ingsw.view.gui.GUI
All Implemented Interfaces:
ViewInterface

public class GUI
extends javafx.application.Application
implements ViewInterface
  • Nested Class Summary

    Nested classes/interfaces inherited from class javafx.application.Application

    javafx.application.Application.Parameters
  • Field Summary

    Fields inherited from class javafx.application.Application

    STYLESHEET_CASPIAN, STYLESHEET_MODENA
  • Constructor Summary

    Constructors 
    Constructor Description
    GUI()  
  • Method Summary

    Modifier and Type Method Description
    void askIP()
    Asks the user the server address to connect to
    void askLobbyName()
    Asks the user the name for the lobby to be created
    void askLobbySize()
    Asks the user the number of players for its lobby
    void askToReloadLastSettings​(java.util.List<java.lang.String> savedUsers)
    Asks the user if it wants to reload a previously saved address/username combo
    void askUsername()
    Asks the user the username it wants to use
    void buildAction​(java.util.List<Cell> gameBoard, java.util.List<Cell> buildableCells)
    Asks the user to select a cell to build on
    void chooseAction​(java.util.List<PossibleActions> possibleActions)
    Asks the user which action to perform
    void chooseBlockToBuild​(java.util.List<Block> buildableBlocks)
    Asks the user which block to build on a cell
    void chooseGameGods​(java.util.List<GodData> allGods, int size)
    Asks the lobby owner to choose the gods for the game
    void chooseLobbyToJoin​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> lobbiesAvailable)
    Asks the user which lobby it wants to join
    void chooseMatchReload()
    Asks the user if it wants to reload an existing saved match
    void chooseStartingPlayer​(java.util.List<java.lang.String> players)
    Asks the user which player will play first
    void chooseUserGod​(java.util.List<GodData> possibleGods)
    Asks the user to pick its god
    void chooseWorker​(java.util.List<Cell> workersCells)
    Asks the user to choose a worker
    void gameBoardUpdate​(java.util.List<Cell> gameBoard, java.util.List<PlayerData> players)
    Refreshes the game screen
    void gameStartScreen​(java.util.List<Cell> gameBoard, java.util.List<PlayerData> players)
    Sets up the game board and its graphics
    static void launchGui()  
    void lobbyOptions​(java.util.List<java.lang.String> options)
    Asks the user if it wants to join or create a lobby
    void moveAction​(java.util.List<Cell> gameBoard, java.util.List<Cell> walkableCells)
    Asks the user to select a cell to move its current worker on
    void placeWorker()
    Asks the user to place its worker on the board
    void printLogo()
    Prints the start screen
    void setInputManager​(InputManager inputManager)
    Sets the InputManager to parse the inputs
    void setInputString​(java.lang.String inputString)  
    static void setRoot​(java.lang.String fxml)  
    void showErrorMessage​(java.lang.String error)
    Shows an error message
    void showGameBoard​(java.util.List<Cell> gameBoard)
    Prints the game board on the screen
    void showSuccessMessage​(java.lang.String message)
    Shows a success message
    void start​(javafx.stage.Stage primarystage)  

    Methods inherited from class javafx.application.Application

    getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface it.polimi.ingsw.view.ViewInterface

    printUserServerCombos