I need help writing pacman with NGP for a school lab. I just started with java. I am NOT trying to have the project written for me, just need help getting started. There are two classes and an interface we need to use listed on the site below. The game board pieces are in the BoardPositions class(on site below) and i am not sure how to get them out of the array list and on to the drawing panel. The following for loop is what i am supposed to use:
for(Position p: BoardPositions.WALLS){
_gameBoard.put(p,new WallCell(this,p));
}
I am not sure what would be in the put method and what should be in the WallCell class. I also need to store the game board in a hashmap for later use and need to know how. I realize this is not the best description of the problem but am not sure how else to ask. If anyone would be interested in helping me i can give you more information.The site for the pacman classes is here and the site for the project description is below that. Thanks.
http://www.cse.buffalo.edu/faculty/adrienne/SP2006/cse115/Resources/115Classlibs/JavaDoc/
http://www.cse.buffalo.edu/faculty/adrienne/SP2006/cse115/Labs/Lab8/index.shtml
I will also post what i have so far if you want to look.