Developer Blog #2
Colonist Needs

So far I’ve planned out colonists having needs for sleep, hunger as well managing health and mood. Last week I started out by writing a generic needs system which, I thought, would be able to handle the needs of the colonist. The idea wasn’t a bad one, but the system was far too generic to handle anything specific or fun with the needs. After more analysis I realized that the needs really needed to be handled separately to really allow for different behavior and how the need is met.

After realizing I was over thinking the problem I came to the conclusion that I could simply just have each need as a component, in my custom component system, which would handle the raw data values as well as generating any work that needed to be done to supply the need.

Read full blog post here.