# HG changeset patch # User Simon Cross # Date 1252017498 0 # Node ID 4aa800354b7c487aebd76bd8d32f105e135fc8a8 # Parent c7d4965564750d8d690e24377593a6a08b49b6ee Rename get_chicken to get_outside_chicken. diff -r c7d496556475 -r 4aa800354b7c gamelib/gameboard.py --- a/gamelib/gameboard.py Thu Sep 03 22:35:22 2009 +0000 +++ b/gamelib/gameboard.py Thu Sep 03 22:38:18 2009 +0000 @@ -230,7 +230,7 @@ elif equipment.is_equipment(self.selected_tool): self.buy_equipment(self.tv.screen_to_tile(e.pos), self.selected_tool) - def get_chicken(self, tile_pos): + def get_outside_chicken(self, tile_pos): for chick in self.chickens: if chick.covers(tile_pos) and chick.outside(): return chick @@ -243,7 +243,7 @@ return None def sell_chicken(self, tile_pos): - chick = self.get_chicken(tile_pos) + chick = self.get_outside_chicken(tile_pos) if chick is None: return if len(self.chickens) == 1: @@ -259,7 +259,7 @@ This will either select an animal or place a selected animal in a building. """ - chicken = self.get_chicken(tile_pos) + chicken = self.get_outside_chicken(tile_pos) if chicken: if chicken is self.animal_to_place: self.animal_to_place = None @@ -395,7 +395,7 @@ self.add_building(building) def buy_equipment(self, tile_pos, equipment_cls): - chicken = self.get_chicken(tile_pos) + chicken = self.get_outside_chicken(tile_pos) equipment = equipment_cls() if chicken is None or self.cash < equipment.buy_price(): return @@ -414,7 +414,7 @@ self.remove_building(building) def sell_equipment(self, tile_pos): - chicken = self.get_chicken(tile_pos) + chicken = self.get_outside_chicken(tile_pos) if chicken is None or not chicken.equipment: return if len(chicken.equipment) == 1: