pokerogue/main/classes/test_utils_gameManager.default.html

100 lines
80 KiB
HTML
Raw Normal View History

2024-07-28 00:48:18 +01:00
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>default | pokemon-rogue-battle</title><meta name="description" content="Documentation for pokemon-rogue-battle"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../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><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">pokemon-rogue-battle</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">pokemon-rogue-battle</a></li><li><a href="../modules/test_utils_gameManager.html">test/utils/gameManager</a></li><li><a href="test_utils_gameManager.default.html">default</a></li></ul><h1>Class default</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Class to manage the game state and transitions between phases.</p>
2024-08-17 23:26:20 +01:00
</div><div class="tsd-comment tsd-typography"></div></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L37">src/test/utils/gameManager.ts:37</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="test_utils_gameManager.default.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
2024-08-17 18:01:18 +01:00
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="test_utils_gameManager.default.html#classicMode" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>classic<wbr/>Mode</span></a>
<a href="test_utils_gameManager.default.html#dailyMode" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>daily<wbr/>Mode</span></a>
<a href="test_utils_gameManager.default.html#gameWrapper" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>game<wbr/>Wrapper</span></a>
2024-06-07 23:34:52 +01:00
<a href="test_utils_gameManager.default.html#inputsHandler" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>inputs<wbr/>Handler</span></a>
2024-08-17 18:01:18 +01:00
<a href="test_utils_gameManager.default.html#move" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>move</span></a>
<a href="test_utils_gameManager.default.html#override" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>override</span></a>
2024-06-07 23:34:52 +01:00
<a href="test_utils_gameManager.default.html#phaseInterceptor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>phase<wbr/>Interceptor</span></a>
<a href="test_utils_gameManager.default.html#scene" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>scene</span></a>
<a href="test_utils_gameManager.default.html#textInterceptor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>text<wbr/>Interceptor</span></a>
2024-06-10 15:11:46 +01:00
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="test_utils_gameManager.default.html#doAttack" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>do<wbr/>Attack</span></a>
<a href="test_utils_gameManager.default.html#doKillOpponents" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>do<wbr/>Kill<wbr/>Opponents</span></a>
2024-08-17 18:01:18 +01:00
<a href="test_utils_gameManager.default.html#doRevivePokemon" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>do<wbr/>Revive<wbr/>Pokemon</span></a>
2024-06-10 22:36:45 +01:00
<a href="test_utils_gameManager.default.html#doSelectModifier" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>do<wbr/>Select<wbr/>Modifier</span></a>
2024-08-17 18:01:18 +01:00
<a href="test_utils_gameManager.default.html#doSelectPartyPokemon" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>do<wbr/>Select<wbr/>Party<wbr/>Pokemon</span></a>
2024-06-17 23:06:36 +01:00
<a href="test_utils_gameManager.default.html#doSelectTarget" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>do<wbr/>Select<wbr/>Target</span></a>
2024-06-12 19:50:38 +01:00
<a href="test_utils_gameManager.default.html#doSwitchPokemon" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>do<wbr/>Switch<wbr/>Pokemon</span></a>
2024-06-10 15:11:46 +01:00
<a href="test_utils_gameManager.default.html#endPhase" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>end<wbr/>Phase</span></a>
2024-06-07 23:34:52 +01:00
<a href="test_utils_gameManager.default.html#exportSaveToTest" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>export<wbr/>Save<wbr/>To<wbr/>Test</span></a>
2024-06-12 02:42:39 +01:00
<a href="test_utils_gameManager.default.html#forceOpponentToSwitch" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>force<wbr/>Opponent<wbr/>To<wbr/>Switch</span></a>
2024-06-07 23:34:52 +01:00
<a href="test_utils_gameManager.default.html#importData" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>import<wbr/>Data</span></a>
<a href="test_utils_gameManager.default.html#isCurrentMode" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Current<wbr/>Mode</span></a>
<a href="test_utils_gameManager.default.html#isCurrentPhase" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Current<wbr/>Phase</span></a>
<a href="test_utils_gameManager.default.html#isVictory" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Victory</span></a>
2024-06-10 15:11:46 +01:00
<a href="test_utils_gameManager.default.html#killPokemon" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>kill<wbr/>Pokemon</span></a>
2024-06-07 23:34:52 +01:00
<a href="test_utils_gameManager.default.html#onNextPrompt" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>on<wbr/>Next<wbr/>Prompt</span></a>
2024-08-17 18:01:18 +01:00
<a href="test_utils_gameManager.default.html#removeEnemyHeldItems" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>remove<wbr/>Enemy<wbr/>Held<wbr/>Items</span></a>
<a href="test_utils_gameManager.default.html#runToFinalBossEncounter" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>run<wbr/>To<wbr/>Final<wbr/>Boss<wbr/>Encounter</span></a>
2024-06-07 23:34:52 +01:00
<a href="test_utils_gameManager.default.html#runToTitle" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>run<wbr/>To<wbr/>Title</span></a>
<a href="test_utils_gameManager.default.html#setMode" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Mode</span></a>
2024-08-17 18:01:18 +01:00
<a href="test_utils_gameManager.default.html#setTurnOrder" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Turn<wbr/>Order</span></a>
2024-06-07 23:34:52 +01:00
<a href="test_utils_gameManager.default.html#startBattle" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>start<wbr/>Battle</span></a>
2024-06-10 15:11:46 +01:00
<a href="test_utils_gameManager.default.html#toNextTurn" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>to<wbr/>Next<wbr/>Turn</span></a>
<a href="test_utils_gameManager.default.html#toNextWave" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>to<wbr/>Next<wbr/>Wave</span></a>
2024-06-07 23:34:52 +01:00
<a href="test_utils_gameManager.default.html#waitMode" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>wait<wbr/>Mode</span></a>
2024-07-28 00:48:18 +01:00
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Constructors</h2></summary><section><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_default" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new default</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">phaserGame</span>, <span class="tsd-kind-parameter">bypassLogin</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="test_utils_gameManager.default.html" class="tsd-signature-type tsd-kind-class">default</a><a href="#constructor.new_default" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Creates an instance of GameManager.</p>
2024-06-07 23:34:52 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">phaserGame</span>: <span class="tsd-signature-type">Game</span></span><div class="tsd-comment tsd-typography"><p>The Phaser game instance.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">bypassLogin</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></span><div class="tsd-comment tsd-typography"><p>Whether to bypass the login phase.</p>
2024-08-17 23:26:20 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <a href="test_utils_gameManager.default.html" class="tsd-signature-type tsd-kind-class">default</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L53">src/test/utils/gameManager.ts:53</a></li></ul></aside></li></ul></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Properties"><h2><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg> Properties</h2></summary><section><section class="tsd-panel tsd-member"><a id="classicMode" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Readonly</code><span>classic<wbr/>Mode</span><a href="#classicMode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">classic<wbr/>Mode</span><span class="tsd-signature-symbol">:</span> <a href="test_utils_helpers_classicModeHelper.ClassicModeHelper.html" class="tsd-signature-type tsd-kind-class">ClassicModeHelper</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L45">src/test/utils/gameManager.ts:45</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="dailyMode" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Readonly</code><span>daily<wbr/>Mode</span><a href="#dailyMode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">daily<wbr/>Mode</span><span class="tsd-signature-symbol">:</span> <a href="test_utils_helpers_dailyModeHelper.DailyModeHelper.html" class="tsd-signature-type tsd-kind-class">DailyModeHelper</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L46">src/test/utils/gameManager.ts:46</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="gameWrapper" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>game<wbr/>Wrapper</span><a href="#gameWrapper" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">game<wbr/>Wrapper</span><span class="tsd-signature-symbol">:</span> <a href="test_utils_gameWrapper.default.html" class="tsd-signature-type tsd-kind-class">default</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L38">src/test/utils/gameManager.ts:38</a></li></ul></aside></section><section class="tsd-panel tsd-member"><a id="inputsHandler" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>inputs<wbr/>Handler</span><a href="#inputsHandler" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">inputs<wbr/>Handler</span><span class="tsd-signature-symbol">:</span> <a href="test_utils_inputsHandler.default.html" class="tsd-signature-type tsd-kind-class">default</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L42">src/test/utils/gameManager.ts:42</a></li></ul></aside></section><section class="tsd-panel tsd
2024-07-28 00:48:18 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">movePosition</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>the index of the move in the pokemon's moveset array</p>
2024-08-17 23:26:20 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L184">src/test/utils/gameManager.ts:184</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="doKillOpponents" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>do<wbr/>Kill<wbr/>Opponents</span><a href="#doKillOpponents" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="doKillOpponents.doKillOpponents-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">do<wbr/>Kill<wbr/>Opponents</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#doKillOpponents.doKillOpponents-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Faint all opponents currently on the field</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L216">src/test/utils/gameManager.ts:216</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="doRevivePokemon" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>do<wbr/>Revive<wbr/>Pokemon</span><a href="#doRevivePokemon" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="doRevivePokemon.doRevivePokemon-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">do<wbr/>Revive<wbr/>Pokemon</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pokemonIndex</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#doRevivePokemon.doRevivePokemon-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Revive pokemon, currently players only.</p>
2024-08-17 18:01:18 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">pokemonIndex</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>the index of the pokemon in your party to revive</p>
2024-08-17 23:26:20 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L350">src/test/utils/gameManager.ts:350</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="doSelectModifier" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>do<wbr/>Select<wbr/>Modifier</span><a href="#doSelectModifier" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="doSelectModifier.doSelectModifier-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">do<wbr/>Select<wbr/>Modifier</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#doSelectModifier.doSelectModifier-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Emulate selecting a modifier (item)</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L224">src/test/utils/gameManager.ts:224</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="doSelectPartyPokemon" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>do<wbr/>Select<wbr/>Party<wbr/>Pokemon</span><a href="#doSelectPartyPokemon" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="doSelectPartyPokemon.doSelectPartyPokemon-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">do<wbr/>Select<wbr/>Party<wbr/>Pokemon</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">slot</span>, <span class="tsd-kind-parameter">inPhase</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#doSelectPartyPokemon.doSelectPartyPokemon-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Select a pokemon from the party menu. Only really handles the basic cases
2024-08-17 18:01:18 +01:00
of the party UI, where you just need to navigate to a party slot and press
Action twice - navigating any menus that come up after you select a party member
is not supported.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">slot</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>the index of the pokemon in your party to switch to</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">inPhase</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = &quot;SwitchPhase&quot;</span></span><div class="tsd-comment tsd-typography"><p>Which phase to expect the selection to occur in. Typically
non-command switch actions happen in SwitchPhase.</p>
2024-08-17 23:26:20 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L366">src/test/utils/gameManager.ts:366</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="doSelectTarget" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>do<wbr/>Select<wbr/>Target</span><a href="#doSelectTarget" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="doSelectTarget.doSelectTarget-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">do<wbr/>Select<wbr/>Target</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">targetIndex</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#doSelectTarget.doSelectTarget-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Emulate a player's target selection after an attack is chosen,
2024-06-17 23:06:36 +01:00
usually called after <a href="test_utils_gameManager.default.html#doAttack" class="tsd-kind-method"><code>doAttack</code></a> in a double battle.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">targetIndex</span>: <a href="../enums/battle.BattlerIndex.html" class="tsd-signature-type tsd-kind-enum">BattlerIndex</a></span><div class="tsd-comment tsd-typography"><p>the index of the attack target</p>
2024-08-17 23:26:20 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L207">src/test/utils/gameManager.ts:207</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="doSwitchPokemon" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>do<wbr/>Switch<wbr/>Pokemon</span><a href="#doSwitchPokemon" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="doSwitchPokemon.doSwitchPokemon-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">do<wbr/>Switch<wbr/>Pokemon</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pokemonIndex</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#doSwitchPokemon.doSwitchPokemon-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Command an in-battle switch to another Pokemon via the main battle menu.</p>
2024-06-12 19:50:38 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">pokemonIndex</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>the index of the pokemon in your party to switch to</p>
2024-08-17 23:26:20 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L337">src/test/utils/gameManager.ts:337</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="endPhase" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>end<wbr/>Phase</span><a href="#endPhase" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="endPhase.endPhase-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">end<wbr/>Phase</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#endPhase.endPhase-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Ends the current phase.</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L91">src/test/utils/gameManager.ts:91</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="exportSaveToTest" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>export<wbr/>Save<wbr/>To<wbr/>Test</span><a href="#exportSaveToTest" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="exportSaveToTest.exportSaveToTest-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">export<wbr/>Save<wbr/>To<wbr/>Test</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span><a href="#exportSaveToTest.exportSaveToTest-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Exports the save data to import it in a test game.</p>
2024-06-07 23:34:52 +01:00
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4><p>A promise that resolves with the exported save data.</p>
2024-08-17 23:26:20 +01:00
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L292">src/test/utils/gameManager.ts:292</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="forceOpponentToSwitch" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>force<wbr/>Opponent<wbr/>To<wbr/>Switch</span><a href="#forceOpponentToSwitch" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="forceOpponentToSwitch.forceOpponentToSwitch-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">force<wbr/>Opponent<wbr/>To<wbr/>Switch</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#forceOpponentToSwitch.forceOpponentToSwitch-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L236">src/test/utils/gameManager.ts:236</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="importData" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>import<wbr/>Data</span><a href="#importData" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="importData.importData-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">import<wbr/>Data</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">path</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span><a href="#importData.importData-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Imports game data from a file.</p>
2024-06-07 23:34:52 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">path</span>: <span class="tsd-signature-type">any</span></span><div class="tsd-comment tsd-typography"><p>The path to the data file.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span></h4><p>A promise that resolves with a tuple containing a boolean indicating success and an integer status code.</p>
2024-08-17 23:26:20 +01:00
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L308">src/test/utils/gameManager.ts:308</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="isCurrentMode" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>is<wbr/>Current<wbr/>Mode</span><a href="#isCurrentMode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="isCurrentMode.isCurrentMode-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">is<wbr/>Current<wbr/>Mode</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">mode</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#isCurrentMode.isCurrentMode-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Checks if the current mode matches the target mode.</p>
2024-06-07 23:34:52 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">mode</span>: <a href="../enums/ui_ui.Mode.html" class="tsd-signature-type tsd-kind-enum">Mode</a></span><div class="tsd-comment tsd-typography"><p>The target mode.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if the current mode matches the target mode, otherwise false.</p>
2024-08-17 23:26:20 +01:00
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L284">src/test/utils/gameManager.ts:284</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="isCurrentPhase" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>is<wbr/>Current<wbr/>Phase</span><a href="#isCurrentPhase" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="isCurrentPhase.isCurrentPhase-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">is<wbr/>Current<wbr/>Phase</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">phaseTarget</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#isCurrentPhase.isCurrentPhase-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Checks if the current phase matches the target phase.</p>
2024-06-07 23:34:52 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">phaseTarget</span>: <span class="tsd-signature-type">any</span></span><div class="tsd-comment tsd-typography"><p>The target phase.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if the current phase matches the target phase, otherwise false.</p>
2024-08-17 23:26:20 +01:00
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L274">src/test/utils/gameManager.ts:274</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="isVictory" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>is<wbr/>Victory</span><a href="#isVictory" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="isVictory.isVictory-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">is<wbr/>Victory</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#isVictory.isVictory-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Checks if the player has won the battle.</p>
2024-06-07 23:34:52 +01:00
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True if the player has won, otherwise false.</p>
2024-08-17 23:26:20 +01:00
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L265">src/test/utils/gameManager.ts:265</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="killPokemon" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>kill<wbr/>Pokemon</span><a href="#killPokemon" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="killPokemon.killPokemon-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">kill<wbr/>Pokemon</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">pokemon</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#killPokemon.killPokemon-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">pokemon</span>: <a href="field_pokemon.PlayerPokemon.html" class="tsd-signature-type tsd-kind-class">PlayerPokemon</a><span class="tsd-signature-symbol"> | </span><a href="field_pokemon.EnemyPokemon.html" class="tsd-signature-type tsd-kind-class">EnemyPokemon</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L322">src/test/utils/gameManager.ts:322</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="onNextPrompt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>on<wbr/>Next<wbr/>Prompt</span><a href="#onNextPrompt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="onNextPrompt.onNextPrompt-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">on<wbr/>Next<wbr/>Prompt</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">phaseTarget</span>, <span class="tsd-kind-parameter">mode</span>, <span class="tsd-kind-parameter">callback</span>, <span class="tsd-kind-parameter">expireFn</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">awaitingActionInput</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#onNextPrompt.onNextPrompt-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Adds an action to be executed on the next prompt.</p>
2024-06-07 23:34:52 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">phaseTarget</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The target phase.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">mode</span>: <a href="../enums/ui_ui.Mode.html" class="tsd-signature-type tsd-kind-enum">Mode</a></span><div class="tsd-comment tsd-typography"><p>The mode to wait for.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">callback</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></span><div class="tsd-comment tsd-typography"><p>The callback to execute.</p>
2024-07-28 00:48:18 +01:00
</div><div class="tsd-comment tsd-typography"></div><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">expireFn</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></span><div class="tsd-comment tsd-typography"><p>Optional function to determine if the prompt has expired.</p>
2024-08-17 23:26:20 +01:00
</div><div class="tsd-comment tsd-typography"></div><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li><li><span><span class="tsd-kind-parameter">awaitingActionInput</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L102">src/test/utils/gameManager.ts:102</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="removeEnemyHeldItems" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>remove<wbr/>Enemy<wbr/>Held<wbr/>Items</span><a href="#removeEnemyHeldItems" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="removeEnemyHeldItems.removeEnemyHeldItems-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">remove<wbr/>Enemy<wbr/>Held<wbr/>Items</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#removeEnemyHeldItems.removeEnemyHeldItems-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Removes all held items from enemy pokemon</p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L394">src/test/utils/gameManager.ts:394</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="runToFinalBossEncounter" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>run<wbr/>To<wbr/>Final<wbr/>Boss<wbr/>Encounter</span><a href="#runToFinalBossEncounter" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="runToFinalBossEncounter.runToFinalBossEncounter-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">run<wbr/>To<wbr/>Final<wbr/>Boss<wbr/>Encounter</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">game</span>, <span class="tsd-kind-parameter">species</span>, <span class="tsd-kind-parameter">mode</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#runToFinalBossEncounter.runToFinalBossEncounter-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Helper function to run to the final boss encounter as it's a bit tricky due to extra dialogue
2024-08-17 18:01:18 +01:00
Also handles Major/Minor bosses from endless modes</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">game</span>: <a href="test_utils_gameManager.default.html" class="tsd-signature-type tsd-kind-class">default</a></span><div class="tsd-comment tsd-typography"><p>The game manager</p>
2024-08-17 23:26:20 +01:00
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">species</span>: <a href="../enums/enums_species.Species.html" class="tsd-signature-type tsd-kind-enum">Species</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">mode</span>: <a href="../enums/game_mode.GameModes.html" class="tsd-signature-type tsd-kind-enum">GameModes</a></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L133">src/test/utils/gameManager.ts:133</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="runToTitle" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>run<wbr/>To<wbr/>Title</span><a href="#runToTitle" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="runToTitle.runToTitle-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">run<wbr/>To<wbr/>Title</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#runToTitle.runToTitle-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Runs the game to the title phase.</p>
2024-06-07 23:34:52 +01:00
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><p>A promise that resolves when the title phase is reached.</p>
2024-08-17 23:26:20 +01:00
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L110">src/test/utils/gameManager.ts:110</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setMode" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>Mode</span><a href="#setMode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setMode.setMode-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>Mode</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">mode</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#setMode.setMode-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Sets the game mode.</p>
2024-06-07 23:34:52 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">mode</span>: <a href="../enums/ui_ui.Mode.html" class="tsd-signature-type tsd-kind-enum">Mode</a></span><div class="tsd-comment tsd-typography"><p>The mode to set.</p>
2024-08-17 23:26:20 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L72">src/test/utils/gameManager.ts:72</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setTurnOrder" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>set<wbr/>Turn<wbr/>Order</span><a href="#setTurnOrder" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setTurnOrder.setTurnOrder-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">set<wbr/>Turn<wbr/>Order</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">order</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#setTurnOrder.setTurnOrder-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Intercepts <code>TurnStartPhase</code> and mocks the getOrder's return value <a href="phases.FieldPhase.html#getOrder" class="tsd-kind-method"><code>TurnStartPhase.getOrder</code></a>
2024-08-17 18:01:18 +01:00
Used to modify the turn order.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">order</span>: <a href="../enums/battle.BattlerIndex.html" class="tsd-signature-type tsd-kind-enum">BattlerIndex</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>The turn order to set</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"><h4 class="tsd-anchor-link"><a id="Example" class="tsd-anchor"></a>Example<a href="#Example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code class="ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-2">game</span><span class="hl-1">.</span><span class="hl-6">setTurnOrder</span><span class="hl-1">([</span><span class="hl-2">BattlerIndex</span><span class="hl-1">.</span><span class="hl-5">PLAYER</span><span class="hl-1">, </span><span class="hl-2">BattlerIndex</span><span class="hl-1">.</span><span class="hl-5">ENEMY</span><span class="hl-1">, </span><span class="hl-2">BattlerIndex</span><span class="hl-1">.</span><span class="hl-5">ENEMY_2</span><span class="hl-1">, </span><span class="hl-2">BattlerIndex</span><span class="hl-1">.</span><span class="hl-5">PLAYER_2</span><span class="hl-1">]);</span>
</code><button type="button">Copy</button></pre>
2024-08-17 23:26:20 +01:00
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L385">src/test/utils/gameManager.ts:385</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="startBattle" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>start<wbr/>Battle</span><a href="#startBattle" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="startBattle.startBattle-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">start<wbr/>Battle</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">species</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#startBattle.startBattle-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Transitions to the start of a battle.</p>
2024-07-28 00:48:18 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">species</span>: <a href="../enums/enums_species.Species.html" class="tsd-signature-type tsd-kind-enum">Species</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>Optional array of species to start the battle with.</p>
2024-06-07 23:34:52 +01:00
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><p>A promise that resolves when the battle is started.</p>
2024-08-17 23:26:20 +01:00
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L163">src/test/utils/gameManager.ts:163</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="toNextTurn" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>to<wbr/>Next<wbr/>Turn</span><a href="#toNextTurn" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="toNextTurn.toNextTurn-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">to<wbr/>Next<wbr/>Turn</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#toNextTurn.toNextTurn-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Transition to the next upcoming <a href="phases.CommandPhase.html" class="tsd-kind-class"><code>CommandPhase</code></a></p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L245">src/test/utils/gameManager.ts:245</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="toNextWave" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>to<wbr/>Next<wbr/>Wave</span><a href="#toNextWave" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="toNextWave.toNextWave-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">to<wbr/>Next<wbr/>Wave</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#toNextWave.toNextWave-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Emulate selecting a modifier (item) and transition to the next upcoming <a href="phases.CommandPhase.html" class="tsd-kind-class"><code>CommandPhase</code></a></p>
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L250">src/test/utils/gameManager.ts:250</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="waitMode" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>wait<wbr/>Mode</span><a href="#waitMode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="waitMode.waitMode-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">wait<wbr/>Mode</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">mode</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#waitMode.waitMode-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Waits until the specified mode is set.</p>
2024-06-07 23:34:52 +01:00
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">mode</span>: <a href="../enums/ui_ui.Mode.html" class="tsd-signature-type tsd-kind-enum">Mode</a></span><div class="tsd-comment tsd-typography"><p>The mode to wait for.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><p>A promise that resolves when the mode is set.</p>
2024-08-17 23:26:20 +01:00
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pagefaultgames/pokerogue/blob/2b853bae2588daa6d1bf52b11fb665d38b521663/src/test/utils/gameManager.ts#L81">src/test/utils/gameManager.ts:81</a></li></ul></aside></li></ul></section></section></details></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="tsd-otp-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary><div><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details><details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="tsd-otp-Properties"><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Properties</summary><div><a href="#classicMode" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>classic<wbr/>Mode</span></a><a href="#dailyMode" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>daily<wbr/>Mode</span></a><a href="#gameWrapper" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>game<wbr/>Wrapper</span></a><a href="#inputsHandler" class=""><svg class=