|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
TTile
- tile type used.TSkill
- skill type used.TAttr
- attributes type used.public interface ProducerAbility<TTile extends AbstractPathTile,TSkill extends AbstractSkill<TTile,TSkill,TAttr>,TAttr extends AbstractAttributes>
This interface represents the ability of producing new entity. It includes production queue, and production time.
Method Summary | |
---|---|
void |
addToProductionQueue(java.lang.String name,
int time)
Add an element to the production queue. |
java.lang.String |
getProducingElement()
Get name of current producing element. |
int |
getProductionProgress()
Get production progress in percent. |
int |
getQueueLength()
Get size of production queue. |
void |
setRallyLocation(int tx,
int ty)
Rally location in tile. |
void |
stopProduction()
Stop any production. |
void |
updateProduction()
Update production routine. |
Method Detail |
---|
void addToProductionQueue(java.lang.String name, int time)
name
- entry name to produce.time
- production time.void updateProduction()
void stopProduction()
void setRallyLocation(int tx, int ty)
tx
- horizontal tile index.ty
- vertical tile index.int getProductionProgress()
java.lang.String getProducingElement()
int getQueueLength()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |