#How do you do a modular design?

1 messages · Page 1 of 1 (latest)

high tinsel
#

I'm trying to pickup Entities, so going through the material. One thing I'm not clear on, and I know similar has been asked before but I can't find it now.

How do you do a 'modular' system. In my OOP design, I have a component which has a list of polymorphic Modifiers, and each modifier has a polymorphic list of Conditions.

I could make them components, but I want to repeat them. So like a GrowSpeedModifier, one could slow down, while a second one could speed up a bit.

Do I need to change how I am thinking about the OOP design all together?

Links to previous threads on the topic or other resources are good too!

(this is a system for growing plants, like in farming games)

fierce timber
#

I'd suggest looking at my stat library if you want inspiration