HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

are there 2D arrays in JASS?

01-02-2003, 09:13 AM#1
spekkio
see topic.

if so, please tell how to declare one.
01-02-2003, 10:33 AM#2
AIAndy
There are no 2D arrays in JASS, but you can realize a 2D array in a 1D array by using a function that codes 2 integers into 1.
E.g. if you want an 2D array with 10 x 10 you could use that one:

function c takes integer x, integer y returns integer
return 10*y + x
endfunction
01-02-2003, 10:52 AM#3
spekkio
hmmm... thanks again!
well i guess ill have to use that one