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
<pre class="jasscode"><span class="style_keyword">function</span> 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<span class="style_symbol">[</span>this<span class="style_symbol">]</span> = Vectors_ZERO3_x set Entity_pos_2<span class="style_symbol">[</span>this<span class="style_symbol">]</span> = Vectors_ZERO3_y set Entity_pos_3<span class="style_symbol">[</span>this<span class="style_symbol">]</span> = Vectors_ZERO3_z set Entity_done<span class="style_symbol">[</span>this<span class="style_symbol">]</span> = <span class="style_keyword">false</span> set DupletListModule_active<span class="style_symbol">[</span>this<span class="style_symbol">]</span> = <span class="style_keyword">true</span> set wurstStackTrace_2 = <span class="style_string">"\n DupletListModule, line 19"</span> + <span class="style_string">"\n DupletListModule, line 18"</span> + wurstStackTrace <span class="style_keyword">if</span> Entity_typeId<span class="style_symbol">[</span>this<span class="style_symbol">]</span> == <span class="style_int">0</span> then <span class="style_keyword">if</span> this == <span class="style_int">0</span> then call error<span class="style_symbol">(</span><span class="style_string">"Nullpointer exception when calling Entity.addToActive"</span>, <span class="style_string">""</span> + wurstStackTrace_2<span class="style_symbol">)</span> <span class="style_keyword">else</span> call error<span class="style_symbol">(</span><span class="style_string">"Called Entity.addToActive on invalid object."</span>, <span class="style_string">""</span> + wurstStackTrace_2<span class="style_symbol">)</span> <span class="style_keyword">endif</span> <span class="style_keyword">endif</span> set DupletListModule_activeSize = DupletListModule_activeSize + <span class="style_int">1</span> <span class="style_keyword">if</span> DupletListModule_activeSize == <span class="style_int">1</span> then set DupletListModule_firstActive = this set DupletListModule_prev<span class="style_symbol">[</span>this<span class="style_symbol">]</span> = <span class="style_int">0</span> <span class="style_keyword">else</span> set DupletListModule_prev<span class="style_symbol">[</span>this<span class="style_symbol">]</span> = DupletListModule_lastActive set DupletListModule_next<span class="style_symbol">[</span>DupletListModule_lastActive<span class="style_symbol">]</span> = this set DupletListModule_prev<span class="style_symbol">[</span>DupletListModule_firstActive<span class="style_symbol">]</span> = this <span class="style_keyword">endif</span> set DupletListModule_next<span class="style_symbol">[</span>this<span class="style_symbol">]</span> = <span class="style_int">0</span> set DupletListModule_lastActive = this set wurstStackTrace = <span class="style_string">"\n Entity, line 59"</span> + wurstStackTrace <span class="style_keyword">if</span> Entity_typeId<span class="style_symbol">[</span>this<span class="style_symbol">]</span> == <span class="style_int">0</span> then <span class="style_keyword">if</span> this == <span class="style_int">0</span> then call error<span class="style_symbol">(</span><span class="style_string">"Nullpointer exception when calling Entity.setupEntity"</span>, <span class="style_string">""</span> + wurstStackTrace<span class="style_symbol">)</span> <span class="style_keyword">else</span> call error<span class="style_symbol">(</span><span class="style_string">"Called Entity.setupEntity on invalid object."</span>, <span class="style_string">""</span> + wurstStackTrace<span class="style_symbol">)</span> <span class="style_keyword">endif</span> <span class="style_keyword">endif</span> set Entity_pos<span class="style_symbol">[</span>this<span class="style_symbol">]</span> = pos_x set Entity_pos_2<span class="style_symbol">[</span>this<span class="style_symbol">]</span> = pos_y set Entity_pos_3<span class="style_symbol">[</span>this<span class="style_symbol">]</span> = pos_z set Entity_owner<span class="style_symbol">[</span>this<span class="style_symbol">]</span> = owner endfunction </pre>
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