コード例 #1
0
 def __init__(self,
              name,
              weight,
              color="stripe",
              short_term_memory_loss=True):
     Fish.__init__(self, name, weight, color)
     self.type = "clownfish"
     self.color = "stripe"
コード例 #2
0
ファイル: shark.py プロジェクト: bdebut01/ecosym
 def __init__(self, ecosystem, location=None, isNewborn=False):
     Fish.__init__(self, ecosystem, 20, 10, location, isNewborn)
     self.survivalProbability = 1
     self.movementImpact = .75
コード例 #3
0
ファイル: kong.py プロジェクト: green-fox-academy/yuuu1234
 def __init__(self, name, weight, color):
     Fish.__init__(self, name, weight, color)
コード例 #4
0
ファイル: tang.py プロジェクト: green-fox-academy/yuuu1234
 def __init__(self, name, weight, color):
     Fish.__init__(self, name, weight, color)
     self.short_term_memory_loss = True