Does anyone have an idea on how to manage entity effects?
I was thinking:
I was thinking:
- Each effects gets it's own class. The class contains:
- The entity it has to tick.
- The level of the effect. (Poison 1/Poison 4)
- The entity it has to tick.
- Each entity has an array with the effects it has.
- Each tick the entity calls a Tick function that manages what should happen.