diff gamelib/constants.py @ 64:99fbb652ce8d

Refactor buildings so that new ones can be added just by adding a class to buildings.py.
author Simon Cross <hodgestar@gmail.com>
date Mon, 31 Aug 2009 20:25:11 +0000
parents e2631c8e2cd6
children edc15ce8fa30
line wrap: on
line diff
--- a/gamelib/constants.py	Mon Aug 31 19:32:42 2009 +0000
+++ b/gamelib/constants.py	Mon Aug 31 20:25:11 2009 +0000
@@ -22,11 +22,8 @@
 STARTING_CASH = 1000
 SELL_PRICE_CHICKEN = 10
 BUY_PRICE_FENCE = 50
-BUY_PRICE_HENHOUSE = 100
-BUY_PRICE_GUARDTOWER = 200
 
 TOOL_SELL_CHICKEN = 1
 TOOL_SELL_EGG = 2
-TOOL_BUY_FENCE = 3
-TOOL_BUY_HENHOUSE = 4
-TOOL_BUY_GUARDTOWER = 5
+TOOL_SELL_BUILDING = 3
+TOOL_BUY_FENCE = 4