Class: BattleManager

BattleManager()

new BattleManager()

The static class that manages battle progress.

Methods

(static) abort()

(static) actor() → {Game_Actor}

Returns:
Type
Game_Actor

(static) allBattleMembers() → {Array.<Game_Battler>}

Returns:
Type
Array.<Game_Battler>

(static) applySubstitute(target) → {Game_Battler}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Game_Battler

(static) canEscape() → {Boolean}

Returns:
Type
Boolean

(static) canLose() → {Boolean}

Returns:
Type
Boolean

(static) changeActor(newActorIndex, lastActorActionState)

Parameters:
Name Type Description
newActorIndex Number
lastActorActionState String

(static) checkAbort() → {Boolean}

Returns:
Type
Boolean

(static) checkBattleEnd() → {Boolean}

Returns:
Type
Boolean

(static) checkSubstitute(target) → {Boolean}

Parameters:
Name Type Description
target Game_Battler
Returns:
Type
Boolean

(static) clearActor()

(static) displayDefeatMessage()

(static) displayDropItems()

(static) displayEscapeFailureMessage()

(static) displayEscapeSuccessMessage()

(static) displayExp()

(static) displayGold()

(static) displayRewards()

(static) displayStartMessages()

(static) displayVictoryMessage()

(static) endAction()

(static) endBattle(result)

Parameters:
Name Type Description
result Number

(static) endTurn()

(static) forceAction(battler)

Parameters:
Name Type Description
battler Game_Battler

(static) gainDropItems()

(static) gainExp()

(static) gainGold()

(static) gainRewards()

(static) getNextSubject() → {Game_Battler}

Returns:
Type
Game_Battler

(static) initMembers()

(static) inputtingAction()

Returns:
Game_Action

(static) invokeAction(subject, target)

Parameters:
Name Type Description
subject Game_Battler
target Game_Battler

(static) invokeCounterAttack(subject, target)

Parameters:
Name Type Description
subject Game_Battler
target Game_Battler

(static) invokeMagicReflection(subject, target)

Parameters:
Name Type Description
subject Game_Battler
target Game_Battler

(static) invokeNormalAction(subject, target)

Parameters:
Name Type Description
subject Game_Battler
target Game_Battler

(static) isAborting() → {Boolean}

Returns:
Type
Boolean

(static) isActionForced() → {Boolean}

Returns:
Type
Boolean

(static) isBattleEnd() → {Boolean}

Returns:
Type
Boolean

(static) isBattleTest() → {Boolean}

Returns:
Type
Boolean

(static) isBusy() → {Boolean}

Returns:
Type
Boolean

(static) isEscaped() → {Boolean}

Returns:
Type
Boolean

(static) isForcedTurn() → {Boolean}

Returns:
Type
Boolean

(static) isInputting() → {Boolean}

Returns:
Type
Boolean

(static) isInTurn() → {Boolean}

Returns:
Type
Boolean

(static) isTurnEnd() → {Boolean}

Returns:
Type
Boolean

(static) makeActionOrders()

(static) makeEscapeRatio()

(static) makeRewards()

(static) onEncounter()

(static) playBattleBgm()

(static) playDefeatMe()

(static) playVictoryMe()

(static) processAbort()

(static) processDefeat()

(static) processEscape() → {Boolean}

Returns:
Type
Boolean

(static) processForcedAction()

(static) processTurn()

(static) processVictory()

(static) rateSurprise() → {Number}

Returns:
Type
Number

(static) refreshStatus()

(static) replayBgmAndBgs()

(static) saveBgmAndBgs()

(static) selectNextCommand()

(static) selectPreviousCommand()

(static) setBattleTest(battleTest)

Parameters:
Name Type Description
battleTest Boolean

(static) setEventCallback(callback)

Parameters:
Name Type Description
callback function

(static) setLogWindow(logWindow)

Parameters:
Name Type Description
logWindow Window_BattleLog

(static) setSpriteset(spriteset)

Parameters:
Name Type Description
spriteset Spriteset_Battle

(static) setStatusWindow(statusWindow)

Parameters:
Name Type Description
statusWindow Window_BattleStatus

(static) setup(troopId, canEscape, canLose)

Parameters:
Name Type Description
troopId Number
canEscape Boolean
canLose Boolean

(static) startAction()

(static) startBattle()

(static) startInput()

(static) startTurn()

(static) update()

(static) updateAction()

(static) updateBattleEnd()

(static) updateEvent() → {Boolean}

Returns:
Type
Boolean

(static) updateEventMain() → {Boolean}

Returns:
Type
Boolean

(static) updateTurn()

(static) updateTurnEnd()