From 7d8e871b6d1c3c3417b311586cae785204676be8 Mon Sep 17 00:00:00 2001 From: Nguyen Ngoc Thanh Date: Fri, 11 Jul 2025 09:32:08 +0700 Subject: [PATCH] add slot machine balance, initialize, bet controller --- api-doc/intro.md | 5 +- .../balance/balance-controller.md | 2 +- api-doc/slot-machine/balance/balance-model.md | 4 +- api-doc/slot-machine/bet/_category_.json | 18 + api-doc/slot-machine/bet/bet-controller.md | 332 ++++++++++++++++++ api-doc/slot-machine/bet/bet-model.md | 288 +++++++++++++++ api-doc/slot-machine/bet/bet-view.md | 19 + 7 files changed, 662 insertions(+), 6 deletions(-) create mode 100644 api-doc/slot-machine/bet/_category_.json create mode 100644 api-doc/slot-machine/bet/bet-controller.md create mode 100644 api-doc/slot-machine/bet/bet-model.md create mode 100644 api-doc/slot-machine/bet/bet-view.md diff --git a/api-doc/intro.md b/api-doc/intro.md index 875d941..9a9e187 100644 --- a/api-doc/intro.md +++ b/api-doc/intro.md @@ -7,6 +7,5 @@ sidebar_position: 0 ## Slot Game Machine * [Initialize Controller](slot-machine/initialize-controller) -* [Balance Controller](slot-machine/balance) -* [Bet Controller](slot-machine/bet-controller) -To be written \ No newline at end of file +* [Balance](category/balance) +* [Bet](category/bet) \ No newline at end of file diff --git a/api-doc/slot-machine/balance/balance-controller.md b/api-doc/slot-machine/balance/balance-controller.md index 227f773..bbc6d02 100644 --- a/api-doc/slot-machine/balance/balance-controller.md +++ b/api-doc/slot-machine/balance/balance-controller.md @@ -8,7 +8,7 @@ sidebar_position: 2 ### Properties * [savedCurrentPoint](#savedcurrentpoint) `Number` Current played bet. * [savedFreePoint](#savedfreepoint) `Number` Current free point played bet. -* [isResume](#isresume) `Boolean` Indicates whether the game current state is resuming or not. +* [isResume](#isresume) `Boolean` Indicates whether the game current state is resuming. ### Methods diff --git a/api-doc/slot-machine/balance/balance-model.md b/api-doc/slot-machine/balance/balance-model.md index 235583a..69bf0d6 100644 --- a/api-doc/slot-machine/balance/balance-model.md +++ b/api-doc/slot-machine/balance/balance-model.md @@ -16,7 +16,7 @@ sidebar_position: 2 * [SetFreePoint](#setfreepoint) Set current free point. * [GetFreePoint](#getfreepoint) Get current free point. * [GetAvailablePoint](#getavalablepoint) Get current point. -* [isNumber](#isnumber) Indicates whether the value is number or not. +* [isNumber](#isnumber) Indicates whether the value is number. ## Details @@ -72,7 +72,7 @@ sidebar_position: 2 | Defined in | [p4f-game-core/src/model/balance-model.js:40](https://gitea.plp19.com/cocos-core/p4f-game-core/src/branch/develop/src/model/balance-model.js#L40)| #### isNumber -> Indicates whether the value is number or not.
+> Indicates whether the value is number.
| meta | description | | :--- | :---------- | diff --git a/api-doc/slot-machine/bet/_category_.json b/api-doc/slot-machine/bet/_category_.json new file mode 100644 index 0000000..72cc9da --- /dev/null +++ b/api-doc/slot-machine/bet/_category_.json @@ -0,0 +1,18 @@ +{ + "position": 3, + "label": "Bet", + "collapsible": true, + "collapsed": true, + "link": { + "type": "generated-index", + "title": "Bet", + "description": "This section will guide you through the process of setting up a new project, including creating a new repository and configuring your development environment.", + "keywords": [ + "controller", + "project", + "repository", + "model", + "bet" + ] + } +} \ No newline at end of file diff --git a/api-doc/slot-machine/bet/bet-controller.md b/api-doc/slot-machine/bet/bet-controller.md new file mode 100644 index 0000000..4595fb3 --- /dev/null +++ b/api-doc/slot-machine/bet/bet-controller.md @@ -0,0 +1,332 @@ +--- +sidebar_position: 1 +--- + +# Bet Controller + +## Index + +### Properties +* [isHistoryActivated](#ishistoryactivated) `Boolean` Indicates whether the game current state is resuming. +* [availablePoint](#availablepoint) `Number` User's current point. +* [waiterAutoSpin](#waiterautospin) `Timer` Base class actions that do have a finite time duration. +* [betProcessorFactory](#betprocessorfactory) `BetProcessorFactory` Bet Processor Factory. +* [betProcessor](#betprocessor) `BetProcessor` Current bet processor. + +### Methods + +* [CalculateTotalBet](#calculatetotalbet) Current total bet. +* [onChangeBetMode](#onchangebetmode) Change bet mode. +* [getClampedBet](#getclampedbet) The maximum bet that can be placed. +* [_start](#_start) Initialize some logic which need to be called the game enters the Bet State. +* [_registerEvent](#_registerevent) Register events. +* [_complete](#_complete) Called when the game exits the Bet State. +* [setBetPoints](#setbetpoints) Set the bet points. +* [setBetPoint](#setbetpoint) Set the bet point. +* [notifyBetDataChanged](#notifybetdatachanged) Notify the bet data is changed. +* [onAutoSpinDeactivated](#onautospindeactivated) Progress the bet data when the user stop auto spin. +* [onBetArrayReceived](#onbetarrayreceived) Progress the bet data get the bet array data. +* [onBetMultiplierReceived](#onbetmultiplierreceived) Progress the bet data when get the bet multiplier data. +* [onFreeroundsStarted](#onfreeroundsstarted) Progress the bet data when the free rounds start. +* [onFreeroundsDataReceived](#onfreeroundsdatareceived) Progress the bet data when get the free rounds data. +* [onMiniGameDataReceived](#onminigamedatareceived) Progress the bet data when get the mini game data. +* [onResumeOrReplayGameRound](#onresumeorreplaygameround) Progress the bet data when resume the game. +* [onBalanceChanged](#onbalancechanged) Progress the bet data when the balance change. +* [onReplayHistoryClient](#onreplayhistoryclient) Progress the bet data when replay the game. +* [onResume](#onresume) Progress the bet data when resume the game. +* [onReplayHistory](#onreplayhistory) Progress the bet data when replay the game. +* [onHistoryActivated](#onhistoryactivated) Progress the bet data when replay the game. +* [onHistoryDeactivated](#onhistorydeactivated) Progress the bet data when replay the game. +* [onStartGame](#onstartgame) Process the bet data when the game is started. +* [onAutoSpinActivated](#onautospinactivated) Change the current game state to the Spin State. +* [onSpinClicked](#onspinclicked) Change the current game state to the Spin State. +* [onOutcomeSelected](#onoutcomeselected) Set the outcome data. +* [onBetPointChanged](#onbetpointchanged) Progress the bet point. +* [onBetMultiplierChanged](#onbetmultiplierchanged) Process the bet multiplier. +* [onPaylineCountChanged](#onpaylinecountchanged) Process the bet data when the pay line is changed. +* [getTotalBetPoint](#gettotalbetpoint) Get total bet point. +* [spin](#spin) Process bet data and notify event Spin. +* [onManualBuyBonusOpened](#onmanualbuybonusopened) Process the bet data when the user buy bonus. +* [onManualBuyBonusClosed](#onmanualbuybonusclosed) Process the bet data when the user buy bonus. +* [onManualBuyBonusChanged](#onmanualbuybonuschanged) Process the bet data when the user buy bonus. +* [setBetByPowerPlayModel](#setbetbypowerplaymodel) Process the bet data when the user buy bonus. + +## Details + +#### isHistoryActivated +> Indicates whether the game current state is resuming.
+ +| meta | description | +| :--- | :---------- | +| Type | [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:35](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L35)| + +#### availablePoint +> User's current point.
+ +| meta | description | +| :--- | :---------- | +| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:36](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L36)| + +#### waiterAutoSpin +> Base class actions that do have a finite time duration.
+ +| meta | description | +| :--- | :---------- | +| Type | [Timer](https://gitea.plp19.com/cocos-core/p4f-game-core/src/branch/develop/src/helper/timer.js#L4) | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:37](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L37)| + +#### betProcessorFactory +> Bet Processor Factory.
+ +| meta | description | +| :--- | :---------- | +| Type | [BetProcessorFactory](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/total-bet-processor/bet-processor-factory.js#L8) | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:38](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L38)| + +#### betProcessor +> Current bet processor.
+ +| meta | description | +| :--- | :---------- | +| Type | [BetProcessor](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/total-bet-processor/bet-processor-factory.js#L30) | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:39](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L39)| + +#### CalculateTotalBet +> Current total bet.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:44](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L44)| + +#### onChangeBetMode +> Change bet mode.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:54](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L54)| + +#### getClampedBet +> The maximum bet that can be placed.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:64](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L64)| + +#### _start +> Initialize some logic which need to be called the game enters the Bet State.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:77](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L77)| + +#### _registerevent +> Register events.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:112](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L112)| + +#### _complete +> Called when the game exits the Bet State.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:129](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L129)| + +#### setBetPoints +> Set the bet points.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:139](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L139)| + +#### setBetPoint +> Set the bet point.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:149](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L149)| + +#### notifyBetDataChanged +> Notify the bet data is changed.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:156](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L156)| + +#### onAutoSpinDeactivated +> Process the bet data when the user stop auto spin.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:180](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L180)| + +#### onBetArrayReceived +> Progress the bet data when get the bet array data.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:197](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L197)| + +#### onBetMultiplierReceived +> Progress the bet data when get the bet multiplier data.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:209](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L209)| + +#### onFreeroundsStarted +> Progress the bet data when the free rounds start.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:216](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L216)| + +#### onFreeroundsDataReceived +> Progress the bet data when get the free rounds data.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:223](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#223)| + +#### onMiniGameDataReceived +> Progress the bet data when get the mini game data.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:234](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L234)| + +#### onResumeOrReplayGameRound +> Progress the bet data when resume the game.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:245](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L245)| + +#### onBalanceChanged +> Progress the bet data when the balance change.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:254](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L254)| + +#### onReplayHistoryClient +> Progress the bet data when replay the game.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:263](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L263)| + +#### onResume +> Progress the bet data when resume the game.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:269](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L269)| + +#### onReplayHistory +> Progress the bet data when replay the game.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:275](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L275)| + +#### onHistoryActivated +> Progress the bet data when replay the game.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:281](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L281)| + +#### onHistoryDeactivated +> Progress the bet data when replay the game.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:287](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L287)| + +#### onAutoSpinActivated +> Change the current game state to the Spin State.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:309](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L309)| + +#### onSpinClicked +> Change the current game state to the Spin State.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:153](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L315)| + +#### onOutcomeSelected +> Set the outcome data.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:321](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L321)| + +#### onBetPointChanged +> Progress the bet point.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:327](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L327)| + +#### onBetMultiplierChanged +> Process the bet multiplier.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:333](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L333)| + +#### onPaylineCountChanged +> Process the bet data when the pay line is changed.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:341](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L341)| + +#### getTotalBetPoint +> Get the total bet point.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:349](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L349)| + +#### spin +> Process bet data and notify event Spin.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:360](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L360)| + +#### onManualBuyBonusOpened +> Process the bet data when the user buy bonus.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:375](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L375)| + +#### onManualBuyBonusClosed +> Process the bet data when the user buy bonus.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:381](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L381)| + +#### onManualBuyBonusChanged +> Process the bet data when the user buy bonus.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:386](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L386)| + +#### setBetByPowerPlayModel +> Process the bet data when the user buy bonus.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/controller/bet-controller.js:391](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/controller/bet-controller.js#L391)| \ No newline at end of file diff --git a/api-doc/slot-machine/bet/bet-model.md b/api-doc/slot-machine/bet/bet-model.md new file mode 100644 index 0000000..5bd7c48 --- /dev/null +++ b/api-doc/slot-machine/bet/bet-model.md @@ -0,0 +1,288 @@ +--- +sidebar_position: 2 +--- + +# Bet Model + +## Index + +### Properties +* [betPoints](#betpoints) `Array` The current the bet points. +* [availableBetPoints](#availablebetpoints) `Array` The current available bet points that user can place. +* [betPoint](#betpoint) `Number` The current bet point. +* [minBetPoint](#minbetpoint) `Number` The current min bet point. +* [savedBetPoint](#savedbetpoint) `Number` The current save point. +* [betMultiplier](#betmultiplier) `Number` The current bet multiplier. +* [paylineCount](#paylinecount) `Number` The current Pay Linecount. +* [totalBetPoint](#totalbetpoint) `Number` The current total bet point. +* [isBuyBonusActivated](#isbuybonusactivated) `Boolean` Indicates whether the user is buying a bonus. +* [isFastPlayActivated](#isfastplayactivated) `Boolean` Indicates whether the user is playing fast play. +* [outcome](#outcome) `Object` The current outcome. + +### Methods +* [SetBuyBonusActivated](#setbuybonusactivated) Set whether the user is buying a bonus. +* [CheckBuyBonusActivated](#checkbuybonusactivated) Check whether the user is buying a bonus. +* [SetFastPlayActivated](#setfastplayactivated) Set whether the user is playing fast play. +* [CheckFastPlayActivated](#checkfastplayactivated) Check whether the user is playing fast play. +* [SetOutcome](#setoutcome) Set the outcome data. +* [SetBetPoints](#setbetpoints) Set the bet points. +* [GetBetPoints](#getbetpoints) Get the bet points. +* [SetBetPoint](#setbetpoints) Set the bet point. +* [GetBetPoint](#getbetpoints) Get the bet point. +* [SetMinTotalBet](#setbetpoints) Set the min total bet point. +* [GetMinTotalBet](#getbetpoints) Get the min total bet point. +* [SetAvailableBetPoints](#setbetpoints) Set the available bet points. +* [GetAvailableBetPoints](#getbetpoints) Get the available bet points. +* [SaveBetPoint](#savebetpoint) Save the bet point. +* [GetSavedBetPoint](#getsavedbetpoint) Get the saved bet point. +* [SetBetMultiplier](#setbetmultiplier) Set the bet multiplier. +* [GetBetMultiplier](#getbetmultiplier) Get the bet multiplier. +* [SetPaylineCount](#setpaylinecount) Set the payline count. +* [GetPaylineCount](#getpaylinecount) Get the payline count. +* [SetTotalBetPoint ](#Settotalbetpoint) Save the total bet point. +* [GetTotalBetPoint ](#gettotalbetpoint) Get the total bet point. + +## Details + +#### betPoints +> The current the bet points.
+ +| meta | description | +| :--- | :---------- | +| Type | [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:11](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L11)| + +#### availableBetPoints +> The current available bet points that user can place.
+ +| meta | description | +| :--- | :---------- | +| Type | [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:12](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L12)| + +#### betPoint +> The current bet point.
+ +| meta | description | +| :--- | :---------- | +| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:13](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L13)| + +#### minBetPoint +> The current min bet point.
+ +| meta | description | +| :--- | :---------- | +| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:14](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L14)| + +#### savedbetPoint +> The current save point.
+ +| meta | description | +| :--- | :---------- | +| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:15](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L15)| + +#### betMultiplier +> The current bet multiplier.
+ +| meta | description | +| :--- | :---------- | +| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:16](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L16)| + +#### payLineCount +> The current Pay Linecount.
+ +| meta | description | +| :--- | :---------- | +| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:17](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L17)| + +#### totalBetPoint +> The current total bet point.
+ +| meta | description | +| :--- | :---------- | +| Type | [Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:18](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L18)| + +#### isBuyBonusActivated +> Indicates whether the user is buying a bonus.
+ +| meta | description | +| :--- | :---------- | +| Type | [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:19](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L19)| + +#### isFastPlayActivated +> Indicates whether the user is playing fast play.
+ +| meta | description | +| :--- | :---------- | +| Type | [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean) | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:20](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L20)| + +#### outCome +> The current outcome.
+ +| meta | description | +| :--- | :---------- | +| Type | [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:21](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L21)| + +#### SetBuyBonusActivated +> Set whether the user is buying a bonus.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:26](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L26)| + +#### CheckBuyBonusActivated +> Check whether the user is buying a bonus.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:32](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L32)| + +#### SetFastPlayActivated +> Set whether the user is playing fast play.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:38](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L38)| + +#### CheckFastPlayActivated +> Check whether the user is playing fast play.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:44](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L44)| + +#### SetOutcome +> Set the outcome data.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:50](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L50)| + +#### GetOutcome +> Get the outcome data.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:56](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L56)| + +#### SetBetPoints +> Set the bet points.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:62](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L62)| + + +#### GetBetPoints +> Get bet points
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:68](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L68)| + +#### SetBetPoint +> Set the bet point
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:98](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L98)| + +#### GetBetPoint +> Get the bet point.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:104](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L104)| + +#### SetMinTotalBet +> Set the min total bet point.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:74](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L74)| + +#### GetMinTotalBet +> Get the min total bet point.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:80](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L80)| + +#### SetAvailableBetPoints +> Set the available bet points.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:86](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L86)| + +#### GetAvailableBetPoints +> Get the available bet points.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:92](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L92)| + +#### SaveBetPoint +> Set the bet point.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:110](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L110)| + +#### GetSavedBetPoint +> Get the saved bet point.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:116](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L116)| + +#### SetBetMultiplier +> Set the bet multiplier.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:122](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L122)| + +#### GetBetMultiplier +> Get the bet multiplier.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:128](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L128)| + +#### SetPaylineCount +> Set the payline count.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:134](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L134)| + +#### GetPaylineCount +> Get the payline count.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:141](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L141)| + +#### SetTotalBetPoint +> Set the total bet point.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:147](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L147)| + +#### GetTotalBetPoint +> Get the total bet point.
+ +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/model/bet-model.js:153](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/model/bet-model.js#L153)| \ No newline at end of file diff --git a/api-doc/slot-machine/bet/bet-view.md b/api-doc/slot-machine/bet/bet-view.md new file mode 100644 index 0000000..f83b36f --- /dev/null +++ b/api-doc/slot-machine/bet/bet-view.md @@ -0,0 +1,19 @@ +--- +sidebar_position: 3 +--- + +# Bet View + +## Index + +### Methods +* [RefreshView](#refreshview) + +## Details + +#### RefreshView +> ... + +| meta | description | +| :--- | :---------- | +| Defined in | [p4f-slotty-core/src/view/bet-view.js:13](https://gitea.plp19.com/cocos-core/p4f-slotty-core/src/branch/develop/src/view/bet-view.js#L13)| \ No newline at end of file