<s> """<STR_LIT>""" <EOL> from pyherc . data . effects import Effect , EffectHandle <EOL> class EffectHandleBuilder ( ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> """<STR_LIT>""" <EOL> super ( ) . __init__ ( ) <EOL> self . trigger = '<STR_LIT>' <EOL> self . effect = '<STR_LIT>' <EOL> self . parameters = None <EOL> self . charges = <NUM_LIT:1> <EOL> self . icon = <NUM_LIT:0> <EOL> self . title = '<STR_LIT:title>' <EOL> self . description = '<STR_LIT:description>' <EOL> def with_trigger ( self , trigger ) : <EOL> """<STR_LIT>""" <EOL> self . trigger = trigger <EOL> return self <EOL> def with_effect ( self , effect ) : <EOL> """<STR_LIT>""" <EOL> self . effect = effect <EOL> return self <EOL> def with_parameters ( self , parameters ) : <EOL> """<STR_LIT>""" <EOL> self . parameters = parameters <EOL> return self <EOL> def with_charges ( self , charges ) : <EOL> """<STR_LIT>""" <EOL> self . charges = charges <EOL> return self <EOL> def build ( self ) : <EOL> """<STR_LIT>""" <EOL> effect = EffectHandle ( trigger = self . trigger , <EOL> effect = self . effect , <EOL> parameters = self . parameters , <EOL> charges = self . charges ) <EOL> return effect <EOL> class EffectBuilder ( ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> super ( ) . __init__ ( ) <EOL> self . duration = <NUM_LIT:0> <EOL> self . frequency = <NUM_LIT:0> <EOL> self . tick = <NUM_LIT:0> <EOL> self . effect_name = '<STR_LIT>' <EOL> self . multiple_allowed = False <EOL> self . icon = <NUM_LIT> <EOL> self . title = '<STR_LIT>' <EOL> self . description = '<STR_LIT:description>' <EOL> def with_duration ( self , duration ) : <EOL> """<STR_LIT>""" <EOL> self . duration = duration <EOL> return self <EOL> def with_frequency ( self , frequency ) : <EOL> """<STR_LIT>""" <EOL> self . frequency = frequency <EOL> return self <EOL> def with_tick ( self , tick ) : <EOL> """<STR_LIT>""" <EOL> self . tick = tick <EOL> return self <EOL> def with_effect_name ( self , effect_name ) : <EOL> """<STR_LIT>""" <EOL> self . effect_name = effect_name <EOL> return self <EOL> def with_multiple_allowed ( self ) : <EOL> """<STR_LIT>""" <EOL> self . multiple_allowed = True <EOL> return self <EOL> def with_icon ( self , icon ) : <EOL> """<STR_LIT>""" <EOL> self . icon = icon <EOL> return self <EOL> def with_title ( self , title ) : <EOL> """<STR_LIT>""" <EOL> self . title = title <EOL> return self <EOL> def with_description ( self , description ) : <EOL> """<STR_LIT>""" <EOL> self . description = description <EOL> return self <EOL> def build ( self ) : <EOL> """<STR_LIT>""" <EOL> effect = Effect ( duration = self . duration , <EOL> frequency = self . frequency , <EOL> tick = self . tick , <EOL> icon = self . icon , <EOL> title = self . title , <EOL> description = self . description ) <EOL> effect . effect_name = self . effect_name <EOL> effect . multiple_allowed = self . multiple_allowed <EOL> return effect </s>
