|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.common.model.FreeColObject
net.sf.freecol.server.ai.AIObject
net.sf.freecol.server.ai.NewAIPlayer
net.sf.freecol.server.ai.EuropeanAIPlayer
net.sf.freecol.server.ai.REFAIPlayer
AIPlayer
. Eventual
specialization of AI should extend AIPlayer, see ColonialAIPlayer
.
The method startWorking()
gets called by the
AIInGameInputHandler
when it is this player's turn.
public class REFAIPlayer
Objects of this class contains AI-information for a single Player
and
is used for controlling this getPlayer().
Field Summary |
---|
Fields inherited from class net.sf.freecol.common.model.FreeColObject |
---|
ID_ATTRIBUTE_TAG |
Constructor Summary | |
---|---|
REFAIPlayer()
Deprecated. |
Method Summary | |
---|---|
boolean |
acceptIndianDemand(Unit unit,
Colony colony,
Goods goods,
int gold)
Deprecated. Decides whether to accept an Indian demand, or not. |
void |
startWorking()
Deprecated. Tells this AIPlayer to make decisions. |
Methods inherited from class net.sf.freecol.server.ai.EuropeanAIPlayer |
---|
getAIColonyIterator, getTileImprovementPlanIterator, getWishIterator, hasFewColonies, hasManOfWar, recruitAIUnitInEurope, tradeProposition, trainAIUnitInEurope |
Methods inherited from class net.sf.freecol.server.ai.NewAIPlayer |
---|
buyProposition, getAIUnitIterator, getBestTreasureTrain, getConnection, getId, getPlayer, getXMLElementTagName, registerSellGoods, setDebuggingConnection |
Methods inherited from class net.sf.freecol.server.ai.AIObject |
---|
dispose, getAIMain, getGame, isUninitialized, readFromXML |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public REFAIPlayer()
Method Detail |
---|
public void startWorking()
AIPlayer
to make decisions. The
AIPlayer
is done doing work this turn when this method
returns.
startWorking
in class NewAIPlayer
public boolean acceptIndianDemand(Unit unit, Colony colony, Goods goods, int gold)
acceptIndianDemand
in class EuropeanAIPlayer
unit
- The unit making demands.colony
- The colony where demands are being made.goods
- The goods demanded.gold
- The amount of gold demanded.
true
if this AIPlayer
accepts the
indian demand and false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |