game.interfaces
Interface Civilization

All Superinterfaces:
Selectable
All Known Implementing Classes:
CivilizationClass

public interface Civilization
extends Selectable

The class which represents a cvilization.


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.
 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.
 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.
 void selectStartingSquare()
          Set the starting square to be the selected square.
 void setAttitude(Civilization civ, Attitude attitude)
          Set attitude of another civilization.
 void setCity(City city)
          Set a city.
 void setDispersal(float value)
          Set dispersal level.
 void setPlayerAI()
          Set the AI for the PLayer.
 void setPsychotic()
          Set the civilization to psychotic.
 void setRecruitment(float value)
          Set recruitment level.
 
Methods inherited from interface game.libraries.gui.Selectable
isSelectable, setSelectable
 

Method Detail

setPlayerAI

public void setPlayerAI()
Set the AI for the PLayer.


getAI

public AI getAI()
Return the AI.


getName

public java.lang.String getName()
Get the name of the civilization.

Specified by:
getName in interface Selectable
Returns:
the name of this civilization.

getAdjective

public java.lang.String getAdjective()
Get the adjective for the civilization.

Returns:
the adjective describing this civilization.

getDescription

public java.lang.String getDescription()
Get the description for the civilization.

Returns:
the description describing this civilization.

getColor

public java.awt.Color getColor()
Return the civilization's color.

Returns:
the civilization's color.

setCity

public void setCity(City city)
Set a city.


selectStartingSquare

public void selectStartingSquare()
Set the starting square to be the selected square.


getVictoryMessage

public java.lang.String getVictoryMessage()
Gets the victory message.

Returns:
the victory message.

getDefeatMessage

public java.lang.String getDefeatMessage()
Gets the defeat message.

Returns:
the defeat message.

getVictory

public Victory getVictory()
Gets the victory conditions.

Returns:
the victory conditions.

setRecruitment

public void setRecruitment(float value)
Set recruitment level.

Parameters:
value - value to set.

getRecruitment

public float getRecruitment()
Get recruitment.

Returns:
proportion that can be recruited.

setDispersal

public void setDispersal(float value)
Set dispersal level.

Parameters:
value - value to set.

getDispersal

public float getDispersal()
Get dispersal.

Returns:
proportion that can be recruited.

getGovernment

public Government getGovernment()
Get the government.

Returns:
the government.

getHighCommand

public HighCommand getHighCommand()
Get the high command.

Returns:
the high command.

getTechnologies

public Technologies getTechnologies()
Get the technology interface for this civilization.

Returns:
the technology interface for this civilization.

setAttitude

public void setAttitude(Civilization civ,
                        Attitude attitude)
Set attitude of another civilization.

Parameters:
civ - the other civilization.
attitude - the attitude this to the other civilization.

getAttitude

public Attitude getAttitude(Civilization civ)
Get attitude of another civilization.

Parameters:
civ - the other civilization.
Returns:
the the attitude of this civilization to the other one.

isEnemy

public boolean isEnemy(Civilization otherCiv)
Check to see if this civilization regards another civilization as an enemy.

Parameters:
otherCiv - the other civilization.
Returns:
true if the other civ is regarded as an enemy.

findEnemy

public Civilization findEnemy()
Find an enemy civilization.

Returns:
an enemy civilization, or null if there is none.

setPsychotic

public void setPsychotic()
Set the civilization to psychotic.


addCondition

public void addCondition(Condition value)
Add a condition.

Parameters:
value - the condition to add.

hasCondition

public boolean hasCondition(Condition value)
Whether the civilization has the condition.

Parameters:
value - the condition to test.

economicsTurn

public void economicsTurn()
Perform one turn's worth of economics.


isAlive

public boolean isAlive()
Is this civilization alive?

Returns:
true if it is.