Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Animals.py
diff options
context:
space:
mode:
Diffstat (limited to 'Animals.py')
-rw-r--r--Animals.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Animals.py b/Animals.py
index 0c2eca8..b3a3a60 100644
--- a/Animals.py
+++ b/Animals.py
@@ -241,6 +241,7 @@ class Rabbit(AbstractAnimal):
cantCrias = int(random.random()*self.maxNumeroCrias)
for n in range(cantCrias):
child = Rabbit(self.posX,self.posY,self._world)
+ child.ultimaDireccion = getNextDirection(self.ultimaDireccion)
world.animals.append(child)
print "Nace conejo"
# salgo del while
@@ -367,6 +368,7 @@ class Fox(AbstractAnimal):
cantCrias = int(random.random()*self.maxNumeroCrias)
for n in range(cantCrias):
child = Fox(self.posX,self.posY,self._world)
+ child.ultimaDireccion = getNextDirection(self.ultimaDireccion)
world.animals.append(child)
print "Nace zorro"
# salgo del while