| Modifier and Type | Field and Description | 
|---|---|
private int | 
id  | 
protected Personality | 
personality  | 
private AIType | 
type  | 
| Modifier | Constructor and Description | 
|---|---|
protected  | 
AI(AIType type,
  Personality personality)
Constructs AI object. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Chat(int gameID,
    java.lang.String message)
Called to give the AI a chat message. 
 | 
void | 
Discard(int gameID)
Called to tell the AI to discard cards. 
 | 
protected java.util.List<CatanColor> | 
GetAvailableColors(java.util.Set<CatanColor> notAvailable)  | 
int | 
GetID()
Gets the player ID of the AI. 
 | 
abstract java.lang.String | 
GetName()
Gets the formal name of the AI. 
 | 
AIType | 
GetType()
Gets the AI type of the AI. 
 | 
CatanColor | 
PickColor(java.util.Set<CatanColor> notAvailable)
Called to let a AI pick a color. 
 | 
void | 
ReceivedOffer(int gameID,
             OfferedTrade trade)
Called to tell the AI to take its turn. 
 | 
void | 
SetID(int id)
Sets the ID of the AI. 
 | 
void | 
TakeTurn(int gameID)
Called to tell the AI to take its turn. 
 | 
private int id
private AIType type
protected Personality personality
protected AI(AIType type, Personality personality)
type - The type of AI.public abstract java.lang.String GetName()
public AIType GetType()
public int GetID()
public void SetID(int id)
id - The ID to set.public CatanColor PickColor(java.util.Set<CatanColor> notAvailable)
notAvailable - The colors not available to the AI as they are already picked.protected java.util.List<CatanColor> GetAvailableColors(java.util.Set<CatanColor> notAvailable)
public void TakeTurn(int gameID)
gameID - The ID of the game they are playing in.public void ReceivedOffer(int gameID,
                          OfferedTrade trade)
gameID - The ID of the game they are playing in.public void Discard(int gameID)
gameID - The ID of the game they are playing in.public void Chat(int gameID,
                 java.lang.String message)
gameID - The ID of the game they are playing in.message - The chat message.