OHH! Those were helpful for me too. But more questions has been discovered. Form the "Board" class.
1. What does "addArray" method do?
2. What does this line "System.arraycopy(snake, 0, newSnake, 0, snake.length);" mean?
3. What the sign "<>" is used and what the line "List<Item> item = getObjects(Item.class);" does actually?
From the "Item" class:
1. by referring this line "Actor item = getOneIntersectingObject(Wall.class);"- why "Wall.class" is used to get an intersecting object? Souldn't it be "Snake.class"?
Recent Comments | Show All
2012/11/22
Lab 6 – Snake
2012/11/18
Snake