Mercurial > rinkhals
comparison gamelib/animal.py @ 115:2b2007e231da
Start of dialog for placing chickens in buildings. Remove chicken in hen house bug by not allowing chickens in hen houses.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Wed, 02 Sep 2009 19:40:28 +0000 |
parents | 4c2fbab20abe |
children | d539ef5a3333 |
comparison
equal
deleted
inserted
replaced
114:4c2fbab20abe | 115:2b2007e231da |
---|---|
93 if not fox: | 93 if not fox: |
94 return | 94 return |
95 if weapon.hit(gameboard, self, fox): | 95 if weapon.hit(gameboard, self, fox): |
96 sound.play_sound("kill-fox.ogg") | 96 sound.play_sound("kill-fox.ogg") |
97 gameboard.kill_fox(fox) | 97 gameboard.kill_fox(fox) |
98 | |
99 def outside(self): | |
100 return self.abode is None | |
98 | 101 |
99 class Egg(Animal): | 102 class Egg(Animal): |
100 """An egg""" | 103 """An egg""" |
101 | 104 |
102 def __init__(self, pos): | 105 def __init__(self, pos): |