<!DOCTYPE html><htmlclass="default"lang="en"><head><metacharSet="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>default | pokemon-rogue-battle</title><metaname="description"content="Documentation for pokemon-rogue-battle"/><metaname="viewport"content="width=device-width, initial-scale=1"/><linkrel="stylesheet"href="../assets/style.css"/><linkrel="stylesheet"href="../assets/highlight.css"/><scriptdefersrc="../assets/main.js"></script><scriptasyncsrc="../assets/icons.js"id="tsd-icons-script"></script><scriptasyncsrc="../assets/search.js"id="tsd-search-script"></script><scriptasyncsrc="../assets/navigation.js"id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme=localStorage.getItem("tsd-theme")||"os";document.body.style.display="none";setTimeout(()=>app?app.showPage():document.body.style.removeProperty("display"),500)</script><headerclass="tsd-page-toolbar"><divclass="tsd-toolbar-contents container"><divclass="table-cell"id="tsd-search"data-base=".."><divclass="field"><labelfor="tsd-search-field"class="tsd-widget tsd-toolbar-icon search no-caption"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="../assets/icons.svg#icon-search"></use></svg></label><inputtype="text"id="tsd-search-field"aria-label="Search"/></div><divclass="field"><divid="tsd-toolbar-links"></div></div><ulclass="results"><liclass="state loading">Preparing search index...</li><liclass="state failure">The search index is not available</li></ul><ahref="../index.html"class="title">pokemon-rogue-battle</a></div><divclass="table-cell"id="tsd-widgets"><ahref="#"class="tsd-widget tsd-toolbar-icon menu no-caption"data-toggle="menu"aria-label="Menu"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><divclass="container container-main"><divclass="col-content"><divclass="tsd-page-title"><ulclass="tsd-breadcrumb"><li><ahref="../index.html">pokemon-rogue-battle</a></li><li><ahref="../modules/test_utils_gameManager.html">test/utils/gameManager</a></li><li><ahref="test_utils_gameManager.default.html">default</a></li></ul><h1>Class default</h1></div><sectionclass="tsd-panel tsd-comment"><divclass="tsd-comment tsd-typography"><p>Class to manage the game state and transitions between phases.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <ahref="test_utils_gameManager.default.html"class="tsd-signature-type tsd-kind-class">default</a></h4><divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L42">src/test/utils/gameManager.ts:42</a></li></ul></aside></li></ul></section></section><sectionclass="tsd-panel-group tsd-member-group"><h2>Properties</h2><sectionclass="tsd-panel tsd-member"><aid="gameWrapper"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>game<wbr/>Wrapper</span><ahref="#gameWrapper"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">game<wbr/>Wrapper</span><spanclass="tsd-signature-symbol">:</span><ahref="test_utils_gameWrapper.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L31">src/test/utils/gameManager.ts:31</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="inputsHandler"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>inputs<wbr/>Handler</span><ahref="#inputsHandler"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">inputs<wbr/>Handler</span><spanclass="tsd-signature-symbol">:</span><ahref="test_utils_inputsHandler.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L35">src/test/utils/gameManager.ts:35</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="phaseInterceptor"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>phase<wbr/>Interceptor</span><ahref="#phaseInterceptor"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">phase<wbr/>Interceptor</span><spanclass="tsd-signature-symbol">:</span><ahref="test_utils_phaseInterceptor.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L33">src/test/utils/gameManager.ts:33</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="scene"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>scene</span><ahref="#scene"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">scene</span><spanclass="tsd-signature-symbol">:</span><ahref="battle_scene.default.html"class="tsd-signature-type tsd-kind-class">default</a></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L32">src/test/utils/gameManager.ts:32</a></li></ul></aside></section><sectionclass="tsd-panel tsd-member"><aid="textInterceptor"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>text<wbr/>Interceptor</span><ahref="#textInterceptor"aria-label="Permalink"class="tsd-anchor-icon"><svgviewBox="0 0 24 24"><usehref="../assets/icons.svg#icon-anchor"></use></svg></a></h3><divclass="tsd-signature"><spanclass="tsd-kind-property">text<wbr/>Interceptor</span><spanclass="tsd-si
</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/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L76">src/test/utils/gameManager.ts:76</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="exportSaveToTest"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>export<wbr/>Save<wbr/>To<wbr/>Test</span><ahref="#exportSaveToTest"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="exportSaveToTest.exportSaveToTest-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">export<wbr/>Save<wbr/>To<wbr/>Test</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">string</span><spanclass="tsd-signature-symbol">></span><ahref="#exportSaveToTest.exportSaveToTest-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>Exports the save data to import it in a test game.</p>
</div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">string</span><spanclass="tsd-signature-symbol">></span></h4><p>A promise that resolves with the exported save data.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L187">src/test/utils/gameManager.ts:187</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="importData"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>import<wbr/>Data</span><ahref="#importData"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="importData.importData-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">import<wbr/>Data</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">path</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-symbol">[</span><spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol">, </span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol">]</span><spanclass="tsd-signature-symbol">></span><ahref="#importData.importData-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>Imports game data from a file.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">path</span>: <spanclass="tsd-signature-type">any</span></span><divclass="tsd-comment tsd-typography"><p>The path to the data file.</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-symbol">[</span><spanclass="tsd-signature-type">boolean</span><spanclass="tsd-signature-symbol">, </span><spanclass="tsd-signature-type">number</span><spanclass="tsd-signature-symbol">]</span><spanclass="tsd-signature-symbol">></span></h4><p>A promise that resolves with a tuple containing a boolean indicating success and an integer status code.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L203">src/test/utils/gameManager.ts:203</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="isCurrentMode"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>is<wbr/>Current<wbr/>Mode</span><ahref="#isCurrentMode"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="isCurrentMode.isCurrentMode-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">is<wbr/>Current<wbr/>Mode</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">mode</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#isCurrentMode.isCurrentMode-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>Checks if the current mode matches the target mode.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if the current mode matches the target mode, otherwise false.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L179">src/test/utils/gameManager.ts:179</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="isCurrentPhase"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>is<wbr/>Current<wbr/>Phase</span><ahref="#isCurrentPhase"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="isCurrentPhase.isCurrentPhase-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">is<wbr/>Current<wbr/>Phase</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">phaseTarget</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#isCurrentPhase.isCurrentPhase-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>Checks if the current phase matches the target phase.</p>
</div><divclass="tsd-comment tsd-typography"></div></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">boolean</span></h4><p>True if the current phase matches the target phase, otherwise false.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L169">src/test/utils/gameManager.ts:169</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="isVictory"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>is<wbr/>Victory</span><ahref="#isVictory"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="isVictory.isVictory-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">is<wbr/>Victory</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">boolean</span><ahref="#isVictory.isVictory-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>Checks if the player has won the battle.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L160">src/test/utils/gameManager.ts:160</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="onNextPrompt"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>on<wbr/>Next<wbr/>Prompt</span><ahref="#onNextPrompt"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="onNextPrompt.onNextPrompt-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">on<wbr/>Next<wbr/>Prompt</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">phaseTarget</span>, <spanclass="tsd-kind-parameter">mode</span>, <spanclass="tsd-kind-parameter">callback</span>, <spanclass="tsd-kind-parameter">expireFn</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#onNextPrompt.onNextPrompt-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>Adds an action to be executed on the next prompt.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">mode</span>: <ahref="../enums/ui_ui.Mode.html"class="tsd-signature-type tsd-kind-enum">Mode</a></span><divclass="tsd-comment tsd-typography"><p>The mode to wait for.</p>
</div><divclass="tsd-comment tsd-typography"></div></li><li><span><spanclass="tsd-kind-parameter">callback</span>: <spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol"> =></span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">)</span></span><divclass="tsd-comment tsd-typography"><p>The callback to execute.</p>
</div><divclass="tsd-comment tsd-typography"></div><ulclass="tsd-parameters"><liclass="tsd-parameter-signature"><ulclass="tsd-signatures"><liclass="tsd-signature"><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span></li><liclass="tsd-description"><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4></li></ul></li></ul></li><li><span><codeclass="tsd-tag ts-flagOptional">Optional</code><spanclass="tsd-kind-parameter">expireFn</span>: <spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol"> =></span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">)</span></span><divclass="tsd-comment tsd-typography"><p>Optional function to determine if the prompt has expired.</p>
</div><divclass="tsd-comment tsd-typography"></div><ulclass="tsd-parameters"><liclass="tsd-parameter-signature"><ulclass="tsd-signatures"><liclass="tsd-signature"><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span></li><liclass="tsd-description"><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4></li></ul></li></ul></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/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L87">src/test/utils/gameManager.ts:87</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="runToSummon"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>run<wbr/>To<wbr/>Summon</span><ahref="#runToSummon"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="runToSummon.runToSummon-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">run<wbr/>To<wbr/>Summon</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">species</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span><ahref="#runToSummon.runToSummon-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>Runs the game to the summon phase.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><codeclass="tsd-tag ts-flagOptional">Optional</code><spanclass="tsd-kind-parameter">species</span>: <ahref="../enums/data_enums_species.Species.html"class="tsd-signature-type tsd-kind-enum">Species</a><spanclass="tsd-signature-symbol">[]</span></span><divclass="tsd-comment tsd-typography"><p>Optional array of species to summon.</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>A promise that resolves when the summon phase is reached.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L119">src/test/utils/gameManager.ts:119</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="runToTitle"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>run<wbr/>To<wbr/>Title</span><ahref="#runToTitle"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="runToTitle.runToTitle-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">run<wbr/>To<wbr/>Title</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span><ahref="#runToTitle.runToTitle-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>Runs the game to the title phase.</p>
</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>A promise that resolves when the title phase is reached.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><codeclass="tsd-tag ts-flagOptional">Optional</code><spanclass="tsd-kind-parameter">species</span>: <ahref="../enums/data_enums_species.Species.html"class="tsd-signature-type tsd-kind-enum">Species</a><spanclass="tsd-signature-symbol">[]</span></span><divclass="tsd-comment tsd-typography"><p>Optional array of species to start the battle with.</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>A promise that resolves when the battle is started.</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/32d222c9cde6a2ff2e22cf9ccbd625e650ebc8c5/src/test/utils/gameManager.ts#L139">src/test/utils/gameManager.ts:139</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="waitMode"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>wait<wbr/>Mode</span><ahref="#waitMode"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="waitMode.waitMode-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">wait<wbr/>Mode</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">mode</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">Promise</span><spanclass="tsd-signature-symbol"><</span><spanclass="tsd-signature-type">void</span><spanclass="tsd-signature-symbol">></span><ahref="#waitMode.waitMode-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>Waits until the specified mode is set.</p>
</div><divclass="tsd-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">mode</span>: <ahref="../enums/ui_ui.Mode.html"class="tsd-signature-type tsd-kind-enum">Mode</a></span><divclass="tsd-comment tsd-typography"><p>The mode to wait for.</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>A promise that resolves when the mode is set.</p>