Class ChooseGodController

java.lang.Object
it.polimi.ingsw.client.gui.ChooseGodController

public class ChooseGodController
extends java.lang.Object
Controller class of the GUI choose god scene.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected static java.lang.String apolloDescription  
    protected static java.lang.String artemisDescription  
    protected static java.lang.String athenaDescription  
    protected static java.lang.String atlasDescription  
    protected static java.lang.String charonDescription  
    protected static java.lang.String demeterDescription  
    protected static java.lang.String hephaestusDescription  
    protected static java.lang.String heraDescription  
    protected static java.lang.String hestiaDescription  
    protected static java.lang.String minotaurDescription  
    protected static java.lang.String panDescription  
    protected static java.lang.String prometheusDescription  
    protected java.util.ArrayList<javafx.scene.image.ImageView> redFrames  
    protected static java.lang.String tritonDescription  
    protected static java.lang.String zeusDescription  
  • Constructor Summary

    Constructors 
    Constructor Description
    ChooseGodController()  
  • Method Summary

    Modifier and Type Method Description
    void askPlayerGod()
    Gives the player the order to choose the god for the game.
    void getGodFromChallenger​(int numOfPlayers, int alreadyChosenGods)  
    protected void init()  
    void otherPlayerChoseGod​(java.lang.String otherPlayer, java.lang.String chosenGod)
    If a player has already chosen the god for the current game, the other players are notified of his choice.
    void playerChoseInvalidGod()
    Allows to print into the main text field that the god was already chosen.
    void printChosenGods​(java.util.ArrayList<java.lang.String> chosenGods)
    Shows with a frame the gods that the challenger has chosen for the game.
    void setChallenger()  
    void waitChallengerChooseGods​(java.lang.String challenger)
    Lets the player know that the challenger is choosing the gods for the game.
    void waitOtherPlayerChooseGod​(java.lang.String otherPlayer)
    Lets the player know that the other player is choosing his god for the game.

    Methods inherited from class java.lang.Object

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