Modifier and Type | Method and Description |
---|---|
void |
addHex(HexLocation hexLoc,
HexType hexType)
This method adds a hex to the map.
|
void |
addNumber(HexLocation hexLoc,
int num)
This method adds a number to the map.
|
void |
addPort(EdgeLocation edgeLoc,
PortType portType)
This method adds a port to the map.
|
void |
placeCity(VertexLocation vertLoc,
CatanColor color)
This method places a city on the map.
|
void |
placeRoad(EdgeLocation edgeLoc,
CatanColor color)
This method places a road on the map.
|
void |
placeRobber(HexLocation hexLoc)
This method places the robber on the map.
|
void |
placeSettlement(VertexLocation vertLoc,
CatanColor color)
This method places a settlement on the map.
|
void |
startDrop(PieceType pieceType,
CatanColor pieceColor,
boolean isCancelAllowed)
This method displays the modal map overlay and allows the player to place
the specified type of piece.
|
getController, setController
void addHex(HexLocation hexLoc, HexType hexType)
hexLoc
- The hex's locationhexType
- The hex's typevoid addNumber(HexLocation hexLoc, int num)
hexLoc
- The number's locationnum
- The number to add (must be in the range 2-6, 8-12)void addPort(EdgeLocation edgeLoc, PortType portType)
edgeLoc
- The port's locationportType
- The port's typevoid placeRoad(EdgeLocation edgeLoc, CatanColor color)
edgeLoc
- The road's locationcolor
- The road's colorvoid placeSettlement(VertexLocation vertLoc, CatanColor color)
vertLoc
- The settlement's locationcolor
- The settlement's colorvoid placeCity(VertexLocation vertLoc, CatanColor color)
vertLoc
- The city's locationcolor
- The city's colorvoid placeRobber(HexLocation hexLoc)
hexLoc
- The robber's locationvoid startDrop(PieceType pieceType, CatanColor pieceColor, boolean isCancelAllowed)
pieceType
- The type of piece to be placedpieceColor
- The piece colorisCancelAllowed
- true if the player may cancel out of the piece placement,
false otherwise