Quote:
Originally posted by chewysplace
the 4th is to keep the information on what is contained at the coordinats:
blah[x][y][z][item]
|
Hrmm... I would have thought that
item = blah[x][y][z];
Unless you are saying that blah is just an array of booleans to see if a particular item exists at that location. Doesn't seem like a very efficient arrangement if that's the case, though. Even if you are designing it to have multiple items at a spot, I would think that it would be item = blah[x][y][z][i], where i is an index to the number of items at location x,y,z.
Anyway, I would definitely go with the class idea. It's much more expandable and easier to implement.