public class Earth
extends java.lang.Object
| Constructor and Description |
|---|
Earth(int miniRadius,
int largeRadius)
Earth constructor
|
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.Group |
buildScene(int radius)
Creates the "Earth" by placing PhongMaterials on a Sphere
|
javafx.scene.Group |
getEarth()
Used by controller to access universe group
|
javafx.scene.Group |
getEarthHeatMap()
Used by VisualizerLayout to access heat map group
|
javafx.scene.Group |
getEarthOverlay()
Used by VisualizerLayout to access overlay group
|
javafx.scene.Group |
getEarthWeather()
Used by VisualizerLayout to access weather group
|
int[] |
getFoodProducedData(double lat,
double lon) |
java.lang.String |
getRegionString(double lat,
double lon) |
javafx.scene.Group |
getSmallEarth() |
float |
getTemperature(double lat,
double lon)
TODO: confirm with SIM team how precise their lat/long temperatures are being stored at
Uses a brute force method to find the closest temperature point at the given lat long.
|
float |
getTemperature(MapPoint point)
Gets the temperature at the closet point.
|
static void |
main(java.lang.String[] args)
Vis Team Testing Purposes- testing map overlays.
|
void |
rebuildHeatMapOverlay() |
void |
setLandTiles(java.util.ArrayList<LandTile> d) |
void |
setSpecialEventDatas(java.util.ArrayList<SpecialEventData> data) |
void |
startRotate()
Runs a continuous animation of the Earth rotating around its y-axis
Used for Mini Earth Mode in client starvationevasion.client.Aegislash.GUI
|
public Earth(int miniRadius,
int largeRadius)
miniRadius - not yet being used, but I'm leaving it in case we want it laterlargeRadius - used to determine in lat and long calcuations inside of UserEventHandlerpublic void rebuildHeatMapOverlay()
public javafx.scene.Group buildScene(int radius)
public javafx.scene.Group getEarth()
public javafx.scene.Group getSmallEarth()
public javafx.scene.Group getEarthOverlay()
public javafx.scene.Group getEarthWeather()
public javafx.scene.Group getEarthHeatMap()
public void startRotate()
public float getTemperature(MapPoint point)
point - point containing lat and longpublic float getTemperature(double lat,
double lon)
lat - latitude of the given point given by starvationevasion.client.Aegislash.GUIlon - longitude of the given point given by starvationevasion.client.Aegislash.GUIpublic void setSpecialEventDatas(java.util.ArrayList<SpecialEventData> data)
public int[] getFoodProducedData(double lat,
double lon)
lat - - latitudelon - - longitudepublic void setLandTiles(java.util.ArrayList<LandTile> d)
d - - list of land tiles parsed for food, temp, region informationpublic java.lang.String getRegionString(double lat,
double lon)
lat - - latitudelon - - longitudepublic static void main(java.lang.String[] args)