コード例 #1
0
 def __init__(self):
   IContainsAnimals.__init__(self)
   IContainsPlants.__init__(self)
   Identifiable.__init__(self)
   self.type = "coastlines"
   self.max_animals = 15
   self.max_plants = 3
コード例 #2
0
 def __init__(self):
     IContainsAnimals.__init__(self)
     IContainsPlants.__init__(self)
     Identifiable.__init__(self)
     self.type = "mountains"
     self.max_animals = 6
     self.max_plants = 4
コード例 #3
0
 def __init__(self):
   IContainsAnimals.__init__(self)
   IContainsPlants.__init__(self)
   Identifiable.__init__(self)
   self.type = "forests"
   self.max_animals = 20
   self.max_plants = 32
コード例 #4
0
 def __init__(self):
     IContainsAnimals.__init__(self)
     IContainsPlants.__init__(self)
     Identifiable.__init__(self)
     self.type = "grasslands"
     self.max_animals = 22
     self.max_plants = 15
コード例 #5
0
 def __init__(self):
     IContainsAnimals.__init__(self)
     IContainsPlants.__init__(self)
     Identifiable.__init__(self)
     self.type = "swamps"
     self.max_animals = 8
     self.max_plants = 12
 def __init__(self, age):
     Animal.__init__(self, "River dolphin", age)
     IFreshwater.__init__(self)
     Identifiable.__init__(self)
     self.__prey = [ "trout", "mackarel", "salmon", "sardine" ]
コード例 #7
0
 def __init__(self):
     Plant.__init__(self, "Mountain Apple Tree")
     IMountain.__init__(self)
     Identifiable.__init__(self)
コード例 #8
0
 def __init__(self, age):
     Animal.__init__(self, "Pueo", age)
     IForest.__init__(self)
     IGrassland.__init__(self)
     Identifiable.__init__(self)
     self.__prey = {"mouse", "hedgehog", "opossum", "rodent"}
コード例 #9
0
 def __init__(self, age):
     Animal.__init__(self, "Ulae", age)
     ISaltwater.__init__(self)
     Identifiable.__init__(self)
     self.__prey = { "snail", "lizard", "guppie" }
コード例 #10
0
 def __init__(self, age):
     Animal.__init__(self, "Kikakapu", age)
     IFreshwater.__init__(self)
     IStagnant.__init__(self)
     Identifiable.__init__(self)
     self.__prey = { "algae", "coral polyp", "worm", "shrimp"}
コード例 #11
0
 def __init__(self):
     Plant.__init__(self, "Blue Jade Vine")
     IGrassland.__init__(self)
     IStagnant.__init__(self)
     Identifiable.__init__(self)
コード例 #12
0
 def __init__(self):
     Plant.__init__(self, "Silversword")
     IGrassland.__init__(self)
     Identifiable.__init__(self)
コード例 #13
0
 def __init__(self):
     Plant.__init__(self, "Rainbow Eucalyptus Tree")
     IForest.__init__(self)
     Identifiable.__init__(self)
コード例 #14
0
 def __init__(self, age):
     Animal.__init__(self, "Ope'ape'a", age)
     IForest.__init__(self)
     IMountain.__init__(self)
     Identifiable.__init__(self)
     self.__prey = {"dragonfly", "herb", "kale", "centipede"}
コード例 #15
0
 def __init__(self, age):
     Animal.__init__(self, "NeNe Goose", age)
     IGrassland.__init__(self)
     Identifiable.__init__(self)
     self.prey = {"fruit", "seed", "flower", "shrubbery"}
コード例 #16
0
 def __init__(self, age):
     Animal.__init__(self, "Happy Face Spider", age)
     IStagnant.__init__(self)
     Identifiable.__init__(self)
     self.__prey = {"mosquito", "un-identifiable insect"}
コード例 #17
0
 def __init__(self, age):
     Animal.__init__(self, "Gold Dust Day Gecko", age)
     IForest.__init__(self)
     Identifiable.__init__(self)
     self.__prey = {"cricket", "jar of baby food", "fly"}