Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ShrimpCryptid/Secret-Hitler-Online
/ functions
Functions
258 in github.com/ShrimpCryptid/Secret-Hitler-Online
⨍
Functions
258
◇
Types & classes
59
Method
getActivatedPower
()
backend/src/main/java/game/datastructures/board/SevenToEightPlayerBoard.java:7
Method
getActivatedPower
()
backend/src/main/java/game/datastructures/board/NineToTenPlayerBoard.java:7
Method
getButtonClass
* 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
Function
getClass
()
frontend/src/custom-alert/CustomAlert.js:15
Function
getClass
()
frontend/src/event-bar/EventBar.js:13
Function
getFascistBoard
* 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
Method
getHeader
()
frontend/src/custom-alert/RoleAlert.js:129
Method
getHighlight
()
frontend/src/player/Player.js:89
Function
handleDragStart
(e)
frontend/src/LoginPageContent.js:24
Method
hasActivatedPower
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
Function
isIconInUse
(iconID)
frontend/src/custom-alert/IconSelection.js:46
Method
main
(String[] args)
backend/src/main/java/server/SecretHitlerServer.java:107
Function
onButtonClick
(accepted)
frontend/src/custom-alert/VetoPrompt.js:15
Function
onButtonClick
* 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
Method
onButtonClick
(selectedItem)
frontend/src/custom-alert/SelectPlayerPrompt.js:32
Method
onButtonClick
()
frontend/src/custom-alert/PresidentLegislativePrompt.js:24
Method
onButtonClick
()
frontend/src/custom-alert/PeekPrompt.js:23
Function
onClickIcon
(iconID)
frontend/src/custom-alert/IconSelection.js:58
Function
onConfirmButtonClick
* 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
Method
onEnactButtonClick
()
frontend/src/custom-alert/ChancellorLegislativePrompt.js:25
Method
onVetoButtonClick
()
frontend/src/custom-alert/ChancellorLegislativePrompt.js:36
Function
onWebSocketClose
* Called when the websocket closes. * @effects attempts to reopen the websocket connection. * If the user pressed the "Leave Lobby"
frontend/src/App.js:331
Function
onWebSocketMessage
(msg)
frontend/src/App.js:376
Method
onWebsocketConnect
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
Method
ping
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
Function
placeRepeating
* 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
Method
readObject
(java.io.ObjectInputStream in)
backend/src/main/java/game/CpuPlayer.java:735
Function
register
(config)
frontend/src/serviceWorker.js:23
Method
render
()
frontend/src/player/PlayerDisplay.js:259
Method
render
()
frontend/src/custom-alert/PolicyEnactedAlert.js:37
Method
render
()
frontend/src/custom-alert/PlayerDisplayPrompt.js:19
Method
render
()
frontend/src/custom-alert/RoleAlert.js:133
Method
render
()
frontend/src/custom-alert/SelectPlayerPrompt.js:47
Method
render
()
frontend/src/custom-alert/ButtonPrompt.js:16
Method
render
()
frontend/src/custom-alert/PresidentLegislativePrompt.js:36
Method
render
()
frontend/src/custom-alert/InvestigationAlert.js:33
Method
render
()
frontend/src/custom-alert/ChancellorLegislativePrompt.js:51
Method
render
()
frontend/src/custom-alert/PeekPrompt.js:37
Method
render
()
frontend/src/status-bar/StatusBar.js:38
Method
render
()
frontend/src/util/AnnouncementBox.js:11
Method
run
()
backend/src/main/java/server/SecretHitlerServer.java:140
Method
run
()
backend/src/main/java/server/util/Lobby.java:260
Method
run
()
backend/src/main/java/server/util/Lobby.java:355
Function
sendWSCommand
* 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
Function
shouldChancellorRoleBeShown
* 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
Function
shouldCreateLobbyButtonBeEnabled
()
frontend/src/App.js:495
Function
shouldJoinButtonBeEnabled
()
frontend/src/App.js:491
Method
testBiasesTowardsPlayers
()
backend/src/test/java/game/testCpuPlayer.java:121
Method
testCanNominateChancellor
()
backend/src/test/java/game/testCpuPlayer.java:147
Method
testCanPlayFullGame
()
backend/src/test/java/game/testCpuPlayer.java:159
Method
testGameFlow
()
backend/src/test/java/game/testSecretHitlerGame.java:21
Method
testSelectingRandomPlayerDoesNotChooseSelf
()
backend/src/test/java/game/testCpuPlayer.java:40
Method
testSelectingRandomPlayerIgnoresZeroProbability
()
backend/src/test/java/game/testCpuPlayer.java:99
Method
testSelectingRandomPlayersChoosesAll
()
backend/src/test/java/game/testCpuPlayer.java:59
Function
tryCreateLobby
* Attempts to request the server to create a new lobby and returns the response. * @return {Promise<Response>}
frontend/src/App.js:254
Function
tryLogin
* 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
Function
tryOpenWebSocket
* 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
Function
unregister
()
frontend/src/serviceWorker.js:131
← previous
201–258 of 258, ranked by callers