private static class ReportCompactColonyPanel.ColonySummary
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ReportCompactColonyPanel.ColonySummary.GoodsProduction
Container class for goods production.
|
static class |
ReportCompactColonyPanel.ColonySummary.ProductionStatus
Types of production for a given goods type.
|
Modifier and Type | Field and Description |
---|---|
int |
bonus
Current production bonus.
|
BuildableType |
build
Currently building.
|
Colony |
colony
The colony being summarized.
|
int |
completeTurns |
java.util.List<UnitType> |
couldWork
Units present that might be working.
|
boolean |
famine
Famine warning required?
|
static java.util.function.BinaryOperator<ReportCompactColonyPanel.ColonySummary.GoodsProduction> |
goodsProductionAccumulator |
java.util.Map<UnitType,WorkLocation.Suggestion> |
improve
Suggested better unit use.
|
AbstractGoods |
needed |
int |
newColonist
Turns to new colonist if positive, no colonist if zero,
-turns-1 to starvation if negative.
|
java.util.List<Unit> |
notWorking
Units present that are not working.
|
java.util.Map<GoodsType,ReportCompactColonyPanel.ColonySummary.GoodsProduction> |
production
Goods production.
|
int |
schoolLevel
The level of teaching-building.
|
int |
sizeChange
Preferred size change.
|
java.util.Map<Unit,java.lang.Integer> |
teachers
Teacher units mapped to turns to complete.
|
java.util.List<Colony.TileImprovementSuggestion> |
tileSuggestions
Possible tile improvements.
|
java.util.Map<UnitType,WorkLocation.Suggestion> |
want
Suggested new unit use.
|
Constructor and Description |
---|
ColonySummary(Colony colony,
java.util.List<GoodsType> goodsTypes)
Create the colony summary.
|
Modifier and Type | Method and Description |
---|---|
private void |
addSuggestion(java.util.Map<UnitType,WorkLocation.Suggestion> suggestions,
UnitType expert,
WorkLocation.Suggestion suggestion) |
private void |
produce(GoodsType goodsType)
Set the production map values for the given goods type.
|
public static java.util.function.BinaryOperator<ReportCompactColonyPanel.ColonySummary.GoodsProduction> goodsProductionAccumulator
public final Colony colony
public final int schoolLevel
public final java.util.List<Colony.TileImprovementSuggestion> tileSuggestions
public final boolean famine
public final int newColonist
public final int bonus
public final int sizeChange
public final java.util.Map<GoodsType,ReportCompactColonyPanel.ColonySummary.GoodsProduction> production
public final java.util.Map<Unit,java.lang.Integer> teachers
public final java.util.List<Unit> notWorking
public final java.util.List<UnitType> couldWork
public final java.util.Map<UnitType,WorkLocation.Suggestion> improve
public final java.util.Map<UnitType,WorkLocation.Suggestion> want
public final BuildableType build
public final int completeTurns
public final AbstractGoods needed
private void produce(GoodsType goodsType)
goodsType
- The GoodsType
to use.private void addSuggestion(java.util.Map<UnitType,WorkLocation.Suggestion> suggestions, UnitType expert, WorkLocation.Suggestion suggestion)