On May 15, 2014, at 12:58 PM, Francesco Pizzitutti <[log in to unmask]> wrote:
>> 1) When you call sparseGrid2d.remove(agent) does it return something or
>> null?
>
> It returns the int2D coordinates of the object I am removing. If I remove the
> object and then I call another time the remove method it returns null. If I use
> getObjectLocation(agent) it return the same coordinates stored inside the agent.
> Everything seems ok.
I presume that you call getObjectLocation(agent) *before* you're removing it. If you call it *after* you remove it, it should return null.
Sean