|
-
Jan 22nd, 2013, 06:11 PM
#15
Re: Save and load a class
Yeah, it is possible....but having done it, I'm not so sure that it's a good idea. Referencing a single element in a 2D array is pretty simple: X and Y. Referencing a single element in a 2D array mapped to a 1D array takes an equation: (Y * width) + X. Even though I created it in a class where I could write the method once and it would work, I found that I was always doing some odd things. For instance, I might shift some elements up and left, at which point I'd be trying to figure out how that changed everything. It worked, but I'm not sure it was in any way easier than just using a 2D array.
My usual boring signature: Nothing
 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|