diff gamelib/buildings.py @ 414:9096c237928c

Dear most illustrious brother, I seek your cooperation with the refactoring of egg layerings and the reloading of guns. Please to provide bank details.
author Jeremy Thurgood <firxen@gmail.com>
date Sat, 21 Nov 2009 12:48:12 +0000
parents 532f1ea476ff
children 8f012ef1f64f
line wrap: on
line diff
--- a/gamelib/buildings.py	Sat Nov 21 12:07:01 2009 +0000
+++ b/gamelib/buildings.py	Sat Nov 21 12:48:12 2009 +0000
@@ -68,6 +68,7 @@
     BREAKABLE = False
     ABODE = False
     FLOORS = None
+    HENHOUSE = False
 
     def __init__(self, pos):
         """Initial image, tile vid position, size and tile number for building."""
@@ -316,6 +317,8 @@
     NAME = 'Henhouse'
     FLOORS = [0]
 
+    HENHOUSE = True
+
 class DoubleStoryHenHouse(HenHouse):
     """A double story hen house."""
 
@@ -368,9 +371,6 @@
     """Return true if obj is a build class."""
     return getattr(obj, "IS_BUILDING", False) and hasattr(obj, "NAME")
 
-# Building hens can lay eggs in
-HENHOUSES = [HenHouse.NAME, DoubleStoryHenHouse.NAME]
-
 BUILDINGS = []
 for name in dir():
     obj = eval(name)