Changeset 166:4aa800354b7c


Ignore:
Timestamp:
Sep 3, 2009, 10:38:18 PM (11 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
Convert:
svn:b4e93282-eac8-4b8b-b765-0f5d36de2b68@167
Message:

Rename get_chicken to get_outside_chicken.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gamelib/gameboard.py

    r165 r166  
    231231            self.buy_equipment(self.tv.screen_to_tile(e.pos), self.selected_tool)
    232232
    233     def get_chicken(self, tile_pos):
     233    def get_outside_chicken(self, tile_pos):
    234234        for chick in self.chickens:
    235235            if chick.covers(tile_pos) and chick.outside():
     
    244244
    245245    def sell_chicken(self, tile_pos):
    246         chick = self.get_chicken(tile_pos)
     246        chick = self.get_outside_chicken(tile_pos)
    247247        if chick is None:
    248248            return
     
    260260           place a selected animal in a building.
    261261           """
    262         chicken = self.get_chicken(tile_pos)
     262        chicken = self.get_outside_chicken(tile_pos)
    263263        if chicken:
    264264            if chicken is self.animal_to_place:
     
    396396
    397397    def buy_equipment(self, tile_pos, equipment_cls):
    398         chicken = self.get_chicken(tile_pos)
     398        chicken = self.get_outside_chicken(tile_pos)
    399399        equipment = equipment_cls()
    400400        if chicken is None or self.cash < equipment.buy_price():
     
    415415
    416416    def sell_equipment(self, tile_pos):
    417         chicken = self.get_chicken(tile_pos)
     417        chicken = self.get_outside_chicken(tile_pos)
    418418        if chicken is None or not chicken.equipment:
    419419            return
Note: See TracChangeset for help on using the changeset viewer.