private class SelectDestinationDialog.Destination
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
extras |
javax.swing.ImageIcon |
icon |
Location |
location |
int |
score |
java.lang.String |
text |
int |
turns |
Unit |
unit |
Constructor and Description |
---|
Destination(Location location,
int turns,
Unit unit,
java.util.List<GoodsType> goodsTypes)
Create a destination.
|
Modifier and Type | Method and Description |
---|---|
private int |
calculateScore() |
private java.lang.String |
getExtras(Location loc,
Unit unit,
java.util.List<GoodsType> goodsTypes)
Collected extra annotations of interest to a unit proposing to
visit a location.
|
public final Unit unit
public final Location location
public final int turns
public final java.lang.String extras
public final java.lang.String text
public final int score
public javax.swing.ImageIcon icon
public Destination(Location location, int turns, Unit unit, java.util.List<GoodsType> goodsTypes)
location
- The Location
to go to.turns
- The number of turns it takes to get to the location.unit
- The Unit
that is moving.goodsTypes
- A list of goods types the unit is carrying.private java.lang.String getExtras(Location loc, Unit unit, java.util.List<GoodsType> goodsTypes)
loc
- The Location
to visit.unit
- The Unit
proposing to visit.goodsTypes
- A list of goods types the unit is carrying.private int calculateScore()