private static class Colony.Occupation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ProductionType |
productionType |
WorkLocation |
workLocation |
GoodsType |
workType |
| Constructor and Description |
|---|
Occupation(WorkLocation workLocation,
ProductionType productionType,
GoodsType workType)
Create an Occupation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
install(Unit unit)
Install a unit into this occupation.
|
java.lang.String |
toString() |
public WorkLocation workLocation
public ProductionType productionType
public GoodsType workType
public Occupation(WorkLocation workLocation, ProductionType productionType, GoodsType workType)
workLocation - The WorkLocation to work at.productionType - The ProductionType to
use at the work location.workType - The GoodsType to produce at the
work location with the production type.public boolean install(Unit unit)
unit - The Unit to establish.public java.lang.String toString()
toString in class java.lang.Object