public class BeginnerPersonality extends Personality
id, username| Constructor and Description |
|---|
BeginnerPersonality(java.lang.String username)
Creates a beginner personality.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
AttemptBuildCity(GameModel model) |
private void |
AttemptBuildRoad(GameModel model) |
private void |
AttemptBuildSettlement(GameModel model) |
private void |
AttemptBuyDevCard(GameModel model) |
void |
ChatReceived(int gameID,
java.lang.String message) |
void |
Discard(int gameID) |
protected void |
Play(GameModel model) |
void |
ReceivedOffer(int gameID,
OfferedTrade trade) |
private void |
Rob(GameModel model) |
protected void |
Setup(GameModel model) |
void |
TakeTurn(int gameID) |
AcceptTrade, BuildCity, BuildRoad, BuildSettlement, BuyDevCard, Discard, FinishTurn, GetAIPlayer, GetAvailableEdges, GetAvailableVertices, GetBank, GetColor, GetIndexByColor, GetModel, GetSettlements, Rob, RollDice, RollDice, SendChat, SetIDpublic BeginnerPersonality(java.lang.String username)
username - The AIs username.public void TakeTurn(int gameID)
TakeTurn in class Personalitypublic void Discard(int gameID)
Discard in class Personalitypublic void ChatReceived(int gameID,
java.lang.String message)
ChatReceived in class Personalitypublic void ReceivedOffer(int gameID,
OfferedTrade trade)
ReceivedOffer in class Personalityprotected void Setup(GameModel model)
Setup in class Personalityprotected void Play(GameModel model)
Play in class Personalityprivate void AttemptBuildCity(GameModel model)
private void AttemptBuildSettlement(GameModel model)
private void AttemptBuildRoad(GameModel model)
private void AttemptBuyDevCard(GameModel model)
private void Rob(GameModel model)