Class: BossManager

BossManager


new BossManager()

Source:

Methods


<private> _initBossClients()

Source:

addBossClients(bossID, bossDifficulty, clientArray)

Updates the client array for a boss

Parameters:
Name Type Description
bossID string
bossDifficulty 'Easy' | 'Normal' | 'Hard'
clientArray Array.<ClientManager.client>
Source:

addBossRewards(bossID, bossDifficulty, rewardsObj)

Adds rewards for the given boss battle and difficulty

Parameters:
Name Type Description
bossID string
bossDifficulty string
rewardsObj object
Source:

getBossBodyParts(bossID)

Parameters:
Name Type Description
bossID string
Source:
Returns:
Type
Array.<GirlManager.bodyPart>

getBossClients(bossID, bossDifficulty)

Gets the clients for a boss battle

Parameters:
Name Type Description
bossID string
bossDifficulty 'Easy' | 'Normal' | 'Hard'
Source:
Returns:
Type
Array.<ClientManager.client>

getBossRewards(bossID, bossDifficulty)

Returns an object that has all of the reward information

Parameters:
Name Type Description
bossID string
bossDifficulty 'Easy' | 'Normal' | 'Hard'
Source:
Returns:
Type
Object

giveRewards(bossID, bossDifficulty)

Gives rewards for the boss battle

Parameters:
Name Type Description
bossID string
bossDifficulty 'Easy' | 'Normal' | 'Hard'
Source:

incrementBossCompleted(bossID, difficulty)

Increases the times the player has beaten this boss

Parameters:
Name Type Description
bossID string
difficulty 'Easy' | 'Normal' | 'Hard'
Source:

newBoss(bossID)

Creates a new boss skeleton object you can populate using other functions

Parameters:
Name Type Description
bossID string
Source:

startBossBattle(bossID, bossDifficulty)

Parameters:
Name Type Description
bossID string
bossDifficulty string
Source:
Returns:
Type
Promise.<any>