Entity Effects
#1
Does anyone have an idea on how to manage entity effects?
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)
  • Each entity has an array with the effects it has.
  • Each tick the entity calls a Tick function that manages what should happen.
Reply
Thanks given by:


Messages In This Thread
Entity Effects - by NiLSPACE - 01-01-2014, 01:00 AM
RE: Entity Effects - by xoft - 01-01-2014, 08:21 AM
RE: Entity Effects - by SamJBarney - 01-01-2014, 02:34 PM



Users browsing this thread: 1 Guest(s)