|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface to the AI. This will be implemented differently for player and non-player civilizations.
| Method Summary | |
void |
activatedTechnology(java.lang.String technology)
Notify the AI that a technology has been activated. |
void |
carryOutOrders()
Carry out orders. |
void |
completeTurn()
Perform any tidy up work at end of turn. |
Civilization |
getCivilization()
Return the civilization. |
boolean |
isBuilt(java.lang.String value)
Return true if the named buildable object has been built. |
void |
issueOrders()
Issue orders. |
void |
newTechnologyLevel(java.lang.String technology,
float level)
Notify the AI that a technology has gained another level. |
void |
notifyBuilding(Buildable buildable,
java.lang.Object object,
Square square,
boolean success)
Notify the AI that building has taken place. |
void |
studyCombatReport(CombatReport report)
Study combat report. |
| Method Detail |
public void completeTurn()
public void issueOrders()
public void carryOutOrders()
public void newTechnologyLevel(java.lang.String technology,
float level)
technology - the name of the technology that has gained a level.level - the new level.public void activatedTechnology(java.lang.String technology)
technology - the name of the technology that is activated.
public void notifyBuilding(Buildable buildable,
java.lang.Object object,
Square square,
boolean success)
buildable - the buildable class.object - the actual object that has been built.square - the place where built.public boolean isBuilt(java.lang.String value)
public Civilization getCivilization()
public void studyCombatReport(CombatReport report)
report - the combat report to study.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||