15

» WarCraft 3 / Библиотека функций

разделение Id на разряды

function GetFirstBit takes integer id returns integer
return (id-'0000') - 256 * R2I((id-'0000')/256)
endfunction

function GetSecondBit takes integer id returns integer
return R2I((id-'0000')/256)-256*R2I((id-'0000')/65536)
endfunction

function GetThirdBit takes integer id returns integer
return R2I((id-'0000')/65536)-256*R2I((id-'0000')/16777216)
endfunction

function GetFourthBit takes integer id returns integer
return R2I((id-'0000')/16777216)
endfunction
15

» WarCraft 3 / BomberMan v.0.4

прикольно =), но вот я не помню чтобы в бомбермене мона было бегать сквозь бомбы
и вот еще было бы удобнее на стрелках сделать перемещение