Warcraft III resources & community, 2003–2006 · archived

Ix

not rated
Submitted by weaaddarVariable Change0 downloads
A simple function you can use to emulate a 2d array.

It works like c-based 2d arrays. Your y coordinate is always going to be a static amount of elements and thats what you define as ylimit.

Ussually, I make ylimit just a static value.

Source

function Ix takes integer x, integer y,integer ylimit returns integer
   return(x*ylimit+y)
endfunction

Comments

0

No comments.