예제 #1
0
 def __init__(self, factory_data,
              transport_factory, weapon_factory,
              armor_factory, unit_class=Unit):
     self.transport_factory = transport_factory
     self.armor_factory = armor_factory
     self.weapon_factory = weapon_factory
     Factory.__init__(self, factory_data, unit_class)
예제 #2
0
 def __init__(self, factory_data, factory_class=UnitFactory,
         transport_class=TransportFactory,
         weapon_class=WeaponFactory,
         armor_class=ArmorFactory):
     Factory.__init__(self, factory_data, factory_class)
     self.transport_class = transport_class
     self.weapon_class = weapon_class
     self.armor_class = armor_class
예제 #3
0
 def __init__(self,
              factory_data,
              unit_factory_factory,
              building_factory,
              army_class=Army):
     Factory.__init__(self, factory_data, army_class)
     self.unit_factory_factory = unit_factory_factory
     self.building_factory = building_factory
     return
예제 #4
0
 def __init__(self,
              factory_data,
              factory_class=UnitFactory,
              transport_class=TransportFactory,
              weapon_class=WeaponFactory,
              armor_class=ArmorFactory):
     Factory.__init__(self, factory_data, factory_class)
     self.transport_class = transport_class
     self.weapon_class = weapon_class
     self.armor_class = armor_class
예제 #5
0
 def __init__(self,
              factory_data,
              transport_factory,
              weapon_factory,
              armor_factory,
              unit_class=Unit):
     self.transport_factory = transport_factory
     self.armor_factory = armor_factory
     self.weapon_factory = weapon_factory
     Factory.__init__(self, factory_data, unit_class)
예제 #6
0
 def __init__(self, factory_data, tile_class=Tile):
     Factory.__init__(self, factory_data, tile_class)
     return
예제 #7
0
 def __init__(self, factory_data, tile_factory, creation_class=Board):
     Factory.__init__(self, factory_data, creation_class)
     self.tile_factory = tile_factory
예제 #8
0
 def __init__(self, factory_data, unit_factory_factory,
              building_factory, army_class=Army):
     Factory.__init__(self, factory_data, army_class)
     self.unit_factory_factory = unit_factory_factory
     self.building_factory = building_factory
     return
예제 #9
0
def validate_test():
    factory = Factory({}, MockClass)
    assert_raises(NotImplementedError, factory.validate_data, '')
    assert_raises(NotImplementedError, factory.create, '')
예제 #10
0
 def __init__(self, factory_data, transport_class=Transport):
     Factory.__init__(self, factory_data, transport_class)
     return
예제 #11
0
 def __init__(self, factory_data, building_class=Building):
     Factory.__init__(self, factory_data, building_class)
예제 #12
0
 def __init__(self, factory_data, tile_class=Tile):
     Factory.__init__(self, factory_data, tile_class)
     return
예제 #13
0
 def __init__(self, factory_data, weapon_class=Weapon):
     Factory.__init__(self, factory_data, weapon_class)
     return
예제 #14
0
 def __init__(self, factory_data, weapon_class=Weapon):
     Factory.__init__(self, factory_data, weapon_class)
     return
예제 #15
0
 def __init__(self, factory_data, armor_class=Armor):
     Factory.__init__(self, factory_data, armor_class)
예제 #16
0
 def __init__(self, factory_data, building_class=Building):
     Factory.__init__(self, factory_data, building_class)
예제 #17
0
 def __init__(self, factory_data, armor_class=Armor):
     Factory.__init__(self, factory_data, armor_class)