comparison gamelib/animal.py @ 557:50d6c68ce267

Add gameboard to buildings. Update save version as this breaks old save games
author Neil Muller <drnlmuller@gmail.com>
date Sat, 28 Nov 2009 18:20:46 +0000
parents 11c4cebfe4c5
children 23fbf4651f99
comparison
equal deleted inserted replaced
556:46f6f1a98f3f 557:50d6c68ce267
670 def _make_hole(self): 670 def _make_hole(self):
671 """Make a hole in the fence""" 671 """Make a hole in the fence"""
672 fence = self.gameboard.get_building(self.dig_pos.to_tile_tuple()) 672 fence = self.gameboard.get_building(self.dig_pos.to_tile_tuple())
673 # Another fox could have made the same hole this turn 673 # Another fox could have made the same hole this turn
674 if fence: 674 if fence:
675 fence.damage(self.gameboard.tv) 675 fence.damage()
676 self.dig_pos = None 676 self.dig_pos = None
677 677
678 def move(self): 678 def move(self):
679 """Foxes will aim to move towards the closest henhouse or free 679 """Foxes will aim to move towards the closest henhouse or free
680 chicken""" 680 chicken"""