Print

Print


Hello Together,

I just wonder what the best way is to iterate over all the agent on my
ObjectGrid2D ?
Currently I'm extracting a Bag with all agents by using the elements()
method. It works, but I'm not sure how fast/slow it is. Would it be
worth to maintain my own Bag and do the bookkeeping by
inserting/removing agents when needed?

thanx,
  Axel