예제 #1
0
class ShipFactory:
	def __init__(self, arena):
		self.arena = arena
		self.blueprinter = BlueprintFactory()

	def make(self, position=(0,0)):
		arena = self.arena
		ship = Ship(
				arena=arena,
				pilot=Pilot(),
				blueprint=self.blueprinter.make(),
				position=position)
		return ship
예제 #2
0
	def __init__(self, arena):
		self.arena = arena
		self.blueprinter = BlueprintFactory()