Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualsooner123

Posted 16 December 2012 - 03:57 PM

One problem with that two pass method is that the consequences of actions of an entity can depend on an action taken by an entity encountered earlier in the same pass.

So I'm back to not being sure how to handle this without entities being explicitly aware of their location which just seems wrong to me.

Example: a prey moves off a square, while I'm cycling through all the creatures. i need to remove this creature from the list of creatures for that square. in order to do that i need to know which square the creature was on.

Is it wrong of me to think that entities being aware of their location is wrong? I'm not sure why it strikes me that way but I'm trying to look at it from the point of view of the creature, who doesn't understand their x/y location. Only their location relative to other creatures.

#1sooner123

Posted 16 December 2012 - 03:54 PM

One problem with that two pass method is that the consequences of actions of an entity can depend on an action taken by an entity encountered earlier in the same pass.

So I'm back to not being sure how to handle this without entities being explicitly aware of their location which just seems wrong to me.

PARTNERS