def __init__(self, width, height, color, grid): Prey.__init__(self, width, height, color, grid) self.offspringsProtected = 0 PreyAdult.dictionaryOfPreyAdults[(self.gridX, self.gridY)] = self
def __init__(self,width,height,color,grid): Prey.__init__(self, width, height, color, grid) PreyOffspring.dictionaryOfOffsprings[(self.gridX,self.gridY)] = self