MCPcopy Create free account

hub / github.com/chukwumaijem/ludo-game / functions

Functions91 in github.com/chukwumaijem/ludo-game

↓ 7 callersFunctionfindSeedGroup
(state, seedId)
src/utils/moveSeed.js:32
↓ 6 callersFunctionsendNotification
(data)
src/actions/gameData.js:58
↓ 3 callersFunctiongetSeedPosition
* getSeedPosition * * gets the current position of a seed
src/utils/moveSeed.js:58
↓ 3 callersFunctionmoveSeed
(data)
src/actions/gameData.js:13
↓ 3 callersFunctionsetDisabled
(data)
src/actions/gameData.js:90
↓ 2 callersFunctionbuildRails
(col, row, size, position, colour, seedData)
src/utils/buildRails.js:5
↓ 2 callersFunctioncheckForWins
* checkForWins * * Takes a seedgroup, checks if all seeds are home. * If true, send notification and remove house from loop
src/utils/moveSeed.js:93
↓ 2 callersFunctiondisableEmptyHouses
(setDisabled, numberOfPlayers)
src/helpers/disableEmptyHouses.js:1
↓ 2 callersFunctiongetLudoSeeds
(gameData)
src/utils/moveSeed.js:77
↓ 2 callersFunctionmakeSeedMove
* makeSeedMove * * Dispatches the updated seed position
src/utils/moveSeed.js:150
↓ 2 callersFunctionmakeStateCopy
()
src/reducers/gameData.js:57
↓ 2 callersFunctionregisterValidSW
(swUrl)
src/registerServiceWorker.js:46
↓ 1 callersFunctionchangeTurn
()
src/actions/gameData.js:66
↓ 1 callersFunctionchangeTurnAction
()
src/actions/gameData.js:62
↓ 1 callersFunctioncheckValidServiceWorker
(swUrl)
src/registerServiceWorker.js:75
↓ 1 callersFunctioncreateNotification
(data)
src/actions/gameData.js:54
↓ 1 callersFunctioncreateWindow
()
main.js:9
↓ 1 callersFunctiondisableInactiveSeed
(data)
src/actions/gameData.js:23
↓ 1 callersFunctionhasAlternativeMove
(seedGroup)
src/utils/moveSeed.js:176
↓ 1 callersFunctionhlOnePath
* hlOnePath * * This method handles movement on Hl rail's * second row(HL-1).
src/utils/seedPath.js:104
↓ 1 callersFunctionhlPath
* hlPath * * This method is responsible for movement * on the Left Horizontal rails
src/utils/seedPath.js:62
↓ 1 callersFunctionhlTwoPath
* hlTwoPath * * This method handles movement on Hl rail's * third row(HL-2).
src/utils/seedPath.js:125
↓ 1 callersFunctionhlZeroPath
* hlZeroPath * * This method handles movement on HL rail's * first row(HL-0).
src/utils/seedPath.js:87
↓ 1 callersFunctionhrOnePath
* hrOnePath * * This method handles movement on the second column * of the HR rail(HR-1).
src/utils/seedPath.js:268
↓ 1 callersFunctionhrPath
* hrPath * * This method handles movement on the right * horizontal rail.
src/utils/seedPath.js:226
↓ 1 callersFunctionhrTwoPath
* hrTwoPath * * This method handles movement on the third column * of the HR rail(HR-2).
src/utils/seedPath.js:289
↓ 1 callersFunctionhrZeroPath
* hrZeroPath * * This method handles movement on the first column * of the HR rail(HR-0).
src/utils/seedPath.js:251
↓ 1 callersFunctioninvalidPlay
* invalidPlay * * Hanldes conditions that can make a play invalid
src/utils/moveSeed.js:200
↓ 1 callersFunctionkillSeed
* killSeed * * returns a seed to its house if another seeds * move ends at its position.
src/utils/moveSeed.js:116
↓ 1 callersFunctionmapDispatchToProps
(dispatch)
src/containers/GamePlay/index.js:58
↓ 1 callersFunctionnewSeedPosition
(seedId, currentSeedPosition)
src/utils/seedPath.js:34
↓ 1 callersFunctionnextTurn
(state)
src/reducers/gameData.js:8
↓ 1 callersFunctionnumberOfPlayers
(data)
src/actions/gameData.js:70
↓ 1 callersFunctionnumberOfPlayersUpdated
()
src/actions/gameData.js:73
↓ 1 callersFunctionremoveNotification
(data)
src/actions/gameData.js:46
↓ 1 callersFunctionremovePlayerFromList
(player)
src/actions/gameData.js:97
↓ 1 callersFunctionremovePlayerFromlist
(state, player)
src/reducers/gameData.js:47
↓ 1 callersFunctionresetGameData
(data)
src/actions/gameData.js:109
↓ 1 callersFunctionresultToGlobalState
(data)
src/actions/gameData.js:101
↓ 1 callersFunctionseedRemainingMoves
* seedRemainingMoves * * gets the remaining number of moves for a seed
src/utils/moveSeed.js:67
↓ 1 callersFunctionselectedSeed
(data)
src/actions/gameData.js:38
↓ 1 callersFunctionsetBoardSettings
(data)
src/actions/boardSettings.js:4
↓ 1 callersFunctionsetColours
(data)
src/actions/gameData.js:5
↓ 1 callersFunctionsetColours
(state, action)
src/utils/moveSeed.js:19
↓ 1 callersFunctionsetDieCastComplete
()
src/actions/gameData.js:31
↓ 1 callersFunctionsetDisabledHouse
(data)
src/actions/gameData.js:84
↓ 1 callersFunctionsetDisabledHousesComplete
()
src/actions/gameData.js:87
↓ 1 callersFunctionsetHouseOrder
(house)
src/reducers/gameData.js:17
↓ 1 callersFunctionsetInitialPlayerTurn
(state)
src/reducers/gameData.js:28
↓ 1 callersFunctionsetResultToGlobalState
(data)
src/actions/gameData.js:105
↓ 1 callersFunctionsetSeedPosition
(data)
src/utils/moveSeed.js:246
↓ 1 callersFunctionsetSelectedSeed
(id)
src/actions/gameData.js:42
↓ 1 callersFunctionstartPoint
(seedId)
src/utils/seedPath.js:7
↓ 1 callersFunctionupdateSettings
(state, data)
src/reducers/boardSettings.js:8
↓ 1 callersFunctionvbOnePath
* vbOnePath * * This method handles movement on the second column * of VB. Should be VB-(*)0, but for simplicity * the (*) was removed.
src/utils/seedPath.js:351
↓ 1 callersFunctionvbPath
* vbPath * * This method handles movement on the Bottom vertical * rail.
src/utils/seedPath.js:306
↓ 1 callersFunctionvbTwoPath
* vbTwoPath * * This method handles movement on the third column * of VB. Should be VB-(*)0, but for simplicity * the (*) was removed.
src/utils/seedPath.js:373
↓ 1 callersFunctionvbZeroPath
* vbZeroPath * * This method handles movement on the first column * of VB. Should be VB-(*)0, but for simplicity * the (*) was removed.
src/utils/seedPath.js:333
↓ 1 callersFunctionvtOnePath
* vtOnePath * * This method handles movement on the second column * of VT. Should be VT-(*)1, but for simplicity * the (*) was removed.
src/utils/seedPath.js:187
↓ 1 callersFunctionvtPath
* vtPath * * This method handles movement on the * top vertical rail.
src/utils/seedPath.js:142
↓ 1 callersFunctionvtTwoPath
* vtTwoPath * * This method handles movement on the third column * of VT. Should be VT-(*)2, but for simplicity * the (*) was removed.
src/utils/seedPath.js:209
↓ 1 callersFunctionvtZeroPath
* vtZeroPath * * This method handles movement on the first column * of VT. Should be VT-(*)0, but for simplicity * the (*) was removed.
src/utils/seedPath.js:169
FunctionFooter
()
src/components/Footer/index.js:4
FunctionGame
()
src/index.js:40
FunctionGameChat
()
src/components/GameChat/index.js:5
FunctionHRailFrame
({ HRailHeight, boxColour, boxPosition, disabled, seedData })
src/components/Rails/index.js:13
FunctionHome
()
src/index.js:30
FunctionHowToPlay
()
src/containers/HowToPlay/index.js:78
FunctionNotFound
()
src/index.js:20
FunctionPageHeader
()
src/components/Header/index.js:3
FunctionVRailFrame
({ VRailHeight, boxPosition, boxColour, seedData, disabled })
src/components/Rails/index.js:4
FunctionbuildSeed
(seedPosition, seedData, size)
src/utils/buildRails.js:55
FunctionclearNotification
(data)
src/actions/gameData.js:50
FunctioncomponentDidMount
()
src/components/Houses/index.js:12
FunctioncomponentDidMount
()
src/components/SideBoard/index.js:53
MethodcomponentDidMount
()
src/containers/GamePlay/index.js:12
FunctiondieCastComplete
()
src/actions/gameData.js:34
FunctiondisableInactiveHouseSeed
(activeHouse)
src/actions/gameData.js:27
FunctiongameData
(state = makeStateCopy(), action)
src/reducers/gameData.js:61
FunctiongameData
(state = initialState, action)
src/reducers/boardSettings.js:15
FunctiongameDataReset
(data)
src/actions/gameData.js:113
FunctiongetDerivedStateFromProps
(props, state)
src/components/SideBoard/index.js:43
MethodgetDerivedStateFromProps
(nextProps, prevState)
src/containers/GamePlay/index.js:25
FunctionmapStateToProps
({ gameData, gameSettings })
src/containers/GamePlay/index.js:52
FunctionmoveSeedToPosition
(seed, position, cb)
src/actions/gameData.js:17
Functionregister
()
src/registerServiceWorker.js:21
Methodrender
()
src/containers/GamePlay/index.js:34
FunctionsetHouseColours
(colours)
src/actions/gameData.js:9
FunctionsetNumberOfPlayers
(data)
src/actions/gameData.js:76
Functionunregister
()
src/registerServiceWorker.js:102
FunctionupdateBoardSettings
(data)
src/actions/boardSettings.js:8