Package | Description |
---|---|
client.model | |
client.networking | |
server.ai.characters.personalities | |
server.commands.game | |
server.commands.moves | |
server.model | |
shared.model |
Modifier and Type | Method and Description |
---|---|
private void |
ClientGameManager.reloadGame(GameModel model)
Loads in a game
|
private void |
ClientGameManager.reloadGame(GameModel game,
boolean forced) |
Modifier and Type | Method and Description |
---|---|
GameModel |
ServerProxy.acceptTrade(boolean willAccept)
Notifies the server whether this player has decided to accept or reject a trade
|
GameModel |
GSONServerProxy.acceptTrade(boolean willAccept) |
GameModel |
ServerProxy.buildCity(Coordinate location)
Notifies the server that the user has decided to build a city
|
GameModel |
GSONServerProxy.buildCity(Coordinate location) |
GameModel |
ServerProxy.buildRoad(Coordinate start,
Coordinate end,
boolean free)
Notifies the server that the user has decided to build a road
|
GameModel |
GSONServerProxy.buildRoad(Coordinate start,
Coordinate end,
boolean free) |
GameModel |
ServerProxy.buildSettlement(Coordinate location,
boolean free)
Notifies the server that the user has decided to build a settlement
|
GameModel |
GSONServerProxy.buildSettlement(Coordinate location,
boolean free) |
GameModel |
ServerProxy.buyDevCard()
Notifies the server that the user has bought a development card
|
GameModel |
GSONServerProxy.buyDevCard() |
GameModel |
ServerProxy.discardCards(java.util.List<java.lang.Integer> resourceList)
Notifies the server that the user has discarded cards
|
GameModel |
GSONServerProxy.discardCards(java.util.List<java.lang.Integer> resourceList) |
GameModel |
ServerProxy.finishTurn()
Notifies the server that the user has finished his turn
|
GameModel |
GSONServerProxy.finishTurn() |
GameModel |
ServerProxy.getGameModel(int version)
Retrieves the game model from the server
|
GameModel |
GSONServerProxy.getGameModel(int version) |
GameModel |
ServerProxy.maritimeTrade(int ratio,
ResourceType inputResource,
ResourceType outputResource)
Notifies the server that the user has decided to initiate a maritime trade
|
GameModel |
GSONServerProxy.maritimeTrade(int ratio,
ResourceType inputResource,
ResourceType outputResource) |
GameModel |
ServerProxy.monopolyCard(ResourceType resource)
Notifies the server that the user has played a monopoly card
|
GameModel |
GSONServerProxy.monopolyCard(ResourceType resource) |
GameModel |
ServerProxy.monumentCard()
Notifies the server that the user has played a monument card
|
GameModel |
GSONServerProxy.monumentCard() |
GameModel |
ServerProxy.offerTrade(java.util.List<java.lang.Integer> resourceList,
int receiver)
Notifies the server that the user has decided to offer a trade to another player
|
GameModel |
GSONServerProxy.offerTrade(java.util.List<java.lang.Integer> resourceList,
int receiver) |
GameModel |
ServerProxy.roadBuildingCard(Coordinate start1,
Coordinate end1,
Coordinate start2,
Coordinate end2)
Notifies the server that the user has played a road building card
|
GameModel |
GSONServerProxy.roadBuildingCard(Coordinate start1,
Coordinate end1,
Coordinate start2,
Coordinate end2) |
GameModel |
ServerProxy.robPlayer(int victimIndex,
Coordinate location)
Notifies the server that the user has decided to rob another player
|
GameModel |
GSONServerProxy.robPlayer(int victimIndex,
Coordinate location) |
GameModel |
ServerProxy.rollNumber(int roll)
Reports the result of a dice roll to the server
|
GameModel |
GSONServerProxy.rollNumber(int roll) |
GameModel |
ServerProxy.sendChat(java.lang.String content)
Sends a chat message from the specified user to the server
|
GameModel |
GSONServerProxy.sendChat(java.lang.String content) |
GameModel |
ServerProxy.soldierCard(int victimIndex,
Coordinate location)
Notifies the server that the user has played a soldier card
|
GameModel |
GSONServerProxy.soldierCard(int victimIndex,
Coordinate location) |
GameModel |
ServerProxy.yearOfPlentyCard(ResourceType resource1,
ResourceType resource2)
Notifies the server that the user has played a year of plenty card
|
GameModel |
GSONServerProxy.yearOfPlentyCard(ResourceType resource1,
ResourceType resource2) |
Modifier and Type | Method and Description |
---|---|
protected GameModel |
Personality.AcceptTrade(int game,
boolean willAccept) |
protected GameModel |
Personality.BuildCity(int game,
Coordinate point) |
protected GameModel |
Personality.BuildRoad(int game,
Coordinate start,
Coordinate end,
boolean free) |
protected GameModel |
Personality.BuildSettlement(int game,
Coordinate point,
boolean free) |
protected GameModel |
Personality.BuyDevCard(int game) |
protected GameModel |
Personality.Discard(int game,
java.util.List<java.lang.Integer> resourceList) |
protected GameModel |
Personality.GetModel(int game) |
protected GameModel |
Personality.Rob(int game,
int victimIndex,
Coordinate hex) |
protected GameModel |
Personality.RollDice(int game)
Rolls the dice with a random number (2-12)
|
protected GameModel |
Personality.RollDice(int game,
int roll)
Rolls the dice at a specific number
|
protected GameModel |
Personality.SendChat(int game,
java.lang.String message)
Sends a chat
|
Modifier and Type | Method and Description |
---|---|
private void |
BeginnerPersonality.AttemptBuildCity(GameModel model) |
private void |
BeginnerPersonality.AttemptBuildRoad(GameModel model) |
private void |
BeginnerPersonality.AttemptBuildSettlement(GameModel model) |
private void |
BeginnerPersonality.AttemptBuyDevCard(GameModel model) |
protected Player |
Personality.GetAIPlayer(GameModel model) |
protected java.util.List<Edge> |
Personality.GetAvailableEdges(GameModel model) |
protected java.util.List<Vertex> |
Personality.GetAvailableVertices(GameModel model) |
protected Bank |
Personality.GetBank(GameModel model) |
protected CatanColor |
Personality.GetColor(GameModel model) |
protected int |
Personality.GetIndexByColor(GameModel model,
CatanColor color) |
protected java.util.List<Vertex> |
Personality.GetSettlements(GameModel model) |
protected abstract void |
Personality.Play(GameModel model) |
protected void |
BeginnerPersonality.Play(GameModel model) |
private void |
BeginnerPersonality.Rob(GameModel model) |
protected abstract void |
Personality.Setup(GameModel model) |
protected void |
BeginnerPersonality.Setup(GameModel model) |
Modifier and Type | Field and Description |
---|---|
private GameModel |
GameResetCommand.gm |
Modifier and Type | Field and Description |
---|---|
private GameModel |
MovesYearOfPlentyCommand.gm |
private GameModel |
MovesRoadBuildingCommand.gm |
private GameModel |
MovesMonumentCommand.gm |
private GameModel |
MovesMonopolyCommand.gm |
private GameModel |
MovesBuildRoadCommand.gm |
private GameModel |
MovesRollNumberCommand.model |
Modifier and Type | Method and Description |
---|---|
abstract GameModel |
ServerGameManager.ServerGetModel()
Gets the current game model
|
GameModel |
RealServerGameManager.ServerGetModel()
Gets the current game model
|
GameModel |
MockServerGame.ServerGetModel() |
Modifier and Type | Method and Description |
---|---|
GameModel |
Translate.fromNetGameModel(NetGameModel netGameModel)
Main function -- this translates a netGameModel (from server) into a GameModel (for model)
All of the other functions in this class are sub-functions of this main function
|