8.9 KiB
8.9 KiB
sidebar_position
sidebar_position |
---|
2 |
Bonus Game Model
Index
Properties
- random
Object
Stores RNG outcome data. - bonusData
Object
Stores bonus game result details. - currentSelectionItem
Number
Index of current selected item. - lifePoint
Number
Remaining life in the bonus game. - type
Number
Type of bonus game.
Methods
- SetRandom Sets the random number.
- GetRandom Returns the stored random data.
- SetLifePoint Sets the number of remaining life points.
- GetLifePoint Returns the current life points.
- SetType Sets the bonus game type.
- GetType Returns the current type.
- SetCurrentSelectionItem Sets the index of the selected item.
- GetCurrentSelectionItem Returns the selected item index.
- SetBonusData Sets the bonus data object.
- GetBonusData Gets the full bonus data object.
- GetTotalWinPoint Returns total win points from bonus data.
- CheckBonusEnd Checks if bonus game has ended.
- GetResultData Returns the current turn result data.
- GetBonusTurnItem Returns the selected item for current bonus turn.
- GetBonusTurnWinPoint Returns the win point of current bonus turn.
- GetBonusTurnLifePoint Returns the life point remaining for current bonus turn.
- GetBonusTurnPayout Returns the payout of the current bonus turn.
Details
Properties
random
Stores RNG outcome data.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L9 |
bonusData
Stores bonus game result details.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L10 |
currentSelectionItem
Index of current selected item.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L11 |
Methods
SetRandom
Sets the random number.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L18 |
Parameters
random
Number
GetRandom
Returns the stored random data.
meta | description |
---|---|
Returns | Number |
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L24 |
SetLifePoint
Sets the number of remaining life points.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L30 |
Parameters
lifePoint
Number
GetLifePoint
Returns the current life points.
meta | description |
---|---|
Returns | Number |
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L36 |
SetType
Sets the bonus game type.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L42 |
Parameters
type
String
GetType
Returns the current type.
meta | description |
---|---|
Returns | String |
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L48 |
SetCurrentSelectionItem
Sets the index of the selected item.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L54 |
Parameters
selectionIndex
Object
GetCurrentSelectionItem
Returns the selected item index.
meta | description |
---|---|
Returns | Object |
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L60 |
SetBonusData
Sets the bonus data object.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L66 |
GetBonusData
Gets the full bonus data object.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L72 |
GetTotalWinPoint
Returns total win points from bonus data.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L78 |
CheckBonusEnd
Checks if bonus game has ended.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L84 |
GetResultData
Returns the current turn result data.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L90 |
GetBonusTurnItem
Returns the selected item for current bonus turn.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L96 |
GetBonusTurnWinPoint
Returns the win point of current bonus turn.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L102 |
GetBonusTurnLifePoint
Returns the life point remaining for current bonus turn.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L111 |
GetBonusTurnPayout
Returns the payout of the current bonus turn.
meta | description |
---|---|
Defined in | p4f-slotty-core/src/model/bonus-game-model.js#L114 |