I would just like to make a quick note that if you are going
to use the setRows and setCols to change the dimension of the
maze you will have to call LoadMaze to recreate the roomList
and wallList, and LoadMaze takes its own row and column
parameters anyway.
setRows and setCols could be defined to call LoadMaze with
an alteration to only one parameter, the other one being
drawn from the current state---but, judging from the test
suites which do not use this functionality and other discussion
board replies which state that it simply alters the value
of numRows and numCols, this does not seem to be the proper
solution.
One further idea is to simply leave the setRows and setCols
methods private and have them only be called by LoadMaze, but
it adds an unnecessary method call to LoadMaze (they will only
be used once, and too simple), and it is not clear from the
assignment whether this is permitted or whether the methods have
to be public.