Well, I am working on a game partly based on a minesweeper princip, where each of my cells have several caracteristics.
Until now, I have used several arrays to store the different properties of my cells (visible/unvisible, XValue, YValue...).
As a cell is always composed of the same properties, I thought it would be a good reason to try to make use of Blitz's 'type' possibilities.
The trouble is, I need to be able to address each cell individualy (among several reasons because of recursivity).
Is it possible to use something like :
Type CellProperties(100)
Field X
Field Y
Field Visibility
End Type
And if yes, are there restrictions to that ?
(I prefer to ask and know the contraints in advance, because if I use that, I'll have to re-write a very part of my code...)
Thank a lot in advance for any help ! :-)
Until now, I have used several arrays to store the different properties of my cells (visible/unvisible, XValue, YValue...).
As a cell is always composed of the same properties, I thought it would be a good reason to try to make use of Blitz's 'type' possibilities.
The trouble is, I need to be able to address each cell individualy (among several reasons because of recursivity).
Is it possible to use something like :
Type CellProperties(100)
Field X
Field Y
Field Visibility
End Type
And if yes, are there restrictions to that ?
(I prefer to ask and know the contraints in advance, because if I use that, I'll have to re-write a very part of my code...)
Thank a lot in advance for any help ! :-)