Posted: Tue Jan 07, 2003 3:43 pm
Restored from previous forum. Originally posted by JohnDeHope3.
I want to hold a map in a structure, so I need a 2-dimension array like this...
Structure Terrain
Name.s
Walkable.b
CharacterSymbol.s
EndStructure
Structure Map
Name.s
Cells.Terrain[10,10]
EndStructure
This would give my map a 10x10 array of terrain cells. But it seems I cannot have a static, multidimensioned array in a structure.
My beef is that since a structure's size is fixed, and a static array's size is fixed, why can't I have a two-dimensional array of structures?
I want to hold a map in a structure, so I need a 2-dimension array like this...
Structure Terrain
Name.s
Walkable.b
CharacterSymbol.s
EndStructure
Structure Map
Name.s
Cells.Terrain[10,10]
EndStructure
This would give my map a 10x10 array of terrain cells. But it seems I cannot have a static, multidimensioned array in a structure.
My beef is that since a structure's size is fixed, and a static array's size is fixed, why can't I have a two-dimensional array of structures?