public static class ProductionCache.Entry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private GoodsType |
goodsType |
private boolean |
isExpert |
private boolean |
isOtherExpert |
private int |
production |
private Unit |
unit |
private boolean |
unitUpgrades |
private boolean |
unitUpgradesToExpert |
private WorkLocation |
workLocation |
Constructor and Description |
---|
Entry(GoodsType g,
WorkLocation w,
Unit u) |
Modifier and Type | Method and Description |
---|---|
GoodsType |
getGoodsType()
Returns the type of goods produced.
|
int |
getProduction()
Returns the amount of goods produced.
|
Unit |
getUnit()
Returns a unit producing goods in this work location.
|
WorkLocation |
getWorkLocation()
Returns the work location where goods are produced.
|
boolean |
isExpert()
Returns true if the unit is an expert for producing the
type of goods selected.
|
boolean |
isOtherExpert()
Returns true if the unit is an expert for producing a type
of goods other than the one selected.
|
java.lang.String |
toString() |
boolean |
unitUpgrades()
Returns true if the unit can be upgraded through experience.
|
boolean |
unitUpgradesToExpert()
Returns true if the unit can be upgraded to an expert for
producing the type of goods selected through experience.
|
private final GoodsType goodsType
private final WorkLocation workLocation
private final Unit unit
private final int production
private boolean isExpert
private boolean isOtherExpert
private boolean unitUpgrades
private boolean unitUpgradesToExpert
public Entry(GoodsType g, WorkLocation w, Unit u)
public GoodsType getGoodsType()
GoodsType
valuepublic WorkLocation getWorkLocation()
WorkLocation
valuepublic Unit getUnit()
Unit
valuepublic int getProduction()
int
valuepublic boolean isExpert()
boolean
valuepublic boolean isOtherExpert()
boolean
valuepublic boolean unitUpgrades()
boolean
valuepublic boolean unitUpgradesToExpert()
boolean
valuepublic java.lang.String toString()
toString
in class java.lang.Object