This also considers the priority levels of various commands and changes the result of getSpeedOrder based on such.</p>
</div><h4class="tsd-returns-title">Returns <ahref="../enums/battle.BattlerIndex.html"class="tsd-signature-type tsd-kind-enum">BattlerIndex</a><spanclass="tsd-signature-symbol">[]</span></h4><p>BattlerIndex[] the final sequence of commands for this turn</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/4808c07cf9e92714e4b7c0ba77a6b5e96fbe9c34/src/phases/turn-start-phase.ts#L68">src/phases/turn-start-phase.ts:68</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="getSpeedOrder"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>get<wbr/>Speed<wbr/>Order</span><ahref="#getSpeedOrder"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="getSpeedOrder.getSpeedOrder-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">get<wbr/>Speed<wbr/>Order</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><ahref="../enums/battle.BattlerIndex.html"class="tsd-signature-type tsd-kind-enum">BattlerIndex</a><spanclass="tsd-signature-symbol">[]</span><ahref="#getSpeedOrder.getSpeedOrder-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>This orders the active Pokemon on the field by speed into an BattlerIndex array and returns that array.
It also checks for Trick Room and reverses the array if it is present.</p>
</div><h4class="tsd-returns-title">Returns <ahref="../enums/battle.BattlerIndex.html"class="tsd-signature-type tsd-kind-enum">BattlerIndex</a><spanclass="tsd-signature-symbol">[]</span></h4><p>BattlerIndex[] the battle indices of all pokemon on the field ordered by speed</p>
<divclass="tsd-comment tsd-typography"></div><asideclass="tsd-sources"><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/4808c07cf9e92714e4b7c0ba77a6b5e96fbe9c34/src/phases/turn-start-phase.ts#L33">src/phases/turn-start-phase.ts:33</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="hideEnemyTrainer"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>hide<wbr/>Enemy<wbr/>Trainer</span><ahref="#hideEnemyTrainer"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 tsd-is-inherited"><liclass="tsd-signature tsd-anchor-link"><aid="hideEnemyTrainer.hideEnemyTrainer-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">hide<wbr/>Enemy<wbr/>Trainer</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#hideEnemyTrainer.hideEnemyTrainer-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"><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><asideclass="tsd-sources"><p>Inherited from <ahref="phases_field_phase.FieldPhase.html">FieldPhase</a>.<ahref="phases_field_phase.FieldPhase.html#hideEnemyTrainer">hideEnemyTrainer</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/4808c07cf9e92714e4b7c0ba77a6b5e96fbe9c34/src/phases/battle-phase.ts#L37">src/phases/battle-phase.ts:37</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member tsd-is-inherited"><aid="showEnemyTrainer"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>show<wbr/>Enemy<wbr/>Trainer</span><ahref="#showEnemyTrainer"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 tsd-is-inherited"><liclass="tsd-signature tsd-anchor-link"><aid="showEnemyTrainer.showEnemyTrainer-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">show<wbr/>Enemy<wbr/>Trainer</span><spanclass="tsd-signature-symbol">(</span><spanclass="tsd-kind-parameter">trainerSlot</span><spanclass="tsd-signature-symbol">?</span><spanclass="tsd-signature-symbol">)</span><spanclass="tsd-signature-symbol">: </span><spanclass="tsd-signature-type">void</span><ahref="#showEnemyTrainer.showEnemyTrainer-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-parameters"><h4class="tsd-parameters-title">Parameters</h4><ulclass="tsd-parameter-list"><li><span><spanclass="tsd-kind-parameter">trainerSlot</span>: <ahref="../enums/data_trainer_config.TrainerSlot.html"class="tsd-signature-type tsd-kind-enum">TrainerSlot</a><spanclass="tsd-signature-symbol"> = TrainerSlot.NONE</span></span></li></ul></div><h4class="tsd-returns-title">Returns <spanclass="tsd-signature-type">void</span></h4><asideclass="tsd-sources"><p>Inherited from <ahref="phases_field_phase.FieldPhase.html">FieldPhase</a>.<ahref="phases_field_phase.FieldPhase.html#showEnemyTrainer">showEnemyTrainer</a></p><ul><li>Defined in <ahref="https://github.com/pagefaultgames/pokerogue/blob/4808c07cf9e92714e4b7c0ba77a6b5e96fbe9c34/src/phases/battle-phase.ts#L10">src/phases/battle-phase.ts:10</a></li></ul></aside></li></ul></section><sectionclass="tsd-panel tsd-member"><aid="start"class="tsd-anchor"></a><h3class="tsd-anchor-link"><span>start</span><ahref="#start"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="start.start-1"class="tsd-anchor"></a><spanclass="tsd-kind-call-signature">start</spa