Move 2 funcs to proper file

This commit is contained in:
AJ Fontaine 2025-03-07 15:21:31 -05:00
parent 1a617a44f6
commit 9accc65a5b
2 changed files with 10 additions and 10 deletions

View File

@ -29,12 +29,12 @@ export enum BattlerIndex {
} }
export interface TurnCommand { export interface TurnCommand {
command: Command; command: Command;
cursor?: number; cursor?: number;
move?: TurnMove; move?: TurnMove;
targets?: BattlerIndex[]; targets?: BattlerIndex[];
skip?: boolean; skip?: boolean;
args?: any[]; args?: any[];
} }
export interface FaintLogEntry { export interface FaintLogEntry {
@ -440,6 +440,3 @@ export class FixedBattle extends Battle {
} }
} }
} }
export type GetTrainerFunc = () => Trainer;
export type GetEnemyPartyFunc = () => EnemyPokemon[];

View File

@ -1,4 +1,3 @@
import type { GetEnemyPartyFunc, GetTrainerFunc } from "#app/battle";
import { BattleType } from "#enums/battle-spec"; import { BattleType } from "#enums/battle-spec";
import { ClassicFixedBossWaves } from "#enums/fixed-boss-waves"; import { ClassicFixedBossWaves } from "#enums/fixed-boss-waves";
import Trainer, { TrainerVariant } from "#app/field/trainer"; import Trainer, { TrainerVariant } from "#app/field/trainer";
@ -9,6 +8,7 @@ import * as Utils from "#app/utils";
import { PlayerGender } from "#enums/player-gender"; import { PlayerGender } from "#enums/player-gender";
import { TrainerType } from "#enums/trainer-type"; import { TrainerType } from "#enums/trainer-type";
import { trainerConfigs } from "../trainer-config"; import { trainerConfigs } from "../trainer-config";
import type { EnemyPokemon } from "#app/field/pokemon";
export class FixedBattleConfig { export class FixedBattleConfig {
public battleType: BattleType; public battleType: BattleType;
@ -49,6 +49,9 @@ export class FixedBattleConfig {
} }
} }
type GetTrainerFunc = () => Trainer;
type GetEnemyPartyFunc = () => EnemyPokemon[];
/** /**
* Helper function to generate a random trainer for evil team trainers and the elite 4/champion * Helper function to generate a random trainer for evil team trainers and the elite 4/champion
* @param trainerPool The TrainerType or list of TrainerTypes that can possibly be generated * @param trainerPool The TrainerType or list of TrainerTypes that can possibly be generated