|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--game.government.administration.AbstractAdministration
Abstract class to implement superior and economy in administration.
| Field Summary | |
protected float |
taxRate
Tax rate for economy that this administration runs. |
protected boolean |
taxRateSet
Used to determine if we should look to a higher administration level to find the appropriate tax rate. |
| Constructor Summary | |
AbstractAdministration()
Constructor. |
|
| Method Summary | |
void |
addEthnicPopulation(Ethnicity ethnicity,
float population)
Add an ethnic population to an ethnic group. |
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 admin's economy |
float |
getIsolation()
Return the isolation factor for this administration. |
java.lang.String |
getName()
Return the name of this instance. |
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. |
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, identical to setCapital(). |
void |
setSuperior(AreaAdministration value)
Set the superior administration. |
void |
setTaxRate(float r)
Tax rate for this economy. |
void |
setupEthnicPopulations()
Compile all ethnic groups. |
void |
updateGovernmentPolicies(java.util.Map blockMap)
Method calculates a fresh version of GovernmentPolicies and averages them to the parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface game.interfaces.Administration |
economicsTurn, getNumberOfSquares, getPopulation, iterator, removeRecruits, size, squareIterator |
| Field Detail |
protected float taxRate
protected boolean taxRateSet
| Constructor Detail |
public AbstractAdministration()
| Method Detail |
public Civilization getCivilization()
getCivilization in interface Administrationpublic Government getGovernment()
getGovernment in interface Administrationpublic boolean isGovernment()
isGovernment in interface Administrationpublic void setName(java.lang.String value)
setName in interface Administrationvalue - the name to set.public java.lang.String getName()
getName in interface Administrationpublic Square getCapital()
getCapital in interface Administrationpublic Square getSquare()
getSquare in interface Administrationpublic void setSquare(Square value)
setSquare in interface Administrationpublic Square getPort()
getPort in interface Administrationpublic void setPort(Square value)
setPort in interface Administrationpublic AreaAdministration getSuperior()
getSuperior in interface Administrationpublic void setSuperior(AreaAdministration value)
setSuperior in interface Administrationvalue - the new superior.public float getIsolation()
getIsolation in interface Administration
public void addEthnicPopulation(Ethnicity ethnicity,
float population)
addEthnicPopulation in interface Administrationpublic void setupEthnicPopulations()
setupEthnicPopulations in interface Administrationpublic void updateGovernmentPolicies(java.util.Map blockMap)
updateGovernmentPolicies in interface AdministrationblockMap - the map of policies averaged over previous ethnic groups.public float getEthnicDiscrimination(Ethnicity ethnicity)
getEthnicDiscrimination in interface Administrationpublic float getReligiousDiscrimination(Religion religion)
getReligiousDiscrimination in interface Administrationpublic float getReligionEffect()
getReligionEffect in interface Administrationpublic Economy getEconomy()
getEconomy in interface Administrationpublic void setEconomy(Economy value)
setEconomy in interface Administrationvalue - the Economy interface to add.public GovtEconOrders getGovtEconOrders()
getGovtEconOrders in interface Administrationpublic float getTaxRate()
getTaxRate in interface Administrationpublic void setTaxRate(float r)
setTaxRate in interface Administration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||