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:
#2
How many effects are there? Won't that be unreasonably many miniature classes, when they could all be handled by a single function with a medium-sized switch()?
Reply
Thanks given by: Taugeshtu
#3
True, but where do we stick it in the new AI rebuild?
Reply
Thanks given by:




Users browsing this thread: 3 Guest(s)