game.ai
Class ComputerAI

java.lang.Object
  |
  +--game.ai.AbstractAI
        |
        +--game.ai.ComputerAI
All Implemented Interfaces:
AI

public class ComputerAI
extends AbstractAI

Controlling class for computer directed AI communication.


Nested Class Summary
 
Nested classes inherited from class game.ai.AbstractAI
AbstractAI.BuildData
 
Field Summary
 
Fields inherited from class game.ai.AbstractAI
combatReports
 
Constructor Summary
ComputerAI(Civilization _civilization)
           
 
Method Summary
 void activatedTechnology(java.lang.String technology)
          Notify the AI that a technology has been activated.
 void completeTurn()
          Perform any tidy up work at end of turn.
 void issueOrders()
          Issue orders.
 void newTechnologyLevel(java.lang.String technology, float level)
          Notify the AI that a technology has gained another level.
 
Methods inherited from class game.ai.AbstractAI
carryOutOrders, clearBuiltMap, getCivilization, isBuilt, notifyBuilding, studyCombatReport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComputerAI

public ComputerAI(Civilization _civilization)
Method Detail

issueOrders

public void issueOrders()
Issue orders.


newTechnologyLevel

public void newTechnologyLevel(java.lang.String technology,
                               float level)
Notify the AI that a technology has gained another level.

Parameters:
technology - the name of the technology that has gained a level.
level - the new level.

activatedTechnology

public void activatedTechnology(java.lang.String technology)
Notify the AI that a technology has been activated.

Parameters:
technology - the name of the technology that is activated.

completeTurn

public void completeTurn()
Description copied from class: AbstractAI
Perform any tidy up work at end of turn.

Specified by:
completeTurn in interface AI
Overrides:
completeTurn in class AbstractAI