I have a problem. I have to explain a little bit of the code of a programm. But I have a question because I don't understand a piece of the code.
This is de code:
Lichaam next;
int x;
int y;
int rotation;
public void act()
{
//Hij kijkt of de slang iets aanraakt.
if(getIntersectingObjects(Lichaam.class).size() > 0)
{
((Achtergrond)(getWorld())).GameOver();
return;
//Hij gaat weer terug naar het vorige scherm.
}
else if (getX()==51 || getY()==51 || getX()==0 || getY()==0)
//Het programma kijkt of de slang tegen de rand aankomt.
{
((Achtergrond)(getWorld())).GameOver();
return;
}
There stands " Lichaam next; " lichaam is a variabele but where does next stand for?
" If(getIntersectingObjects(Lichaam.class).size() > 0)" how does dis line work?
Thanks in advance!

