Package | Description |
---|---|
client.model | |
client.networking |
Modifier and Type | Method and Description |
---|---|
void |
ClientGameManager.maritimeTradeCurrentPlayer(int ratio,
ResourceType inputResource,
ResourceType outputResource)
Takes resource from the bank and gives them to the current player
|
void |
ClientGameManager.offerTrade(java.util.List<java.lang.Integer> resourceList,
int receiver)
Offers a trade to a player
|
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
|
NetGameModel |
RealEarlyServerProxy.acceptTrade(boolean willAccept) |
NetGameModel |
MockServerProxy.acceptTrade(boolean willAccept)
Notifies the server whether this player has decided to accept or reject a trade
|
GameModel |
GSONServerProxy.acceptTrade(boolean willAccept) |
NetGameModel |
EarlyServerProxy.acceptTrade(boolean willAccept)
Notifies the server whether this player has decided to accept or reject a trade
|
void |
ServerProxy.addAI(AIType aiType)
Adds an AI to the game
|
void |
RealEarlyServerProxy.addAI(AIType aiType) |
void |
MockServerProxy.addAI(AIType aiType)
Adds an AI to the game
|
void |
GSONServerProxy.addAI(AIType aiType) |
void |
EarlyServerProxy.addAI(AIType aiType)
Adds an AI to the game
|
GameModel |
ServerProxy.buildCity(Coordinate location)
Notifies the server that the user has decided to build a city
|
GameModel |
GSONServerProxy.buildCity(Coordinate location) |
NetGameModel |
RealEarlyServerProxy.buildCity(VertexLocation vertexLocation) |
NetGameModel |
MockServerProxy.buildCity(VertexLocation vertexLocation)
Notifies the server that the user has decided to build a city
|
NetGameModel |
EarlyServerProxy.buildCity(VertexLocation vertexLocation)
Notifies the server that the user has decided to build a city
|
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) |
NetGameModel |
RealEarlyServerProxy.buildRoad(EdgeLocation edgeLocation,
boolean free) |
NetGameModel |
MockServerProxy.buildRoad(EdgeLocation edgeLocation,
boolean free)
Notifies the server that the user has decided to build a road
|
NetGameModel |
EarlyServerProxy.buildRoad(EdgeLocation edgeLocation,
boolean free)
Notifies the server that the user has decided to build a road
|
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) |
NetGameModel |
RealEarlyServerProxy.buildSettlement(VertexLocation vertexLocation,
boolean free) |
NetGameModel |
MockServerProxy.buildSettlement(VertexLocation vertexLocation,
boolean free)
Notifies the server that the user has decided to build a settlement
|
NetGameModel |
EarlyServerProxy.buildSettlement(VertexLocation vertexLocation,
boolean free)
Notifies the server that the user has decided to build a settlement
|
GameModel |
ServerProxy.buyDevCard()
Notifies the server that the user has bought a development card
|
NetGameModel |
RealEarlyServerProxy.buyDevCard() |
NetGameModel |
MockServerProxy.buyDevCard()
Notifies the server that the user has bought a development card
|
GameModel |
GSONServerProxy.buyDevCard() |
NetGameModel |
EarlyServerProxy.buyDevCard()
Notifies the server that the user has bought a development card
|
GameInfo |
ServerProxy.createGame(boolean randomTiles,
boolean randomNumbers,
boolean randomPorts,
java.lang.String name)
Creates a game on the server
|
NetGame |
RealEarlyServerProxy.createGame(boolean randomTiles,
boolean randomNumbers,
boolean randomPorts,
java.lang.String name) |
NetGame |
MockServerProxy.createGame(boolean randomTiles,
boolean randomNumbers,
boolean randomPorts,
java.lang.String name)
Creates a game on the server
|
GameInfo |
GSONServerProxy.createGame(boolean randomTiles,
boolean randomNumbers,
boolean randomPorts,
java.lang.String name) |
NetGame |
EarlyServerProxy.createGame(boolean randomTiles,
boolean randomNumbers,
boolean randomPorts,
java.lang.String name)
Creates a game on the server
|
GameModel |
ServerProxy.discardCards(java.util.List<java.lang.Integer> resourceList)
Notifies the server that the user has discarded cards
|
NetGameModel |
RealEarlyServerProxy.discardCards(java.util.List<java.lang.Integer> resourceList) |
NetGameModel |
MockServerProxy.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) |
NetGameModel |
EarlyServerProxy.discardCards(java.util.List<java.lang.Integer> resourceList)
Notifies the server that the user has discarded cards
|
private java.lang.String |
RealEarlyServerProxy.doJSONGet(java.lang.String urlPath) |
private java.lang.String |
GSONServerProxy.doJSONGet(java.lang.String urlPath) |
private java.lang.String |
RealEarlyServerProxy.doJSONPost(java.lang.String urlPath,
java.lang.String postData,
boolean getUserCookie,
boolean getGameCookie) |
private java.lang.String |
GSONServerProxy.doJSONPost(java.lang.String urlPath,
java.lang.String postData,
boolean getUserCookie,
boolean getGameCookie) |
GameModel |
ServerProxy.finishTurn()
Notifies the server that the user has finished his turn
|
NetGameModel |
RealEarlyServerProxy.finishTurn() |
NetGameModel |
MockServerProxy.finishTurn()
Notifies the server that the user has finished his turn
|
GameModel |
GSONServerProxy.finishTurn() |
NetGameModel |
EarlyServerProxy.finishTurn()
Notifies the server that the user has finished his turn
|
NetGameModel |
RealEarlyServerProxy.getGameModel() |
NetGameModel |
MockServerProxy.getGameModel()
Retrieves the game model from the server
|
NetGameModel |
EarlyServerProxy.getGameModel()
Retrieves the game model from the server
|
GameModel |
ServerProxy.getGameModel(int version)
Retrieves the game model from the server
|
GameModel |
GSONServerProxy.getGameModel(int version) |
java.lang.String |
ServerProxy.getUserName()
Gets the current user's name
|
java.lang.String |
RealEarlyServerProxy.getUserName()
Gets the current user's name
|
java.lang.String |
MockServerProxy.getUserName() |
java.lang.String |
GSONServerProxy.getUserName()
Gets the current user's name
|
java.lang.String |
EarlyServerProxy.getUserName()
Gets the current user's name
|
void |
ServerProxy.joinGame(int id,
CatanColor color) |
void |
RealEarlyServerProxy.joinGame(int id,
CatanColor color) |
void |
MockServerProxy.joinGame(int id,
CatanColor color) |
void |
GSONServerProxy.joinGame(int id,
CatanColor color) |
void |
EarlyServerProxy.joinGame(int id,
CatanColor color) |
java.util.List<AIType> |
ServerProxy.listAI() |
java.util.List<AIType> |
RealEarlyServerProxy.listAI() |
java.util.List<AIType> |
GSONServerProxy.listAI() |
java.util.List<AIType> |
EarlyServerProxy.listAI() |
java.util.List<GameInfo> |
ServerProxy.listGames()
Fetches a list of ongoing games
|
java.util.List<NetGame> |
RealEarlyServerProxy.listGames() |
java.util.List<GameInfo> |
GSONServerProxy.listGames() |
java.util.List<NetGame> |
EarlyServerProxy.listGames()
Fetches a list of ongoing games
|
boolean |
ServerProxy.loginUser(java.lang.String username,
java.lang.String password)
Logs the specified user in and returns a User object if the user was
successfully logged in.
|
boolean |
RealEarlyServerProxy.loginUser(java.lang.String username,
java.lang.String password) |
boolean |
GSONServerProxy.loginUser(java.lang.String username,
java.lang.String password) |
boolean |
EarlyServerProxy.loginUser(java.lang.String username,
java.lang.String password)
Logs the specified user in and returns a User object if the user was
successfully logged in.
|
GameModel |
ServerProxy.maritimeTrade(int ratio,
ResourceType inputResource,
ResourceType outputResource)
Notifies the server that the user has decided to initiate a maritime trade
|
NetGameModel |
RealEarlyServerProxy.maritimeTrade(int ratio,
ResourceType inputResource,
ResourceType outputResource) |
NetGameModel |
MockServerProxy.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) |
NetGameModel |
EarlyServerProxy.maritimeTrade(int ratio,
ResourceType inputResource,
ResourceType outputResource)
Notifies the server that the user has decided to initiate a maritime trade
|
GameModel |
ServerProxy.monopolyCard(ResourceType resource)
Notifies the server that the user has played a monopoly card
|
NetGameModel |
RealEarlyServerProxy.monopolyCard(ResourceType resource) |
NetGameModel |
MockServerProxy.monopolyCard(ResourceType resource)
Notifies the server that the user has played a monopoly card
|
GameModel |
GSONServerProxy.monopolyCard(ResourceType resource) |
NetGameModel |
EarlyServerProxy.monopolyCard(ResourceType resource)
Notifies the server that the user has played a monopoly card
|
GameModel |
ServerProxy.monumentCard()
Notifies the server that the user has played a monument card
|
NetGameModel |
RealEarlyServerProxy.monumentCard() |
NetGameModel |
MockServerProxy.monumentCard()
Notifies the server that the user has played a monument card
|
GameModel |
GSONServerProxy.monumentCard() |
NetGameModel |
EarlyServerProxy.monumentCard()
Notifies the server that the user has played a monument card
|
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
|
NetGameModel |
RealEarlyServerProxy.offerTrade(java.util.List<java.lang.Integer> resourceList,
int receiver) |
NetGameModel |
MockServerProxy.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) |
NetGameModel |
EarlyServerProxy.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
|
boolean |
ServerProxy.registerUser(java.lang.String username,
java.lang.String password)
Registers a user with the specified username and password
|
boolean |
RealEarlyServerProxy.registerUser(java.lang.String username,
java.lang.String password) |
boolean |
GSONServerProxy.registerUser(java.lang.String username,
java.lang.String password) |
boolean |
EarlyServerProxy.registerUser(java.lang.String username,
java.lang.String password)
Registers a user with the specified username and password
|
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) |
NetGameModel |
RealEarlyServerProxy.roadBuildingCard(EdgeLocation location1,
EdgeLocation location2) |
NetGameModel |
MockServerProxy.roadBuildingCard(EdgeLocation location1,
EdgeLocation location2)
Notifies the server that the user has played a road building card
|
NetGameModel |
EarlyServerProxy.roadBuildingCard(EdgeLocation location1,
EdgeLocation location2)
Notifies the server that the user has played a road building card
|
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) |
NetGameModel |
RealEarlyServerProxy.robPlayer(int victimIndex,
HexLocation location) |
NetGameModel |
MockServerProxy.robPlayer(int victimIndex,
HexLocation location)
Notifies the server that the user has decided to rob another player
|
NetGameModel |
EarlyServerProxy.robPlayer(int victimIndex,
HexLocation location)
Notifies the server that the user has decided to rob another player
|
GameModel |
ServerProxy.rollNumber(int roll)
Reports the result of a dice roll to the server
|
NetGameModel |
RealEarlyServerProxy.rollNumber(int roll) |
NetGameModel |
MockServerProxy.rollNumber(int roll)
Reports the result of a dice roll to the server
|
GameModel |
GSONServerProxy.rollNumber(int roll) |
NetGameModel |
EarlyServerProxy.rollNumber(int roll)
Reports the result of a dice roll to the server
|
GameModel |
ServerProxy.sendChat(java.lang.String content)
Sends a chat message from the specified user to the server
|
NetGameModel |
RealEarlyServerProxy.sendChat(java.lang.String content) |
NetGameModel |
MockServerProxy.sendChat(java.lang.String content)
Sends a chat message from the specified user to the server
|
GameModel |
GSONServerProxy.sendChat(java.lang.String content) |
NetGameModel |
EarlyServerProxy.sendChat(java.lang.String content)
Sends a chat message from the specified user to the server
|
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) |
NetGameModel |
RealEarlyServerProxy.soldierCard(int victimIndex,
HexLocation hexLocation) |
NetGameModel |
MockServerProxy.soldierCard(int victimIndex,
HexLocation hexLocation)
Notifies the server that the user has played a soldier card
|
NetGameModel |
EarlyServerProxy.soldierCard(int victimIndex,
HexLocation hexLocation)
Notifies the server that the user has played a soldier card
|
GameModel |
ServerProxy.yearOfPlentyCard(ResourceType resource1,
ResourceType resource2)
Notifies the server that the user has played a year of plenty card
|
NetGameModel |
RealEarlyServerProxy.yearOfPlentyCard(ResourceType resource1,
ResourceType resource2) |
NetGameModel |
MockServerProxy.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) |
NetGameModel |
EarlyServerProxy.yearOfPlentyCard(ResourceType resource1,
ResourceType resource2)
Notifies the server that the user has played a year of plenty card
|