Groovy Documentation

de.dewarim.goblin
[Groovy] Class ProductionController

java.lang.Object
  de.dewarim.goblin.BaseController
      de.dewarim.goblin.ProductionController

class ProductionController
extends BaseController

A product is something a player can create, given the necessary materials and skill requirements.


Property Summary
java.lang.Object productionService

 
Constructor Summary
ProductionController()

 
Method Summary
java.lang.Object cancelProductionJob()

Cancel a ProductionJob.

java.lang.Object listProductionJobs()

java.lang.Object listProducts()

java.lang.Object selectComponents()

java.lang.Object startProduction()

After the player has selected the required items for each component of this product, this method will try to create a ProductionJob for the chosen product.

java.lang.Object workshop()

Show the list of available product categories.

 
Methods inherited from class BaseController
fetchItem, fetchPc, fetchUser, renderException
 

Property Detail

productionService

java.lang.Object productionService


 
Constructor Detail

ProductionController

ProductionController()


 
Method Detail

cancelProductionJob

@Secured(['ROLE_USER'])
java.lang.Object cancelProductionJob()
Cancel a ProductionJob. Checks if the job belongs to the active player. Will redirect him to the workshop if no more jobs remain, otherwise redirect back to the list of production jobs.


listProductionJobs

@Secured(['ROLE_USER'])
java.lang.Object listProductionJobs()


listProducts

@Secured(['ROLE_USER'])
java.lang.Object listProducts()


selectComponents

@Secured(['ROLE_USER'])
java.lang.Object selectComponents()


startProduction

@Secured(['ROLE_USER'])
java.lang.Object startProduction()
After the player has selected the required items for each component of this product, this method will try to create a ProductionJob for the chosen product.


workshop

@Secured(['ROLE_USER'])
java.lang.Object workshop()
Show the list of available product categories.


 

Groovy Documentation