Package | Description |
---|---|
client.map | |
client.map.view.dropObject | |
shared.model.map.handlers | |
shared.model.map.model | |
shared.model.map.objects | |
testing.shared.model.map |
Modifier and Type | Method and Description |
---|---|
Hex |
MapController.GetRobberPlacement() |
Hex |
IMapController.GetRobberPlacement()
Gets the location of the robber.
|
Modifier and Type | Method and Description |
---|---|
Vertex |
SettlementDropObject.GetDropLocation()
Gets the vertex associated with the object.
|
Hex |
RobberDropObject.GetDropLocation()
Gets the hex that is currently associated with the object.
|
Edge |
RoadDropObject.GetDropLocation()
Gets the edge associated with the object.
|
Vertex |
CityDropObject.GetDropLocation()
Gets the vertex associated with the object.
|
Modifier and Type | Method and Description |
---|---|
void |
HexHandler.AddHex(Hex hex)
Adds a hex object to the handler.
|
void |
PortHandler.AddPort(PortType type,
Edge edge,
Hex hex)
Adds a port to a hex.
|
void |
EdgeHandler.AddRoad(Coordinate p1,
Coordinate p2,
CatanColor color)
Adds a road to the map.
|
void |
EdgeHandler.ClearRoad(Coordinate p1,
Coordinate p2)
Removes a road from the map.
|
void |
VertexHandler.ClearVillage(Coordinate point)
Removes a city or settlement from the map.
|
Edge |
EdgeHandler.GetEdge(Coordinate p1,
Coordinate p2)
Returns the edge between the provided end points.
|
Hex |
HexHandler.GetHex(Coordinate point)
Gets the hex at the given coordinate.
|
PortType |
PortHandler.GetPort(Coordinate vertex)
Gets the port at the specified vertex.
|
Vertex |
VertexHandler.GetVertex(Coordinate point)
Gets the vertex at the specified coordinate.
|
void |
VertexHandler.SetCity(Coordinate point,
CatanColor color)
Adds a city to the map.
|
void |
VertexHandler.SetSettlement(Coordinate point,
CatanColor color)
Adds a settlement to the map.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<RoadCounter.Road> |
RoadCounter.BeginCountRoad(Vertex start) |
private RoadCounter.Road |
RoadCounter.CountRoad(Vertex start,
java.util.Set<Edge> counted,
CatanColor color) |
Edge |
UnmodifiableMapModel.GetEdge(Coordinate p1,
Coordinate p2) |
Edge |
MapModel.GetEdge(Coordinate p1,
Coordinate p2) |
Edge |
IMapModel.GetEdge(Coordinate p1,
Coordinate p2)
Gets the edge associated with the provided end points.
|
Hex |
UnmodifiableMapModel.GetHex(Coordinate point) |
Hex |
MapModel.GetHex(Coordinate point) |
Hex |
IMapModel.GetHex(Coordinate point)
Gets a hex at the specified location.
|
private java.util.Iterator<Hex> |
MapModel.GetHex(int role)
Gets all the hexes associated with the dice role.
|
CatanColor |
UnmodifiableMapModel.GetLongestRoadColor() |
CatanColor |
MapModel.GetLongestRoadColor() |
CatanColor |
IMapModel.GetLongestRoadColor()
Gets the longest road.
|
Vertex |
UnmodifiableMapModel.GetVertex(Coordinate point) |
Vertex |
MapModel.GetVertex(Coordinate point) |
Vertex |
IMapModel.GetVertex(Coordinate point)
Gets the vertex at a specified location.
|
void |
UnmodifiableMapModel.PlaceCity(Coordinate point,
CatanColor color) |
void |
MapModel.PlaceCity(Coordinate point,
CatanColor color) |
void |
IMapModel.PlaceCity(Coordinate point,
CatanColor color)
Adds a city to the board.
|
void |
UnmodifiableMapModel.PlaceHex(HexType type,
Coordinate point) |
void |
MapModel.PlaceHex(HexType type,
Coordinate point) |
void |
IMapModel.PlaceHex(HexType type,
Coordinate point)
Creates a hex at the specified location.
|
void |
UnmodifiableMapModel.PlacePip(int value,
Coordinate point) |
void |
MapModel.PlacePip(int value,
Coordinate point) |
void |
IMapModel.PlacePip(int value,
Coordinate point)
Adds a pip to a hex.
|
void |
UnmodifiableMapModel.PlacePort(PortType type,
Coordinate hexCoordinate,
Coordinate edgeStart,
Coordinate edgeEnd) |
void |
MapModel.PlacePort(PortType type,
Coordinate hexCoordinate,
Coordinate edgeStart,
Coordinate edgeEnd) |
void |
IMapModel.PlacePort(PortType type,
Coordinate hexCoordinate,
Coordinate edgeStart,
Coordinate edgeEnd)
Sets a vertex as a port
|
void |
UnmodifiableMapModel.PlaceRoad(Coordinate p1,
Coordinate p2,
CatanColor color) |
void |
MapModel.PlaceRoad(Coordinate p1,
Coordinate p2,
CatanColor color) |
void |
IMapModel.PlaceRoad(Coordinate p1,
Coordinate p2,
CatanColor color)
Puts a road on the map.
|
void |
UnmodifiableMapModel.PlaceRobber(Coordinate point) |
void |
MapModel.PlaceRobber(Coordinate point) |
void |
IMapModel.PlaceRobber(Coordinate point)
Sets which hex the robber is on.
|
void |
UnmodifiableMapModel.PlaceSettlement(Coordinate point,
CatanColor color) |
void |
MapModel.PlaceSettlement(Coordinate point,
CatanColor color) |
void |
IMapModel.PlaceSettlement(Coordinate point,
CatanColor color)
Adds a settlement to the map.
|
private boolean |
MapModel.RoadsSatisfyRoadPlacement(Edge edge,
CatanColor color) |
private boolean |
MapModel.VillagesSatisfyRoadPlacement(Edge edge,
CatanColor color) |
Modifier and Type | Method and Description |
---|---|
void |
Hex.setPort(PortType port) |
Modifier and Type | Method and Description |
---|---|
void |
TestMapModel.testCanPlaceCity_CityExists()
A city cannot be placed on another city regardless of color.
|
void |
TestMapModel.testCanPlaceCity_True()
A city can be placed on a settlement of like color.
|
void |
TestMapModel.testCanPlaceRoad_RoadExists()
Attempts to place roads on already existed roads.
|
void |
TestMapModel.testCanPlaceRoad_RoadSatisfied()
Roads can be added to other roads of like color.
|
void |
TestMapModel.testCanPlaceRoad_VillageSatisfied()
Village is used to refer to cities or settlements.
|
void |
TestMapModel.testCanPlaceSettlement_ExistingNeighbor()
A settlement can't be placed when too close to other
villages.
|
void |
TestMapModel.testCanPlaceSettlement_VillageExists()
This village can't be placed as a village or city is already in the location.
|
void |
TestMapModel.testGetEdge_Invalid()
Attempt to get edge that doesn't exist.
|
void |
TestMapModel.testGetEdge_Valid()
Valid attempt to get edge.
|
void |
TestMapModel.testGetHex_InvalidHex()
Thrown when trying to access a invalid hex coordinate.
|
void |
TestMapModel.testGetHex_Valid()
Valid attempt to get hex.
|
void |
TestMapModel.testGetLongestRoad() |
void |
TestMapModel.testGetLongestRoadSpecialCase() |
void |
TestMapModel.testGetVertex_Invalid()
Attempt to access a vertex that doesn't exist.
|
void |
TestMapModel.testGetVertex_Valid()
Should be able to access vertex.
|
void |
TestMapModel.testGetVerticesVertex_Center()
Gets the neighboring vertices.
|
void |
TestMapModel.testGetVerticiesHex_Exterior()
Gets the vertices around an exterior hex.
|
void |
TestMapModel.testGetVerticiesHex_Interior()
Gets the vertices around an interior hex.
|
void |
TestMapModel.testPlaceCity_Invalid()
Attempt to place a city on a non-existent vertex.
|
void |
TestMapModel.testPlaceCity_NotEstablished()
Attempt to place a city on a vertex that doesn't contain a settlement.
|
void |
TestMapModel.testPlaceCity_Valid()
Valid placement of a city on a matching settlement.
|
void |
TestMapModel.testPlaceCity_WrongColor()
Attempt to steal a settlement.
|
void |
TestMapModel.testPlaceHex_Overflow()
The map can only store a certain amount of tiles for a valid board.
|
void |
TestMapModel.testPlaceHex_Overwrite()
Can't use set hex to overwrite existing hexes.
|
void |
TestMapModel.testPlaceHex_Valid()
Successfully adds hex.
|
void |
TestMapModel.testPlacePort_DryPort()
Attempts to place port on something other than water.
|
void |
TestMapModel.testPlacePort_InvalidVertices()
Uses invalid verticies for the edge.
|
void |
TestMapModel.testPlaceRoad_EndNotSatisified()
Attempts to add road when the end condition isn't satisfied.
|
void |
TestMapModel.testPlaceRoad_InvalidEdge()
Attempt to add road across hex.
|
void |
TestMapModel.testPlaceRoad_RoadExists()
Can't place a road on an existing road.
|
void |
TestMapModel.testPlaceRoad_Valid()
Satisfies all conditions to make road.
|
void |
TestMapModel.testPlaceRobber_Fail()
Attempts to place robber in water, which is not valid.
|
void |
TestMapModel.testPlaceRobber()
Successfully call of placing robber.
|
void |
TestMapModel.testPlaceSettlement_ExistingNeighbor()
Settlements can't have neighbors.
|
void |
TestMapModel.testPlaceSettlement_InvalidVertex()
Exception should be thrown for a vertex that doesn't exist.
|
void |
TestMapModel.testPlaceSettlement_Valid() |
void |
TestMapModel.testPlaceSettlement_VillageExists()
Can't place a village on an already occupied vertex.
|
void |
TestMapModel.testSetPort_Valid() |