</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">intensity</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>of horizontal shaking. Doubled on the first call (where count is 0)</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">repeatCount</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>the number of times this function should be called (asynchronous recursion?!?)</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">count</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>the current number of times this function has been called.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span></h4><p>nothing since it's a Promise<void></p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/7ea608fb8aaa0769e6a9799cbb3b1c45d3dc9474/src/phases/egg-hatch-phase.ts#L222">src/phases/egg-hatch-phase.ts:222</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="doHatch"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>do<wbr/>Hatch</span><ahref="#doHatch"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="doHatch.doHatch-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">do<wbr/>Hatch</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#doHatch.doHatch-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Plays the animation of an egg hatch</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/7ea608fb8aaa0769e6a9799cbb3b1c45d3dc9474/src/phases/egg-hatch-phase.ts#L284">src/phases/egg-hatch-phase.ts:284</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="doReveal"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>do<wbr/>Reveal</span><ahref="#doReveal"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="doReveal.doReveal-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">do<wbr/>Reveal</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#doReveal.doReveal-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Function to do the logic and animation of completing a hatch and revealing the Pokemon</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">intensity</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>number of times this is repeated (this is a badly named variable)</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><codeclass="tsd-tag">Optional</code><spanclass="tsd-kind-parameter">offsetY</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>how much to offset the Y coordinates</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/7ea608fb8aaa0769e6a9799cbb3b1c45d3dc9474/src/phases/egg-hatch-phase.ts#L388">src/phases/egg-hatch-phase.ts:388</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="doSprayParticle"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>do<wbr/>Spray<wbr/>Particle</span><ahref="#doSprayParticle"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="doSprayParticle.doSprayParticle-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">do<wbr/>Spray<wbr/>Particle</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">trigIndex</span>, <spanclass="tsd-kind-parameter">offsetY</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#doSprayParticle.doSprayParticle-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Animates a particle used in the spray animation</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">trigIndex</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>Used to modify the particle's vertical speed, is a random number from 0-7</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">offsetY</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>how much to offset the Y coordinate</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/7ea608fb8aaa0769e6a9799cbb3b1c45d3dc9474/src/phases/egg-hatch-phase.ts#L449">src/phases/egg-hatch-phase.ts:449</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="sin"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>sin</span><ahref="#sin"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ulclass="tsd-signatures"><liclass="tsd-signature tsd-anchor-link"><aid="sin.sin-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">sin</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">index</span>, <spanclass="tsd-kind-parameter">amplitude</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">number</span><ahref="#sin.sin-1"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></li><liclass="tsd-description"><divclass="tsd-comment tsd-typography"><p>Helper function to generate sine. (Why is this not a Utils?!?)</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">index</span>: <spanclass="tsd-signature-type">number</span></span><divclass="tsd-comment tsd-typography"><p>random number from 0-7 being passed in to scale pi/128</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>false if cannot be skipped or already skipped. True otherwise</p>