import { Buff, Trait } from "@atlasacademy/api-connector"; import { BattleActorLogic } from "../Actor/BattleActor.js"; import { Battle } from "../Battle.js"; import { BattleBuff } from "./BattleBuff.js"; export default class BattleBuffManager { list: BattleBuff[]; logic: BattleActorLogic; private _battle?; constructor(list: BattleBuff[]); clone(): BattleBuffManager; add(buff: BattleBuff): void; all(activeOnly: boolean): BattleBuff[]; battle(): Battle; /** * `BattleBuffData.getBuffList`: returns the list of buffs matching the buff action. * If `checkTrait` is set to `true`, trait and BuffRate are checked. * @param group Buff Action group * @param traits Self traits * @param targetTraits Target traits * @param plus Get `plusTypes` buffs or `minusTypes` buffs * @param checkTrait Whether to filter for buffs matching `traits` and `targetTraits`. * Most buffs' trait check runs at `buff.value()` but for some buffs like FUNCTION_COMMANDATTACK, * FUNCTION_DEADATTACK, FUNCTION_DAMAGE, there's no `value()` call so the check here is needed. * @returns All applicable buffs */ getBuffs(group: Buff.BuffAction, traits: Trait.Trait[], targetTraits: Trait.Trait[], plus: boolean, checkTrait?: boolean): BattleBuff[]; /** * `BattleBuffData.confirmationBuff`: returns the value of the first applicable buffs */ getValue(group: Buff.BuffAction, traits: Trait.Trait[], targetTraits: Trait.Trait[]): number | undefined; /** * `BattleBuffData.getBuffParamList`: returns the list of values of applicable buffs */ getAllValues(group: Buff.BuffAction, traits: Trait.Trait[], targetTraits: Trait.Trait[]): number[]; hasTrait(trait: Trait.Trait | number, activeOnly: boolean): boolean; /** * `BattleBuffData.getActValue` or `BattleBuffData.getActMag`: returns the net value of all applicable buffs */ netBuffs(group: Buff.BuffAction, traits: Trait.Trait[], targetTraits: Trait.Trait[]): number; netBuffsRate(group: Buff.BuffAction, traits: Trait.Trait[], targetTraits: Trait.Trait[]): number; setBattle(battle: Battle): void; traits(activeOnly: boolean): Trait.Trait[]; updateList(callback: (buff: BattleBuff) => boolean, reverse?: boolean): void; private getType; } //# sourceMappingURL=BattleBuffManager.d.ts.map