Interface BattleManagerStatic
Properties
_actorIndex
_actorIndex: number
_battleTest
_battleTest: boolean
_canEscape
_canEscape: boolean
_canLose
_canLose: boolean
_escapeRatio
_escapeRatio: number
_escaped
_escaped: boolean
_eventCallback
_eventCallback: function
_preemptive
_preemptive: boolean
_surprise
_surprise: boolean
Methods
changeActor
- changeActor(newActorIndex: number, lastActorActionState: string): void
-
Parameters
-
newActorIndex: number
-
lastActorActionState: string
Returns void
checkBattleEnd
- checkBattleEnd(): boolean
checkSubstitute
-
Parameters
Returns boolean
displayDefeatMessage
- displayDefeatMessage(): void
displayEscapeFailureMessage
- displayEscapeFailureMessage(): void
displayEscapeSuccessMessage
- displayEscapeSuccessMessage(): void
displayStartMessages
- displayStartMessages(): void
displayVictoryMessage
- displayVictoryMessage(): void
endBattle
- endBattle(result: number): void
invokeCounterAttack
- invokeCounterAttack(): void
invokeMagicReflection
- invokeMagicReflection(): void
invokeNormalAction
- invokeNormalAction(): void
isActionForced
- isActionForced(): boolean
processForcedAction
- processForcedAction(): void
selectNextCommand
- selectNextCommand(): void
selectPreviousCommand
- selectPreviousCommand(): void
setBattleTest
- setBattleTest(battleTest: boolean): void
setEventCallback
- setEventCallback(callback: function): void
setup
- setup(troopId: number, canEscape: boolean, canLose: boolean): void
-
Parameters
-
troopId: number
-
canEscape: boolean
-
canLose: boolean
Returns void
updateEventMain
- updateEventMain(): boolean
The static class that manages the battle process.
BattleManagerStatic