|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface to allow manipulation of levels of government administration.
| Method Summary | |
void |
addEthnicPopulation(Ethnicity ethnicity,
float population)
Add an ethnic population. |
void |
economicsTurn()
Perform one turn of economics. |
Square |
getCapital()
Get the administrative capital square, identical to getSquare(). |
Civilization |
getCivilization()
Get the civilization. |
Economy |
getEconomy()
Get the Economy associated with the GovtEntity |
float |
getEthnicDiscrimination(Ethnicity ethnicity)
Return the ethnic discrimination for this ethnicity. |
Government |
getGovernment()
Get the government. |
GovtEconOrders |
getGovtEconOrders()
get economic orders to apply to this administration's economy |
float |
getIsolation()
Return the isolation factor for this administration. |
java.lang.String |
getName()
Return the name of this instance. |
int |
getNumberOfSquares()
Return the number of squares controlled. |
float |
getPopulation()
Return the population. |
Square |
getPort()
Get the administrative main port. |
float |
getReligionEffect()
Return the religion effect for this administration. |
float |
getReligiousDiscrimination(Religion religion)
Return the religious discrimination for this ethnicity. |
Square |
getSquare()
Get the administrative capital square, identical to getCapital(). |
AreaAdministration |
getSuperior()
Get superior. |
float |
getTaxRate()
Getter for tax rate for this admin. |
boolean |
isGovernment()
Whether this administration is the government. |
java.util.Iterator |
iterator()
Iterate over sudordinates. |
boolean |
removeRecruits(float recruits)
Remove recruits (for building a unit). |
void |
setEconomy(Economy value)
Set the economy. |
void |
setName(java.lang.String value)
Set the name of this instance. |
void |
setPort(Square value)
Set the administrative main port. |
void |
setSquare(Square value)
Set the administrative capital square. |
void |
setSuperior(AreaAdministration value)
Set the superior administration. |
void |
setTaxRate(float r)
Tax rate for this administration |
void |
setupEthnicPopulations()
Compile all ethnic groups. |
int |
size()
Number of immediate subordinates. |
java.util.Iterator |
squareIterator()
Iterator over squares. |
void |
updateGovernmentPolicies(java.util.Map blockMap)
Method calculates a fresh version of GovernmentPolicies and averages them to the parameter. |
| Method Detail |
public Civilization getCivilization()
public Government getGovernment()
public boolean isGovernment()
public void setName(java.lang.String value)
value - the name to set.public java.lang.String getName()
public Square getCapital()
public Square getSquare()
public void setSquare(Square value)
public Square getPort()
public void setPort(Square value)
public AreaAdministration getSuperior()
public void setSuperior(AreaAdministration value)
value - the new superior.public java.util.Iterator iterator()
public java.util.Iterator squareIterator()
public int size()
public float getIsolation()
public int getNumberOfSquares()
public Economy getEconomy()
public void setEconomy(Economy value)
value - the Economy interface to add.public void economicsTurn()
public GovtEconOrders getGovtEconOrders()
public float getTaxRate()
public void setTaxRate(float r)
public float getPopulation()
public boolean removeRecruits(float recruits)
recruits - the recruits to remove.
public void addEthnicPopulation(Ethnicity ethnicity,
float population)
public void setupEthnicPopulations()
public void updateGovernmentPolicies(java.util.Map blockMap)
blockMap - the map of policies averaged over previous ethnic groups.public float getEthnicDiscrimination(Ethnicity ethnicity)
public float getReligiousDiscrimination(Religion religion)
public float getReligionEffect()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||