MCPcopy Index your code

hub / github.com/ShrimpCryptid/Secret-Hitler-Online / functions

Functions258 in github.com/ShrimpCryptid/Secret-Hitler-Online

MethodgetActivatedPower
()
backend/src/main/java/game/datastructures/board/SevenToEightPlayerBoard.java:7
MethodgetActivatedPower
()
backend/src/main/java/game/datastructures/board/NineToTenPlayerBoard.java:7
MethodgetButtonClass
* Gets the classname for the div if selectable. * @return {string} If currently selected, returns " selectable selected" to set the background co
frontend/src/player/Player.js:101
FunctiongetClass
()
frontend/src/custom-alert/CustomAlert.js:15
FunctiongetClass
()
frontend/src/event-bar/EventBar.js:13
FunctiongetFascistBoard
* Returns the correct board image based on the number of players in the game. * @requires this.props.numPlayers must in range [5, 10], inclusive.
frontend/src/board/Board.js:23
MethodgetHeader
()
frontend/src/custom-alert/RoleAlert.js:129
MethodgetHighlight
()
frontend/src/player/Player.js:89
FunctionhandleDragStart
(e)
frontend/src/LoginPageContent.js:24
MethodhasActivatedPower
Gets whether the last policy activated a power. @requires a policy has already been enacted. @return true if the last enacted policy activated a presi
backend/src/main/java/game/datastructures/board/Board.java:106
FunctionisIconInUse
(iconID)
frontend/src/custom-alert/IconSelection.js:46
Methodmain
(String[] args)
backend/src/main/java/server/SecretHitlerServer.java:107
FunctiononButtonClick
(accepted)
frontend/src/custom-alert/VetoPrompt.js:15
FunctiononButtonClick
* Called when the confirm button is clicked. * @effects Attempts to send the server a command with the player's vote, and locks access to the but
frontend/src/custom-alert/VotingPrompt.js:72
MethodonButtonClick
(selectedItem)
frontend/src/custom-alert/SelectPlayerPrompt.js:32
MethodonButtonClick
()
frontend/src/custom-alert/PresidentLegislativePrompt.js:24
MethodonButtonClick
()
frontend/src/custom-alert/PeekPrompt.js:23
FunctiononClickIcon
(iconID)
frontend/src/custom-alert/IconSelection.js:58
FunctiononConfirmButtonClick
* Called when any icon is clicked. * @effects Attempts to send the server a command with the player's vote, and locks access to the button *
frontend/src/custom-alert/IconSelection.js:78
MethodonEnactButtonClick
()
frontend/src/custom-alert/ChancellorLegislativePrompt.js:25
MethodonVetoButtonClick
()
frontend/src/custom-alert/ChancellorLegislativePrompt.js:36
FunctiononWebSocketClose
* Called when the websocket closes. * @effects attempts to reopen the websocket connection. * If the user pressed the "Leave Lobby"
frontend/src/App.js:331
FunctiononWebSocketMessage
(msg)
frontend/src/App.js:376
MethodonWebsocketConnect
Called when a websocket connects to the server. @param ctx the WsConnectContext of the websocket. @requires the context must have the following param
backend/src/main/java/server/SecretHitlerServer.java:498
Methodping
Pings the server (intended to wake the inactive server) @param ctx the context of the login request @effects Returns the message "OK" with status cod
backend/src/main/java/server/SecretHitlerServer.java:363
FunctionplaceRepeating
* Places a series of repeating images. * @param count {number} the count of currently visible images. * @param totalCount {number} the total
frontend/src/board/Board.js:47
MethodreadObject
(java.io.ObjectInputStream in)
backend/src/main/java/game/CpuPlayer.java:735
Functionregister
(config)
frontend/src/serviceWorker.js:23
Methodrender
()
frontend/src/player/PlayerDisplay.js:259
Methodrender
()
frontend/src/custom-alert/PolicyEnactedAlert.js:37
Methodrender
()
frontend/src/custom-alert/PlayerDisplayPrompt.js:19
Methodrender
()
frontend/src/custom-alert/RoleAlert.js:133
Methodrender
()
frontend/src/custom-alert/SelectPlayerPrompt.js:47
Methodrender
()
frontend/src/custom-alert/ButtonPrompt.js:16
Methodrender
()
frontend/src/custom-alert/PresidentLegislativePrompt.js:36
Methodrender
()
frontend/src/custom-alert/InvestigationAlert.js:33
Methodrender
()
frontend/src/custom-alert/ChancellorLegislativePrompt.js:51
Methodrender
()
frontend/src/custom-alert/PeekPrompt.js:37
Methodrender
()
frontend/src/status-bar/StatusBar.js:38
Methodrender
()
frontend/src/util/AnnouncementBox.js:11
Methodrun
()
backend/src/main/java/server/SecretHitlerServer.java:140
Methodrun
()
backend/src/main/java/server/util/Lobby.java:260
Methodrun
()
backend/src/main/java/server/util/Lobby.java:355
FunctionsendWSCommand
* Sends a specified command to the server. * @param command the String command label. * @param params a dictionary of any parameters that ne
frontend/src/App.js:431
FunctionshouldChancellorRoleBeShown
* Returns whether the chancellor's role should be shown on the card. * @return {boolean} Returns true iff the chancellor should be shown. This ca
frontend/src/custom-alert/VotingPrompt.js:44
FunctionshouldCreateLobbyButtonBeEnabled
()
frontend/src/App.js:495
FunctionshouldJoinButtonBeEnabled
()
frontend/src/App.js:491
MethodtestBiasesTowardsPlayers
()
backend/src/test/java/game/testCpuPlayer.java:121
MethodtestCanNominateChancellor
()
backend/src/test/java/game/testCpuPlayer.java:147
MethodtestCanPlayFullGame
()
backend/src/test/java/game/testCpuPlayer.java:159
MethodtestGameFlow
()
backend/src/test/java/game/testSecretHitlerGame.java:21
MethodtestSelectingRandomPlayerDoesNotChooseSelf
()
backend/src/test/java/game/testCpuPlayer.java:40
MethodtestSelectingRandomPlayerIgnoresZeroProbability
()
backend/src/test/java/game/testCpuPlayer.java:99
MethodtestSelectingRandomPlayersChoosesAll
()
backend/src/test/java/game/testCpuPlayer.java:59
FunctiontryCreateLobby
* Attempts to request the server to create a new lobby and returns the response. * @return {Promise<Response>}
frontend/src/App.js:254
FunctiontryLogin
* Checks if the login is valid. * @param name the name of the user. * @param lobby the lobby code. * @return {Promise<Response>} The re
frontend/src/App.js:264
FunctiontryOpenWebSocket
* Attempts to open a WebSocket with the server. * @param name the name of the user to connect with. * @param lobby the lobby to connect with
frontend/src/App.js:281
Functionunregister
()
frontend/src/serviceWorker.js:131
← previous201–258 of 258, ranked by callers