diff gamelib/buildings.py @ 144:a9b800b4175e

Add define for henhouses & egg laying.
author Neil Muller <drnlmuller@gmail.com>
date Thu, 03 Sep 2009 14:59:13 +0000
parents 9acf8e3d9596
children 92d11e0544bc
line wrap: on
line diff
--- a/gamelib/buildings.py	Thu Sep 03 10:56:38 2009 +0000
+++ b/gamelib/buildings.py	Thu Sep 03 14:59:13 2009 +0000
@@ -200,6 +200,9 @@
     """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)