T
- The entity enum type used.C
- The cost type used.P
- The producible type used.E
- The entity type used.public interface ProducerListener<T extends java.lang.Enum<T>,C extends ProductionCostRts,P extends Producible<T,C>,E extends EntityRts>
Modifier and Type | Method and Description |
---|---|
void |
notifyCanNotProduce(P producible)
Notify listener that current element can not be produced.
|
void |
notifyProduced(P producible,
E entity)
Notify listener that this element has been produced.
|
void |
notifyProducing(P producible,
E entity)
Notify listener that this element is currently under production.
|
void |
notifyStartProduction(P producible,
E entity)
Notify listener that production is starting for this element.
|
void notifyCanNotProduce(P producible)
producible
- The element that would have been under production.void notifyStartProduction(P producible, E entity)
producible
- The element going to be producedentity
- The entity instance from element.void notifyProducing(P producible, E entity)
producible
- The element under production.entity
- The entity instance from element.