Package horizons :: Package world :: Package production :: Module productionline :: Class ProductionLine
[hide private]
[frames] | no frames]

Class ProductionLine

source code

Class that collects the production line data.

Instance Methods [hide private]
 
__init__(self, id, data)
Inits self from yaml data
source code
 
__init(self) source code
 
__str__(self) source code
 
alter_production_time(self, modifier)
Sets time to original production time multiplied by modifier
source code
 
change_amount(self, res, amount)
Alters an amount of a res at runtime.
source code
 
save(self, db, for_worldid) source code
 
load(self, db, for_worldid) source code
 
get_original_copy(self)
Returns a copy of this production, in its original state, no changes applied
source code
Method Details [hide private]

change_amount(self, res, amount)

source code 

Alters an amount of a res at runtime. Because of redundancy, you can only change amounts here.