8.9 KiB

sidebar_position
sidebar_position
2

Bonus Game Model

Index

Properties

Methods


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

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

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

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

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