Yeah, I suppose characters do occupy less space than integers, so you can go with the string.
Also I didn't understand what you were saying about the multi-dimensional arrays earlier, but yeah, I guess you'll need a 3D array of pointers which point to particular location objects on the "map".
EDIT: Actually, I think using a grid map is a little elaborate. You could just alter the permission string you're using from something like "TFFTFFFT" into {"Meadow","F","F","Living Room","F","F","F","Riverside"}, so that you automatically have the list of accessible locations and their direction. Or if you're using location IDs which I suggest, you can just do {23,0,0,18,0,0,0,7} or something like that.
__________________
Credits to Loveless for the great signature!
We rode on the winds of the rising storm
We ran to the sounds of thunder
We danced among the lightning bolts
And tore the world asunder
Last edited by Vasu; 11-23-2011 at 04:04 PM..
|