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.
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComputerAI
public ComputerAI(Civilization _civilization)
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