Package | Description |
---|---|
client.model | |
server.model | |
shared.model |
Modifier and Type | Method and Description |
---|---|
void |
ClientGameManager.LoadGame(GameInfo model)
Loads the game from the model recieved from the server
|
void |
ClientGameManager.maritimeTradeCurrentPlayer(int ratio,
ResourceType inputResource,
ResourceType outputResource)
Takes resource from the bank and gives them to the current player
|
void |
ClientGameManager.RefreshFromServer()
What the poller pokes to refresh the game model from teh server
|
private void |
ClientGameManager.reloadGame(GameModel model)
Loads in a game
|
private void |
ClientGameManager.reloadGame(GameModel game,
boolean forced) |
Modifier and Type | Method and Description |
---|---|
int |
RealServerGameManager.AddPlayer(java.lang.String name,
CatanColor color,
boolean isHuman,
int playerID) |
Modifier and Type | Method and Description |
---|---|
int |
GameManager.AddPlayer(java.lang.String name,
CatanColor color,
boolean isHuman)
Adds a player to the game
|
int |
GameManager.AddPlayer(java.lang.String name,
CatanColor color,
boolean isHuman,
int playerID)
Adds a players to the game
|
boolean |
Bank.buildCity()
Removes resource cards, if allowed, needed to build a city (two wheat, three ore, one city)
|
void |
GameManager.BuildCity(int playerIndex,
Coordinate location)
Attempts to build a road
|
void |
Bank.buildRoad()
Removes resource cards, if allowed, needed to build a road (one wood, one brick, one road)
|
void |
GameManager.BuildRoad(int playerIndex,
Coordinate start,
Coordinate end,
boolean free)
Attempts to build a road
|
void |
Bank.buildSettlement()
Removes resource cards, if allowed, needed to build a settlement (one wood, one brick, one sheep, one wheat, one settlement)
|
void |
GameManager.BuildSettlement(int playerIndex,
Coordinate location,
boolean free)
Attempts to build a road
|
void |
Bank.buyDevCard()
Removes resource cards, if allowed, needed to buy a development card (one wheat, one sheep, one ore)
|
DevCardType |
GameManager.BuyDevCard(int playerIndex)
Attempts to buy a dev card
|
void |
GameManager.DiceRoll(int diceRoll)
Handles the roll of a die
|
void |
GameManager.FinishTurn()
Ends the current player's turn
|
protected Player |
GameManager.GetCurrentPlayer()
Gets the current player
|
DevCardType |
Bank.getDevCard()
This gets a dev card which by default are shuffled when given.
|
void |
Bank.getDevCard(DevCardType type)
Gets a dev card of the specific type (taking it from the bank)
|
void |
Bank.getPiece(PieceType type)
Attempts to get a piece (road, settlement, city).
|
int |
Bank.getPieceCount(PieceType type)
Gets the number of pieces available for a type held
|
protected Player |
GameManager.GetPlayer(int playerIndex)
Gets the specified player
|
void |
Bank.getResource(ResourceType type)
Attempts to get a resource from the bank
|
void |
Bank.getResource(ResourceType type,
int amount)
Gets a resource of the type requested at the amount requested
|
void |
Bank.givePiece(PieceType type)
Gives the bank one piece
|
void |
Bank.givePiece(PieceType type,
int amount) |
void |
Bank.giveResource(ResourceType type)
Give a single resource of type
|
void |
Bank.giveResource(ResourceType type,
int amount)
Gives the bank amount of type resource of type
|
void |
GameManager.placeRobber(int playerIndex)
Places the robber
|
void |
GameManager.playDevCard(int playerIndex,
DevCardType type)
Plays a dev card
|
int |
GameManager.RollDice() |
ResourceType |
Bank.takeRandomResource()
Gives a random resource from this player to the bank
|