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][color=7777FF][b]function[/b][/color] construct_Entity5 [color=7777FF][b]takes[/b][/color] [color=AA77FF]integer[/color] [color=7777FF][b]this[/b][/color][b],[/b] [color=AA77FF]player[/color] owner[b],[/b] [color=AA77FF]real[/color] pos_x[b],[/b] [color=AA77FF]real[/color] pos_y[b],[/b] [color=AA77FF]real[/color] pos_z[b],[/b] [color=AA77FF]real[/color] radius[b],[/b] [color=AA77FF]string[/color] wurstStackTrace [color=7777FF][b]returns[/b][/color] [color=7777FF][b]nothing[/b][/color] [color=7777FF][b]local[/b][/color] [color=AA77FF]string[/color] wurstStackTrace_2 [color=7777FF][b]set[/b][/color] Entity_pos[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b] Vectors_ZERO3_x [color=7777FF][b]set[/b][/color] Entity_pos_2[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b] Vectors_ZERO3_y [color=7777FF][b]set[/b][/color] Entity_pos_3[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b] Vectors_ZERO3_z [color=7777FF][b]set[/b][/color] Entity_done[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b] false [color=7777FF][b]set[/b][/color] DupletListModule_active[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b] true [color=7777FF][b]set[/b][/color] 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][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b][b]=[/b] [color=FFFF77]0[/color] [color=7777FF][b]then[/b][/color] [color=7777FF][b]if[/b][/color] [color=7777FF][b]this[/b][/color] [b]=[/b][b]=[/b] [color=FFFF77]0[/color] [color=7777FF][b]then[/b][/color] [color=7777FF][b]call[/b][/color] 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] [color=7777FF][b]call[/b][/color] error[b]([/b][color=77FF77]"Called Entity.addToActive on invalid object."[/color][b],[/b] [color=77FF77]""[/color] [b]+[/b] wurstStackTrace_2[b])[/b] [color=7777FF][b]endif[/b][/color] [color=7777FF][b]endif[/b][/color] [color=7777FF][b]set[/b][/color] 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] [color=7777FF][b]then[/b][/color] [color=7777FF][b]set[/b][/color] DupletListModule_firstActive [b]=[/b] [color=7777FF][b]this[/b][/color] [color=7777FF][b]set[/b][/color] DupletListModule_prev[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b] [color=FFFF77]0[/color] [color=7777FF][b]else[/b][/color] [color=7777FF][b]set[/b][/color] DupletListModule_prev[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b] DupletListModule_lastActive [color=7777FF][b]set[/b][/color] DupletListModule_next[b][[/b]DupletListModule_lastActive[b]][/b] [b]=[/b] [color=7777FF][b]this[/b][/color] [color=7777FF][b]set[/b][/color] DupletListModule_prev[b][[/b]DupletListModule_firstActive[b]][/b] [b]=[/b] [color=7777FF][b]this[/b][/color] [color=7777FF][b]endif[/b][/color] [color=7777FF][b]set[/b][/color] DupletListModule_next[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b] [color=FFFF77]0[/color] [color=7777FF][b]set[/b][/color] DupletListModule_lastActive [b]=[/b] [color=7777FF][b]this[/b][/color] [color=7777FF][b]set[/b][/color] wurstStackTrace [b]=[/b] [color=77FF77]"\n Entity, line 59"[/color] [b]+[/b] wurstStackTrace [color=7777FF][b]if[/b][/color] Entity_typeId[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b][b]=[/b] [color=FFFF77]0[/color] [color=7777FF][b]then[/b][/color] [color=7777FF][b]if[/b][/color] [color=7777FF][b]this[/b][/color] [b]=[/b][b]=[/b] [color=FFFF77]0[/color] [color=7777FF][b]then[/b][/color] [color=7777FF][b]call[/b][/color] 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] [color=7777FF][b]call[/b][/color] error[b]([/b][color=77FF77]"Called Entity.setupEntity on invalid object."[/color][b],[/b] [color=77FF77]""[/color] [b]+[/b] wurstStackTrace[b])[/b] [color=7777FF][b]endif[/b][/color] [color=7777FF][b]endif[/b][/color] [color=7777FF][b]set[/b][/color] Entity_pos[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b] pos_x [color=7777FF][b]set[/b][/color] Entity_pos_2[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b] pos_y [color=7777FF][b]set[/b][/color] Entity_pos_3[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b] pos_z [color=7777FF][b]set[/b][/color] Entity_owner[b][[/b][color=7777FF][b]this[/b][/color][b]][/b] [b]=[/b] owner [color=7777FF][b]endfunction[/b][/color] [/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