|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Consumer
Objects implementing the Consumer interface consume Goods. Examples include units that eat food, buildings that convert Goods into other Goods, or buildings that store Goods.
| Field Summary | |
|---|---|
static int |
BUILDING_PRIORITY
Default consumption priority for buildings. |
static int |
COLONY_PRIORITY
The consumption priority of the colony build queue. |
static java.util.Comparator<Consumer> |
COMPARATOR
|
static int |
POPULATION_PRIORITY
Default consumption priority for the Colony when producing new colonists (from food). |
static int |
UNIT_PRIORITY
Default consumption priority for units. |
| Method Summary | |
|---|---|
java.util.List<AbstractGoods> |
getConsumedGoods()
Returns a list of GoodsTypes this Consumer consumes. |
java.util.Set<Modifier> |
getModifierSet(java.lang.String id)
Returns the modifier set with the given id. |
int |
getPriority()
The priority of this Consumer. |
boolean |
hasAbility(java.lang.String id)
Returns whether the consumer has the ability with the given id. |
| Field Detail |
|---|
static final java.util.Comparator<Consumer> COMPARATOR
static final int POPULATION_PRIORITY
static final int COLONY_PRIORITY
static final int BUILDING_PRIORITY
static final int UNIT_PRIORITY
| Method Detail |
|---|
java.util.List<AbstractGoods> getConsumedGoods()
List valueint getPriority()
int valueboolean hasAbility(java.lang.String id)
id - a String value
boolean valuejava.util.Set<Modifier> getModifierSet(java.lang.String id)
id - a String value
boolean value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||