csdl / makahiki

An Open Source "Serious Game" Framework for Sustainability
http://makahiki.readthedocs.org/
MIT License
7 stars 5 forks source link

Generalize daily_energy_goal_count() #468

Open rbrewer opened 12 years ago

rbrewer commented 12 years ago

There is a predicate for daily_energy_goal_count, but nothing for water (or waste). Either new predicates should be created for the other resource types, or the existing predicate should be generalized so that it takes the resource type as a parameter.

cammoore commented 11 years ago

One way to do this is to refactor resources - a long and involved process. Another way is to just hack the code and have a big if else block for each of the resources.

Which way do we want to do this?