I wanted to get an ArrayList of the neighbours of an actor at the position x,y, but it doesn't work!
this is my code
the error is as follows:
<A>getNeighbours(int,boolean,java.lang.Class<A>) has protected acess in Greenfoot.Actor
List neighbours = (getOneObjectAtOffset(x2, y2, blankSquare.class).getNeighbours(1, true, blankSquare.class));
