BattleManager.d overview
Table of contents
- utils
- BattleManager (class)
- setup (static method)
- initMembers (static method)
- isTpb (static method)
- isActiveTpb (static method)
- isBattleTest (static method)
- setBattleTest (static method)
- setEventCallback (static method)
- setLogWindow (static method)
- setSpriteset (static method)
- onEncounter (static method)
- ratePreemptive (static method)
- rateSurprise (static method)
- saveBgmAndBgs (static method)
- playBattleBgm (static method)
- playVictoryMe (static method)
- playDefeatMe (static method)
- replayBgmAndBgs (static method)
- makeEscapeRatio (static method)
- update (static method)
- updatePhase (static method)
- updateEvent (static method)
- updateEventMain (static method)
- isBusy (static method)
- updateTpbInput (static method)
- checkTpbInputClose (static method)
- checkTpbInputOpen (static method)
- isPartyTpbInputtable (static method)
- needsActorInputCancel (static method)
- isTpbMainPhase (static method)
- isInputting (static method)
- isInTurn (static method)
- isTurnEnd (static method)
- isAborting (static method)
- isBattleEnd (static method)
- canEscape (static method)
- canLose (static method)
- isEscaped (static method)
- actor (static method)
- startBattle (static method)
- displayStartMessages (static method)
- startInput (static method)
- inputtingAction (static method)
- selectNextCommand (static method)
- selectNextActor (static method)
- selectPreviousCommand (static method)
- selectPreviousActor (static method)
- changeCurrentActor (static method)
- startActorInput (static method)
- finishActorInput (static method)
- cancelActorInput (static method)
- updateStart (static method)
- startTurn (static method)
- updateTurn (static method)
- updateTpb (static method)
- updateAllTpbBattlers (static method)
- updateTpbBattler (static method)
- checkTpbTurnEnd (static method)
- processTurn (static method)
- endBattlerActions (static method)
- endTurn (static method)
- updateTurnEnd (static method)
- endAllBattlersTurn (static method)
- displayBattlerStatus (static method)
- getNextSubject (static method)
- allBattleMembers (static method)
- makeActionOrders (static method)
- startAction (static method)
- updateAction (static method)
- endAction (static method)
- invokeAction (static method)
- invokeNormalAction (static method)
- invokeCounterAttack (static method)
- invokeMagicReflection (static method)
- applySubstitute (static method)
- checkSubstitute (static method)
- isActionForced (static method)
- forceAction (static method)
- processForcedAction (static method)
- abort (static method)
- checkBattleEnd (static method)
- checkAbort (static method)
- processVictory (static method)
- processEscape (static method)
- onEscapeSuccess (static method)
- onEscapeFailure (static method)
- processPartyEscape (static method)
- processAbort (static method)
- processDefeat (static method)
- endBattle (static method)
- updateBattleEnd (static method)
- makeRewards (static method)
- displayVictoryMessage (static method)
- displayDefeatMessage (static method)
- displayEscapeSuccessMessage (static method)
- displayEscapeFailureMessage (static method)
- displayRewards (static method)
- displayExp (static method)
- displayGold (static method)
- displayDropItems (static method)
- gainRewards (static method)
- gainExp (static method)
- gainGold (static method)
- gainDropItems (static method)
- BattleManager (class)
utils
BattleManager (class)
BattleManager
The static class that manages battle progress.
Signature
export declare class BattleManager {
constructor()
}
setup (static method)
Signature
static setup(troopId: number, canEscape: boolean, canLose: boolean): void
initMembers (static method)
Signature
static initMembers(): void
isTpb (static method)
Signature
static isTpb(): boolean
isActiveTpb (static method)
Signature
static isActiveTpb(): boolean
isBattleTest (static method)
Signature
static isBattleTest(): boolean
setBattleTest (static method)
Signature
static setBattleTest(battleTest: boolean): void
setEventCallback (static method)
Signature
static setEventCallback(callback: (result: number) => void): void
setLogWindow (static method)
Signature
static setLogWindow(logWindow: Window_BattleLog): void
setSpriteset (static method)
Signature
static setSpriteset(spriteset: Spriteset_Battle): void
onEncounter (static method)
Signature
static onEncounter(): void
ratePreemptive (static method)
Signature
static ratePreemptive(): number
rateSurprise (static method)
Signature
static rateSurprise(): number
saveBgmAndBgs (static method)
Signature
static saveBgmAndBgs(): void
playBattleBgm (static method)
Signature
static playBattleBgm(): void
playVictoryMe (static method)
Signature
static playVictoryMe(): void
playDefeatMe (static method)
Signature
static playDefeatMe(): void
replayBgmAndBgs (static method)
Signature
static replayBgmAndBgs(): void
makeEscapeRatio (static method)
Signature
static makeEscapeRatio(): void
update (static method)
Signature
static update(timeActive: boolean): void
updatePhase (static method)
Signature
static updatePhase(timeActive: boolean): void
updateEvent (static method)
Signature
static updateEvent(): boolean
updateEventMain (static method)
Signature
static updateEventMain(): boolean
isBusy (static method)
Signature
static isBusy():
| boolean
| "video"
| "scroll"
| "image"
| "message"
| "transfer"
| "route"
| "animation"
| "balloon"
| "gather"
| "action"
| "effect"
| "movement"
updateTpbInput (static method)
Signature
static updateTpbInput(): void
checkTpbInputClose (static method)
Signature
static checkTpbInputClose(): void
checkTpbInputOpen (static method)
Signature
static checkTpbInputOpen(): void
isPartyTpbInputtable (static method)
Signature
static isPartyTpbInputtable(): boolean
needsActorInputCancel (static method)
Signature
static needsActorInputCancel(): boolean | null
isTpbMainPhase (static method)
Signature
static isTpbMainPhase(): boolean
isInputting (static method)
Signature
static isInputting(): boolean
isInTurn (static method)
Signature
static isInTurn(): boolean
isTurnEnd (static method)
Signature
static isTurnEnd(): boolean
isAborting (static method)
Signature
static isAborting(): boolean
isBattleEnd (static method)
Signature
static isBattleEnd(): boolean
canEscape (static method)
Signature
static canEscape(): boolean
canLose (static method)
Signature
static canLose(): boolean
isEscaped (static method)
Signature
static isEscaped(): boolean
actor (static method)
Signature
static actor(): Game_Actor | null
startBattle (static method)
Signature
static startBattle(): void
displayStartMessages (static method)
Signature
static displayStartMessages(): void
startInput (static method)
Signature
static startInput(): void
inputtingAction (static method)
Signature
static inputtingAction(): Game_Action | null
selectNextCommand (static method)
Signature
static selectNextCommand(): void
selectNextActor (static method)
Signature
static selectNextActor(): void
selectPreviousCommand (static method)
Signature
static selectPreviousCommand(): void
selectPreviousActor (static method)
Signature
static selectPreviousActor(): void
changeCurrentActor (static method)
Signature
static changeCurrentActor(forward: boolean): void
startActorInput (static method)
Signature
static startActorInput(): void
finishActorInput (static method)
Signature
static finishActorInput(): void
cancelActorInput (static method)
Signature
static cancelActorInput(): void
updateStart (static method)
Signature
static updateStart(): void
startTurn (static method)
Signature
static startTurn(): void
updateTurn (static method)
Signature
static updateTurn(timeActive: boolean): void
updateTpb (static method)
Signature
static updateTpb(): void
updateAllTpbBattlers (static method)
Signature
static updateAllTpbBattlers(): void
updateTpbBattler (static method)
Signature
static updateTpbBattler(battler: ActionTarget): void
checkTpbTurnEnd (static method)
Signature
static checkTpbTurnEnd(): void
processTurn (static method)
Signature
static processTurn(): void
endBattlerActions (static method)
Signature
static endBattlerActions(battler: ActionTarget): void
endTurn (static method)
Signature
static endTurn(): void
updateTurnEnd (static method)
Signature
static updateTurnEnd(): void
endAllBattlersTurn (static method)
Signature
static endAllBattlersTurn(): void
displayBattlerStatus (static method)
Signature
static displayBattlerStatus(battler: ActionTarget, current: boolean): void
getNextSubject (static method)
Signature
static getNextSubject(): ActionTarget | null
allBattleMembers (static method)
Signature
static allBattleMembers(): (Game_Actor | import("../objects").Game_Enemy)[]
makeActionOrders (static method)
Signature
static makeActionOrders(): void
startAction (static method)
Signature
static startAction(): void
updateAction (static method)
Signature
static updateAction(): void
endAction (static method)
Signature
static endAction(): void
invokeAction (static method)
Signature
static invokeAction(subject: ActionTarget, target: ActionTarget): void
invokeNormalAction (static method)
Signature
static invokeNormalAction(subject: ActionTarget, target: ActionTarget): void
invokeCounterAttack (static method)
Signature
static invokeCounterAttack(subject: ActionTarget, target: ActionTarget): void
invokeMagicReflection (static method)
Signature
static invokeMagicReflection(subject: ActionTarget, target: ActionTarget): void
applySubstitute (static method)
Signature
static applySubstitute(target: ActionTarget): ActionTarget
checkSubstitute (static method)
Signature
static checkSubstitute(target: ActionTarget): boolean
isActionForced (static method)
Signature
static isActionForced(): boolean
forceAction (static method)
Signature
static forceAction(battler: ActionTarget): void
processForcedAction (static method)
Signature
static processForcedAction(): void
abort (static method)
Signature
static abort(): void
checkBattleEnd (static method)
Signature
static checkBattleEnd(): boolean
checkAbort (static method)
Signature
static checkAbort(): boolean
processVictory (static method)
Signature
static processVictory(): void
processEscape (static method)
Signature
static processEscape(): boolean
onEscapeSuccess (static method)
Signature
static onEscapeSuccess(): void
onEscapeFailure (static method)
Signature
static onEscapeFailure(): void
processPartyEscape (static method)
Signature
static processPartyEscape(): void
processAbort (static method)
Signature
static processAbort(): void
processDefeat (static method)
Signature
static processDefeat(): void
endBattle (static method)
Signature
static endBattle(result: number): void
updateBattleEnd (static method)
Signature
static updateBattleEnd(): void
makeRewards (static method)
Signature
static makeRewards(): void
displayVictoryMessage (static method)
Signature
static displayVictoryMessage(): void
displayDefeatMessage (static method)
Signature
static displayDefeatMessage(): void
displayEscapeSuccessMessage (static method)
Signature
static displayEscapeSuccessMessage(): void
displayEscapeFailureMessage (static method)
Signature
static displayEscapeFailureMessage(): void
displayRewards (static method)
Signature
static displayRewards(): void
displayExp (static method)
Signature
static displayExp(): void
displayGold (static method)
Signature
static displayGold(): void
displayDropItems (static method)
Signature
static displayDropItems(): void
gainRewards (static method)
Signature
static gainRewards(): void
gainExp (static method)
Signature
static gainExp(): void
gainGold (static method)
Signature
static gainGold(): void
gainDropItems (static method)
Signature
static gainDropItems(): void