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 actions
Array.<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 action
Game_Action the action
actor
Game_Battler the subject
startAction
function the unoverriden battlemanager.startaction function
-
onNetSkillExecution(action, actor, netPlayerId, startAction)
-
Parameters:
Name Type Description action
Game_Action the action
actor
Game_Battler the subject
netPlayerId
UUID startAction
function the unoverriden battlemanager.startaction function
-
onPartyActionTargetingNet(action)
-
called when a party action targets a specific net party
Parameters:
Name Type Description action
Game_Action -
onSkillExecution(action, actor, isNet)
-
this is called anytime a skill is executed
Parameters:
Name Type Description action
Game_Action actor
Game_Actor isNet
*