Skip to content
Home
Post Code
Jass (Warcraft III)
Wurst
GUI (Warcraft III)
Galaxy (StarCraft II)
GUI (StarCraft II)
C++
Java
Delphi
Text
Search Code
Compare Code
Uploads
Draw
Create New Drawing
View Drawings
Graph
Log in
[code]function construct_Entity5 takes integer this[b],[/b] player owner[b],[/b] real pos_x[b],[/b] real pos_y[b],[/b] real pos_z[b],[/b] real radius[b],[/b] [color=AA77FF]string[/color] wurstStackTrace returns nothing local [color=AA77FF]string[/color] wurstStackTrace_2 set Entity_pos[b][[/b]this[b]][/b] [b]=[/b] Vectors_ZERO3_x set Entity_pos_2[b][[/b]this[b]][/b] [b]=[/b] Vectors_ZERO3_y set Entity_pos_3[b][[/b]this[b]][/b] [b]=[/b] Vectors_ZERO3_z set Entity_done[b][[/b]this[b]][/b] [b]=[/b] [color=7777FF][b]false[/b][/color] set DupletListModule_active[b][[/b]this[b]][/b] [b]=[/b] [color=7777FF][b]true[/b][/color] set wurstStackTrace_2 [b]=[/b] [color=77FF77]"\n DupletListModule, line 19"[/color] [b]+[/b] [color=77FF77]"\n DupletListModule, line 18"[/color] [b]+[/b] wurstStackTrace [color=7777FF][b]if[/b][/color] Entity_typeId[b][[/b]this[b]][/b] [b]=[/b][b]=[/b] [color=FFFF77]0[/color] then [color=7777FF][b]if[/b][/color] this [b]=[/b][b]=[/b] [color=FFFF77]0[/color] then call error[b]([/b][color=77FF77]"Nullpointer exception when calling Entity.addToActive"[/color][b],[/b] [color=77FF77]""[/color] [b]+[/b] wurstStackTrace_2[b])[/b] [color=7777FF][b]else[/b][/color] call error[b]([/b][color=77FF77]"Called Entity.addToActive on invalid object."[/color][b],[/b] [color=77FF77]""[/color] [b]+[/b] wurstStackTrace_2[b])[/b] endif endif set DupletListModule_activeSize [b]=[/b] DupletListModule_activeSize [b]+[/b] [color=FFFF77]1[/color] [color=7777FF][b]if[/b][/color] DupletListModule_activeSize [b]=[/b][b]=[/b] [color=FFFF77]1[/color] then set DupletListModule_firstActive [b]=[/b] this set DupletListModule_prev[b][[/b]this[b]][/b] [b]=[/b] [color=FFFF77]0[/color] [color=7777FF][b]else[/b][/color] set DupletListModule_prev[b][[/b]this[b]][/b] [b]=[/b] DupletListModule_lastActive set DupletListModule_next[b][[/b]DupletListModule_lastActive[b]][/b] [b]=[/b] this set DupletListModule_prev[b][[/b]DupletListModule_firstActive[b]][/b] [b]=[/b] this endif set DupletListModule_next[b][[/b]this[b]][/b] [b]=[/b] [color=FFFF77]0[/color] set DupletListModule_lastActive [b]=[/b] this set wurstStackTrace [b]=[/b] [color=77FF77]"\n Entity, line 59"[/color] [b]+[/b] wurstStackTrace [color=7777FF][b]if[/b][/color] Entity_typeId[b][[/b]this[b]][/b] [b]=[/b][b]=[/b] [color=FFFF77]0[/color] then [color=7777FF][b]if[/b][/color] this [b]=[/b][b]=[/b] [color=FFFF77]0[/color] then call error[b]([/b][color=77FF77]"Nullpointer exception when calling Entity.setupEntity"[/color][b],[/b] [color=77FF77]""[/color] [b]+[/b] wurstStackTrace[b])[/b] [color=7777FF][b]else[/b][/color] call error[b]([/b][color=77FF77]"Called Entity.setupEntity on invalid object."[/color][b],[/b] [color=77FF77]""[/color] [b]+[/b] wurstStackTrace[b])[/b] endif endif set Entity_pos[b][[/b]this[b]][/b] [b]=[/b] pos_x set Entity_pos_2[b][[/b]this[b]][/b] [b]=[/b] pos_y set Entity_pos_3[b][[/b]this[b]][/b] [b]=[/b] pos_z set Entity_owner[b][[/b]this[b]][/b] [b]=[/b] owner endfunction [/code]
select language
jass
java
delphi
C++
php
GSL
> galaxy
visualBasic
wurst
Text
Markdown
select style
default
> bbcode - default
Jasscraft
jasscraft html
visual
lightweight
lightweightNr
goto line:
Compare with:
text copy window
edit this code
post new code
function construct_Entity5 takes integer this, player owner, real pos_x, real pos_y, real pos_z, real radius, string wurstStackTrace returns nothing local string wurstStackTrace_2 set Entity_pos[this] = Vectors_ZERO3_x set Entity_pos_2[this] = Vectors_ZERO3_y set Entity_pos_3[this] = Vectors_ZERO3_z set Entity_done[this] = false set DupletListModule_active[this] = true set wurstStackTrace_2 = "\n DupletListModule, line 19" + "\n DupletListModule, line 18" + wurstStackTrace if Entity_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling Entity.addToActive", "" + wurstStackTrace_2) else call error("Called Entity.addToActive on invalid object.", "" + wurstStackTrace_2) endif endif set DupletListModule_activeSize = DupletListModule_activeSize + 1 if DupletListModule_activeSize == 1 then set DupletListModule_firstActive = this set DupletListModule_prev[this] = 0 else set DupletListModule_prev[this] = DupletListModule_lastActive set DupletListModule_next[DupletListModule_lastActive] = this set DupletListModule_prev[DupletListModule_firstActive] = this endif set DupletListModule_next[this] = 0 set DupletListModule_lastActive = this set wurstStackTrace = "\n Entity, line 59" + wurstStackTrace if Entity_typeId[this] == 0 then if this == 0 then call error("Nullpointer exception when calling Entity.setupEntity", "" + wurstStackTrace) else call error("Called Entity.setupEntity on invalid object.", "" + wurstStackTrace) endif endif set Entity_pos[this] = pos_x set Entity_pos_2[this] = pos_y set Entity_pos_3[this] = pos_z set Entity_owner[this] = owner endfunction