public class EarthViewer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Earth |
earth |
static ResourceLoader |
RESOURCE_LOADER |
static java.util.Queue<Event> |
SIM_EVENTS |
| Constructor and Description |
|---|
EarthViewer(int smallEarthRadius,
int largeEarthRadius) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVisStyleSheet(javafx.scene.Scene scene)
To be called by ClientGUI to add Vis style sheet to the Scene client creates
|
Earth |
getEarth()
Utilized by VisualizerLayout to access Earth
|
void |
updateEvents(java.util.ArrayList<SpecialEventData> specialEventData)
Called yearly/whenever Client decides to update Global Events (e.g., beginning of turn, beginning of year).
|
VisualizerLayout |
updateFull()
Used when Toggling into full Earth Mode
Returns a layout manager for the Visualizer starvationevasion.client.Aegislash.GUI
use this line inside ClientGUI: Scene earthScene = new Scene(earthViewer.updateFull(),700,700);
See handle() method inside ClientGUI for more info
|
void |
updateLandTiles(java.util.ArrayList<LandTile> d) |
javafx.scene.Group |
updateMini()
Returns small rotating non interactive globe for display in corner of ClientGUI
|
public static java.util.Queue<Event> SIM_EVENTS
public static final ResourceLoader RESOURCE_LOADER
public Earth earth
public VisualizerLayout updateFull()
public javafx.scene.Group updateMini()
public void updateEvents(java.util.ArrayList<SpecialEventData> specialEventData)
specialEventData - contains each of the six special event data. Each specialeventdata can contain multiple locations.public void updateLandTiles(java.util.ArrayList<LandTile> d)
public void addVisStyleSheet(javafx.scene.Scene scene)
scene - Client created Scene using VisualizerLayout (returned by updateFull) as rootpublic Earth getEarth()