|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--game.government.CivilizationClass
The class which represents a cvilization.
| Constructor Summary | |
CivilizationClass()
Constructor. |
|
CivilizationClass(NamedObject value)
Constructor. |
|
| Method Summary | |
void |
addCondition(Condition value)
Add a condition. |
void |
economicsTurn()
Perform one turn's worth of economics. |
Civilization |
findEnemy()
Find an enemy civilization. |
java.lang.String |
getAdjective()
Get the adjective for the civilization. |
AI |
getAI()
Return the AI. |
Attitude |
getAttitude(Civilization civ)
Get attitude of another civilization. |
Square |
getCapital()
Return the location of the capital. |
CivEconomy |
getCivEconomy()
|
java.awt.Color |
getColor()
Return the civilization's color. |
java.lang.String |
getDefeatMessage()
Gets the defeat message. |
java.lang.String |
getDescription()
Get the description for the civilization. |
float |
getDispersal()
Get dispersal. |
Government |
getGovernment()
Get the government. |
HighCommand |
getHighCommand()
Get the high command. |
java.lang.String |
getName()
Get the name of the civilization. |
float |
getRecruitment()
Get recruitment. |
Technologies |
getTechnologies()
Get the technology interface for this civilization. |
Victory |
getVictory()
Gets the victory conditions. |
java.lang.String |
getVictoryMessage()
Gets the victory message. |
static XML |
getXML()
|
boolean |
hasCondition(Condition value)
Whether the civilization has the condition. |
boolean |
isAlive()
Is this civilization alive? |
boolean |
isEnemy(Civilization otherCiv)
Check to see if this civilization regards another civilization as an enemy. |
boolean |
isSelectable()
Is this object selectable? |
void |
remove()
Tidy up when this civilization is no more. |
void |
selectStartingSquare()
Set the starting square to be the selected square. |
void |
setAdjective(java.lang.String value)
Set the adjective for the civilization. |
void |
setAttitude(Civilization civ,
Attitude attitude)
Set attitude of another civilization. |
void |
setCity(City city)
Set a city. |
void |
setColor(java.awt.Color value)
Set the civilization's color by color. |
void |
setColor(java.lang.String value)
Set the civilization's color by name. |
void |
setDefeatMessage(java.lang.String value)
Sets the defeat message. |
void |
setDescription(java.lang.String value)
Set the description for the civilization. |
void |
setDispersal(float value)
Set dispersal level. |
void |
setGovernment(Government value)
Set government. |
void |
setHighCommand(HighCommandClass value)
Set high command. |
void |
setName(NamedObject value)
Set the name of the civilization. |
void |
setName(java.lang.String value)
Set the name of the civilization. |
void |
setPlayerAI()
Set the AI for the PLayer. |
void |
setPsychotic()
Set the civilization to psychotic. |
void |
setRecruitment(float value)
Set recruitment level. |
void |
setSelectable(boolean dummy)
Set selectable state. |
void |
setStart(Location value)
Set the starting square. |
void |
setStart(java.lang.String value)
Set the starting square. |
void |
setVictory(Victory value)
Sets the victory conditions. |
void |
setVictoryMessage(java.lang.String value)
Sets the victory message. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CivilizationClass()
public CivilizationClass(NamedObject value)
| Method Detail |
public void setPlayerAI()
setPlayerAI in interface Civilizationpublic AI getAI()
getAI in interface Civilizationpublic void setName(java.lang.String value)
value - name to give the civilization.public void setName(NamedObject value)
value - name to give the civilization.public java.lang.String getName()
getName in interface Civilizationpublic void setAdjective(java.lang.String value)
value - adjective that describes the civilization.public java.lang.String getAdjective()
getAdjective in interface Civilizationpublic void setDescription(java.lang.String value)
value - description that describes the civilization.public java.lang.String getDescription()
getDescription in interface Civilizationpublic void setColor(java.lang.String value)
value - the name of the color.public void setColor(java.awt.Color value)
value - the color.public java.awt.Color getColor()
getColor in interface Civilizationpublic void setCity(City city)
setCity in interface Civilizationpublic void setVictoryMessage(java.lang.String value)
value - the victory message.public java.lang.String getVictoryMessage()
getVictoryMessage in interface Civilizationpublic void setDefeatMessage(java.lang.String value)
value - the defeat message.public java.lang.String getDefeatMessage()
getDefeatMessage in interface Civilizationpublic void setVictory(Victory value)
value - the victory conditions.public Victory getVictory()
getVictory in interface Civilizationpublic void setRecruitment(float value)
setRecruitment in interface Civilizationvalue - value to set.public float getRecruitment()
getRecruitment in interface Civilizationpublic void setDispersal(float value)
setDispersal in interface Civilizationvalue - value to set.public float getDispersal()
getDispersal in interface Civilizationpublic void setGovernment(Government value)
value - the government.public Government getGovernment()
getGovernment in interface Civilizationpublic void setHighCommand(HighCommandClass value)
value - the high command.public HighCommand getHighCommand()
getHighCommand in interface Civilizationpublic void remove()
public Technologies getTechnologies()
getTechnologies in interface Civilization
public void setAttitude(Civilization civ,
Attitude attitude)
setAttitude in interface Civilizationciv - the other civilization.attitude - the attitude this to the other civilization.public Attitude getAttitude(Civilization civ)
getAttitude in interface Civilizationciv - the other civilization.
public boolean isEnemy(Civilization otherCiv)
isEnemy in interface CivilizationotherCiv - the other civilization.
public Civilization findEnemy()
findEnemy in interface Civilizationpublic void setPsychotic()
setPsychotic in interface Civilizationpublic void addCondition(Condition value)
addCondition in interface Civilizationvalue - the condition to add.public boolean hasCondition(Condition value)
hasCondition in interface Civilizationvalue - the condition to test.public void economicsTurn()
economicsTurn in interface Civilizationpublic Square getCapital()
public boolean isAlive()
isAlive in interface Civilizationpublic boolean isSelectable()
isSelectable in interface Selectablepublic void setSelectable(boolean dummy)
setSelectable in interface Selectabledummy - not used.public void setStart(Location value)
value - the starting square coordinates.public void setStart(java.lang.String value)
value - the starting square coordinates.public void selectStartingSquare()
selectStartingSquare in interface Civilizationpublic CivEconomy getCivEconomy()
public java.lang.String toString()
toString in class java.lang.Objectpublic static XML getXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||