There is no direct way to do this, but you've got some choices.
First of all, you can use the (dated) Dary system[1]. Or have a look at vJass' dynamic arrays[2]. And at last, there are always Tables[3].
_______
e: i can't get the links inline, so here they are
[1]...
It's not really hard. And i must know, since i already did it ;) But go ahead and build it since it's a nice project. Just look at the bridges as rects or regions an check on entering if the unit is high enough. Also, try to allow bridges above other bridges.
But i guess that leaving bridge...
Try it yourself. Or tell me where that this comes from in the method shown below taken from the op.
Or tell me where it returns some value of type thistype.
static method for takes real x, real y, real r, boolexpr c returns thistype
local List node
local...
Nah, Jass supports recursion. So the above will work.
It does not support calling a function which was not defined before calling, so smth like this wont work:
function even takes integer i returns boolean
if i == 0 then
return true
else
return odd(i-1)
endif...
http://wc3c.net/vexorian/jasshelpermanual.html#extendstruct
Uhm? They do.
//Generated allocator of Parent
function s__Parent__allocate takes nothing returns integer
local integer this=si__Parent_F
if (this!=0) then
set si__Parent_F=si__Parent_V[this]
else
set...
Using a heap for n insertions you get a time-complexity of O(n*ln n). Everyone agrees? (Don't know if i use the right terminology, correct me if im wrong.)
Now lets consider this:
globals
unit minUnit
real minDist
real tmpX
real tmpY
endglobals
function foldl takes nothing...