Package | Description |
---|---|
client.networking | |
shared.model | |
shared.networking | |
testing.shared.networking |
Modifier and Type | Field and Description |
---|---|
private NetGameModel |
MockServerProxy.currentStateOfGame |
Modifier and Type | Method and Description |
---|---|
NetGameModel |
RealEarlyServerProxy.acceptTrade(boolean willAccept) |
NetGameModel |
MockServerProxy.acceptTrade(boolean willAccept)
Notifies the server whether this player has decided to accept or reject a trade
|
NetGameModel |
EarlyServerProxy.acceptTrade(boolean willAccept)
Notifies the server whether this player has decided to accept or reject a trade
|
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
|
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
|
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
|
NetGameModel |
RealEarlyServerProxy.buyDevCard() |
NetGameModel |
MockServerProxy.buyDevCard()
Notifies the server that the user has bought a development card
|
NetGameModel |
EarlyServerProxy.buyDevCard()
Notifies the server that the user has bought a development card
|
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
|
NetGameModel |
EarlyServerProxy.discardCards(java.util.List<java.lang.Integer> resourceList)
Notifies the server that the user has discarded cards
|
NetGameModel |
RealEarlyServerProxy.finishTurn() |
NetGameModel |
MockServerProxy.finishTurn()
Notifies the server that the user has finished his turn
|
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
|
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
|
NetGameModel |
EarlyServerProxy.maritimeTrade(int ratio,
ResourceType inputResource,
ResourceType outputResource)
Notifies the server that the user has decided to initiate a maritime trade
|
NetGameModel |
RealEarlyServerProxy.monopolyCard(ResourceType resource) |
NetGameModel |
MockServerProxy.monopolyCard(ResourceType resource)
Notifies the server that the user has played a monopoly card
|
NetGameModel |
EarlyServerProxy.monopolyCard(ResourceType resource)
Notifies the server that the user has played a monopoly card
|
NetGameModel |
RealEarlyServerProxy.monumentCard() |
NetGameModel |
MockServerProxy.monumentCard()
Notifies the server that the user has played a monument card
|
NetGameModel |
EarlyServerProxy.monumentCard()
Notifies the server that the user has played a monument card
|
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
|
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
|
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
|
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
|
NetGameModel |
RealEarlyServerProxy.rollNumber(int roll) |
NetGameModel |
MockServerProxy.rollNumber(int roll)
Reports the result of a dice roll to the server
|
NetGameModel |
EarlyServerProxy.rollNumber(int roll)
Reports the result of a dice roll 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
|
NetGameModel |
EarlyServerProxy.sendChat(java.lang.String content)
Sends a chat message from the specified user to the server
|
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
|
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
|
NetGameModel |
EarlyServerProxy.yearOfPlentyCard(ResourceType resource1,
ResourceType resource2)
Notifies the server that the user has played a year of plenty card
|
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
|
Modifier and Type | Method and Description |
---|---|
NetGameModel |
JSONDeserializer.parseNetGameModel(java.lang.String rawData) |
NetGameModel |
Deserializer.parseNetGameModel(java.lang.String rawData)
Parses a NetGameModel from serialized data
|
Modifier and Type | Field and Description |
---|---|
private NetGameModel |
JSONSerializerTest.originalNetGameModel |