|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--game.ai.AbstractAI
Abstract class to hold information common to computer and player directed civilizations.
| Nested Class Summary | |
class |
AbstractAI.BuildData
|
| Field Summary | |
protected java.util.List |
combatReports
List of combat square reports. |
| Constructor Summary | |
AbstractAI(Civilization _civilization)
Constructor. |
|
| Method Summary | |
void |
carryOutOrders()
Carry out orders. |
protected void |
clearBuiltMap()
|
void |
completeTurn()
Perform any tidy up work at end of turn. |
Civilization |
getCivilization()
Return the civiliztaion. |
boolean |
isBuilt(java.lang.String value)
Return true if the named buildable object has been built. |
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 reports. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface game.interfaces.AI |
activatedTechnology, issueOrders, newTechnologyLevel |
| Field Detail |
protected java.util.List combatReports
| Constructor Detail |
public AbstractAI(Civilization _civilization)
_civilization - the owning civilization.| Method Detail |
public void carryOutOrders()
carryOutOrders in interface AIpublic Civilization getCivilization()
getCivilization in interface AIpublic void completeTurn()
completeTurn in interface AI
public void notifyBuilding(Buildable buildable,
java.lang.Object object,
Square square,
boolean success)
notifyBuilding in interface AIbuildable - the buildable class.object - the actual object that has been built.square - the place where built.public boolean isBuilt(java.lang.String value)
AI
isBuilt in interface AIprotected void clearBuiltMap()
public void studyCombatReport(CombatReport report)
studyCombatReport in interface AIreport - the combat report to study.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||