Class: BattleManager

BattleManager


new BattleManager()

Source:

Methods


<private> _initBattleConditions()

Creates the default game battle conditions that any client can use. These are not mandatory and are only used if you want the client to behave like it

Source:

<private> _onClientTick(BATTLE, girl, clientGUID)

Parameters:
Name Type Description
BATTLE Battle
girl string
clientGUID string
Source:

getBattleCondition(id)

Returns the function that can be used as a battle condition.
BattleManager will contain a bunch of battle conditions I create for the game, the user can always create their own.

Parameters:
Name Type Description
id string
Source:
Returns:
Type
function

getClientPack()

Generates an array of clients that could have been summoned with the current reputation

Source:

setBattleCondition(id, callback)

Adds/Changes a battle condition function

Parameters:
Name Type Description
id string
callback function
Source:
Returns:
Type
BattleManager

startBattle(Battle)

Parameters:
Name Type Description
Battle Battle
Source:
Returns:
Type
Promise.<boolean>