Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualÁlvaro

Posted 16 December 2012 - 04:19 PM

Making the location part of the entity doesn't fell wrong to me at all. If you insist on not having it, you'll have to pass the position to the function that allows a prey to move [and many other functions].

EDIT: You could also make the function return what the creature wants to do, and the code that asked the creature (which knows about the location) is now responsible for executing the action.

#1Álvaro

Posted 16 December 2012 - 04:17 PM

Making the location part of the entity doesn't fell wrong to me at all. If you insist on not having it, you'll have to pass the position to the function that allows a prey to move [and many other functions].

PARTNERS