public class GUI
extends javafx.application.Application
| Constructor and Description |
|---|
GUI()
Default constructor for GUIOrig
Used for debugging the GUIOrig, cannot connect to a game
|
GUI(Client client,
LocalDataContainer localDataContainer) |
| Modifier and Type | Method and Description |
|---|---|
EnumRegion |
getAssignedRegion()
Returns the assigned region that the user was assigned
|
double |
getBoxHeight()
Gets the height of one of the grid spaces in the draft layout
|
double |
getBoxWidth()
gets the width of one of the grid spaces in the draft layout
|
ChatNode |
getChatNode() |
Client |
getClient() |
DraftLayout |
getDraftLayout()
Gets the DraftLayout to manipulate GUIOrig elements of the draft phase
|
EnumFood |
getFoodType(int index)
gets the FoodType at index of the food product list
|
GraphManager |
getGraphManager()
Returns the GraphManger.
|
ImageGetter |
getImageGetter()
Simple getter to let nodes access the ImageGetter
|
double |
getMaxHeight()
Simple getter for the screen height in pixels
|
double |
getMaxWidth()
Simple getter for the screen width in pixels
|
PopupManager |
getPopupManager()
Simple getter to let nodes access the PopupManager
|
javafx.stage.Stage |
getPrimaryStage()
Simple getter in case any node needs to get the stage
|
java.util.ArrayList<EnumFood> |
getProductList()
Simple getter to allow classes to view the list of products
Written before there was an list of products in the ENUM file
|
boolean |
getSeletingProduct()
Checks to see if the GUIOrig's context that the user needs to select a product to draft a card
|
VotingLayout |
getVotingLayout() |
boolean |
isDraftingPhase()
Getter that returns whether it is the drafting phase or not
|
static void |
main(java.lang.String[] args)
Main function which launches the GUIOrig thread
|
void |
setSelectingProduct(boolean toSet)
sets the context that the user is selecting a product to draft a card to the passed in param
|
void |
setSelectingRegion(boolean toSet)
sets the context that the user is selecting a region to draft a card to the passed in param
|
void |
start(javafx.stage.Stage primaryStage) |
void |
stop() |
void |
switchScenes()
Method which switches the which phase of the game is being displayed on the GUIOrig
|
void |
updateAssignedRegion(EnumRegion region)
Updates the GUIOrig's assigned region to the passed in region
|
public Client client
public GUI()
public GUI(Client client, LocalDataContainer localDataContainer)
public Client getClient()
public static void main(java.lang.String[] args)
args - public void start(javafx.stage.Stage primaryStage)
start in class javafx.application.Applicationpublic void stop()
stop in class javafx.application.Applicationpublic javafx.stage.Stage getPrimaryStage()
public PopupManager getPopupManager()
public ImageGetter getImageGetter()
public java.util.ArrayList<EnumFood> getProductList()
public ChatNode getChatNode()
public void switchScenes()
public boolean isDraftingPhase()
public void setSelectingRegion(boolean toSet)
toSet - public void setSelectingProduct(boolean toSet)
toSet - public boolean getSeletingProduct()
public double getMaxHeight()
public double getMaxWidth()
public double getBoxHeight()
public double getBoxWidth()
public DraftLayout getDraftLayout()
public VotingLayout getVotingLayout()
public GraphManager getGraphManager()
public EnumFood getFoodType(int index)
index - public void updateAssignedRegion(EnumRegion region)
region - public EnumRegion getAssignedRegion()