public class RegionData extends java.lang.Object implements Sendable
JSON.Parser| Modifier and Type | Field and Description |
|---|---|
int |
ethanolProducerTaxCredit
This region's current ethanol producer tax credit as an
integer percentage from [0 through 100].
|
int[] |
farmArea
This region's land area (in square kilometers)
being used for farm production of each crop type at the end of the current year.
|
long[] |
foodExported
This region's food exported (in metric tons) of each foodType during the current year
indexed by EnumFood.ordinal().
|
long[] |
foodImported
This region's food exported (in metric tons) of each foodType during the current year
indexed by EnumFood.ordinal().
|
int[] |
foodIncome
This is the farm income in millions of dollars from to the region's
production of each foodType during the past turn (3 years).
This includes farm income for food consumed as well as income from exported foods. Note: foodProduced*foodPrice for a given food is the gross income. |
long[] |
foodProduced
This region's production (in metric tons) of each foodType during the past turn (3 years).
Index by EnumFood.ordinal() |
double |
humanDevelopmentIndex
This region's Human Development Index at the start of the current year.
|
int |
landArea
This region's total land area (in square kilometers).
|
int |
population
This region's population (in thousands of people) during the current year.
|
EnumRegion |
region |
int |
revenueBalance
This field is zero for non-player regions.
|
double |
undernourished
This region's percent of undernourished people at start of the current year.
|
| Constructor and Description |
|---|
RegionData(EnumRegion region) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
void |
fromJSON(java.lang.Object doc)
Convert String into JSON
|
java.lang.String |
getType() |
void |
setType(java.lang.String type) |
JSONDocument |
toJSON()
Convert class into json
|
java.lang.String |
toString() |
public EnumRegion region
public int revenueBalance
public int population
public double undernourished
public double humanDevelopmentIndex
public long[] foodProduced
public int[] foodIncome
public long[] foodImported
foodProduced[i]+@link #foodImported}[i]-foodExported[i]public long[] foodExported
foodProduced[i]+@link #foodImported}[i]-foodExported[i]public int ethanolProducerTaxCredit
public int landArea
public int[] farmArea
public RegionData(EnumRegion region)
public java.lang.String toString()
toString in class java.lang.Objectpublic JSONDocument toJSON()
JSONpublic void fromJSON(java.lang.Object doc)
JSONpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object