new BattleController()
a small class that helps handle some battle events
Methods
-
emitBattleEnd()
-
called whenever a battle ends
-
emitNetBattlerRefresh()
-
Fires:
- event:"refreshNetBattlers"
-
emitReadyEvent(actions)
-
trigger the ready event on battle controller and net controller.
Parameters:
Name Type Description actionsArray.<Game_Action> an array of the actions the player is taking
Fires:
- event:ready
-
emitTurnEndEvent()
-
emits the turn end event on the battle controller and net controller
Fires:
- event:turnEnd
-
emitUnreadyEvent()
-
trigger the unready event on battle controller and net controller
Fires:
- event:unready
-
onLocalSkillExecution(action, actor, startAction)
-
Parameters:
Name Type Description actionGame_Action the action
actorGame_Battler the subject
startActionfunction the unoverriden battlemanager.startaction function
-
onNetSkillExecution(action, actor, netPlayerId, startAction)
-
Parameters:
Name Type Description actionGame_Action the action
actorGame_Battler the subject
netPlayerIdUUID startActionfunction the unoverriden battlemanager.startaction function
-
onPartyActionTargetingNet(action)
-
called when a party action targets a specific net party
Parameters:
Name Type Description actionGame_Action -
onSkillExecution(action, actor, isNet)
-
this is called anytime a skill is executed
Parameters:
Name Type Description actionGame_Action actorGame_Actor isNet*