Groovy Documentation

de.dewarim.goblin.pc.crafting
[Groovy] Class ProductionJob

java.lang.Object
  de.dewarim.goblin.pc.skill.QueueElement
      de.dewarim.goblin.pc.crafting.ProductionJob

class ProductionJob
extends QueueElement


Property Summary
java.lang.Integer amount

static java.lang.Object belongsTo

static java.lang.Object hasMany

java.lang.Integer ttl

Time to live - the PJ is examined several times until all components are available or until the ttl is down to 0.

 
Constructor Summary
ProductionJob()

 
Method Summary
java.lang.Boolean alive()

Check if the ttl (time to live) of this ProductionJob is still positive.

void continueJob()

If a job contains the order to create multiple products

boolean equals(java.lang.Object o)

int hashCode()

void postpone()

Add one hour to the "finished" time of this ProductionJob and reduce the ttl by one.

 

Property Detail

amount

java.lang.Integer amount


belongsTo

static java.lang.Object belongsTo


hasMany

static java.lang.Object hasMany


ttl

java.lang.Integer ttl
Time to live - the PJ is examined several times until all components are available or until the ttl is down to 0. With each check, the ttl is reduced by 1 and the PJ is postponed by an hour (that is, the value for QueueElement.finished is increased by 1 hour).


 
Constructor Detail

ProductionJob

ProductionJob()


 
Method Detail

alive

java.lang.Boolean alive()
Check if the ttl (time to live) of this ProductionJob is still positive. A PJ whose ttl is 0 or less has to be deleted because the player seems to be unable to come up with the required resources.
Returns:


continueJob

void continueJob()
If a job contains the order to create multiple products


equals

boolean equals(java.lang.Object o)


hashCode

int hashCode()


postpone

void postpone()
Add one hour to the "finished" time of this ProductionJob and reduce the ttl by one. This method will be used if the player (for some reason) has not enough resources to create the product.


 

Groovy Documentation