How to repeat function until conditions will not complied
<p>I got code:</p>

<pre><code>void Grown()
          {
    if(!hero.getMoving()
    {
        SendAttack(int 110000001, int 1)
    }
         }
</code></pre>

<p>How to repeat function ( if(!hero.getMoving() ) until conditions will not complied?
I don't want repeat all void Grown(), only if(!hero.getMoving()</p>
