MCPcopy Create free account

hub / github.com/JaniM/variant-go-server / functions

Functions204 in github.com/JaniM/variant-go-server

↓ 29 callersMethodget
()
client/src/palette.rs:27
↓ 29 callersMethodsend
(&self, msg: ClientMessage)
client/src/state.rs:256
↓ 25 callersMethodis_empty
(self)
shared/src/game.rs:47
↓ 18 callersMethodpoint_mut
(&mut self, (x, y): Point)
shared/src/game/board.rs:36
↓ 15 callersMethodpack
(&self)
shared/src/message.rs:158
↓ 13 callersMethodget_point
(&self, (x, y): Point)
shared/src/game/board.rs:32
↓ 11 callersMethodas_usize
(self)
shared/src/game.rs:51
↓ 11 callersFunctionuse_state
(cx: &ScopeState)
client/src/state.rs:206
↓ 10 callersMethodwrap_point
(&self, x: i32, y: i32)
shared/src/game/board.rs:48
↓ 9 callersFunctionuse_display_mode
(cx: &ScopeState)
client/src/window.rs:65
↓ 6 callersMethodboard_to_view_coord
( &self, game: &state::GameView, board: (i32, i32), mut cb: impl FnMut((i32, i
client/src/board.rs:556
↓ 6 callersMethodget_active_seat
(&self)
shared/src/game.rs:292
↓ 5 callersFunctionfind_groups
(board: &Board)
shared/src/game.rs:849
↓ 5 callersMethodsurrounding_points
(&self, p: Point)
shared/src/game/board.rs:52
↓ 4 callersMethodidx_to_coord
(&self, idx: usize)
shared/src/game/board.rs:40
↓ 4 callersMethodleave_room
( &mut self, session_id: usize, room_id: Option<u32>, )
server/src/server.rs:227
↓ 4 callersMethodsend_global_message
Send message to all users
server/src/server.rs:202
↓ 4 callersMethodtake_seat
(&mut self, player_id: u64, seat_id: usize)
shared/src/game.rs:553
↓ 3 callersMethodactive_room
(&self)
client/src/state.rs:32
↓ 3 callersFunctionget_canvas
()
client/src/main.rs:679
↓ 3 callersFunctionget_seat
(seats: &[Seat], player_id: u64)
shared/src/states/free_placement.rs:211
↓ 3 callersMethodinitialize_clocks
(&mut self, initial_time: Millisecond)
shared/src/game/clock.rs:117
↓ 3 callersMethodleave_seat
(&mut self, player_id: u64, seat_id: usize)
shared/src/game.rs:578
↓ 3 callersFunctionreveal_group
( visibility: Option<&mut VisibilityBoard>, group: &Group, board: &Board, )
shared/src/states/play.rs:528
↓ 3 callersMethodsend_room_messages
(&self, mut create_msg: impl FnMut(u64) -> Message)
server/src/game_room.rs:107
↓ 3 callersMethodview_for_user
(&self, user_id: u64)
server/src/game_room.rs:113
↓ 3 callersFunctionwrap_point
(x: i32, y: i32, width: i32, height: i32, toroidal: bool)
shared/src/game/board.rs:83
↓ 2 callersFunctioncheck
( points_played: &mut GroupVec<Point>, board: &mut Board, _rule: &TetrisGo, )
shared/src/states/play/tetris.rs:10
↓ 2 callersMethodfinish
(mut self)
shared/src/game/export.rs:54
↓ 2 callersMethodget_board_view
( &self, player_id: u64, state: &GameState, board: &Board, board_visib
shared/src/game.rs:680
↓ 2 callersMethodget_view
(&self, player_id: u64)
shared/src/game.rs:784
↓ 2 callersMethodhash
(&self)
shared/src/game/board.rs:76
↓ 2 callersMethodjoin_room
( &mut self, session_id: usize, room_id: u32, )
server/src/server.rs:258
↓ 2 callersMethodlabel
(&mut self, point: (u32, u32), text: &str)
shared/src/game/export.rs:44
↓ 2 callersMethodmake_action
( &mut self, user_id: u64, action: message::GameAction, addr: Option<Recipient
server/src/game_room.rs:127
↓ 2 callersMethodmake_action_place
( &mut self, shared: &mut SharedState, (x, y): (u32, u32), color_placed: Color
shared/src/states/play.rs:241
↓ 2 callersMethodnext_turn
(&mut self, shared: &mut SharedState, new_turn: bool)
shared/src/states/play.rs:494
↓ 2 callersFunctionpack
(msg: ClientMessage)
repl/src/main.rs:25
↓ 2 callersMethodpoint
(&self, point: (u32, u32))
shared/src/game/export.rs:37
↓ 2 callersMethodpoint_within
(&self, (x, y): Point)
shared/src/game/board.rs:28
↓ 2 callersMethodrollback_turn
( &mut self, shared: &mut SharedState, roll_visibility: bool, )
shared/src/states/play.rs:380
↓ 2 callersFunctionscore_board
Scores a board by filling in fully surrounded empty spaces based on chinese rules
shared/src/states/scoring.rs:123
↓ 2 callersMethodto_palette
(&self)
client/src/palette.rs:40
↓ 2 callersFunctionuse_window_size
(cx: &ScopeState)
client/src/window.rs:28
↓ 2 callersFunctionwindow_size
()
client/src/window.rs:9
↓ 1 callersMethodadvance_clock
Returns the time left for the given clock at current timestamp `time`.
shared/src/game/clock.rs:128
↓ 1 callersFunctionapply_room_event
(event: RoomEvent, rooms: &mut Vec<GameRoom>)
client/src/state.rs:210
↓ 1 callersMethodas_secs
(self)
shared/src/game/clock.rs:9
↓ 1 callersMethodborrow
Allow only immutable borrows to the underlying data
store/src/store.rs:72
↓ 1 callersMethodbuild_board
(&self, mut board: Board)
shared/src/states/free_placement.rs:140
↓ 1 callersMethodcapture
( &self, shared: &mut SharedState, points_played: &mut GroupVec<Point>, color_
shared/src/states/play.rs:113
↓ 1 callersFunctionconnection_loop
( ws: WebSocket, rx: &mut (impl FusedStream<Item = ClientMessage> + Unpin), receive: &mut impl FnM
client/src/networking.rs:52
↓ 1 callersMethoddump
Dumps the game to a (hopefully somewhat) stable replay format.
shared/src/game.rs:535
↓ 1 callersMethodend_turn
(&mut self)
shared/src/game/export.rs:50
↓ 1 callersMethodend_turn
(&mut self, clock_idx: usize, time: Millisecond)
shared/src/game/clock.rs:147
↓ 1 callersFunctionestablish_connection
()
server/src/db.rs:12
↓ 1 callersFunctionget_token
()
client/src/state.rs:234
↓ 1 callersMethodget_view_at
(&self, player_id: u64, turn: u32)
shared/src/game.rs:822
↓ 1 callersFunctionglobal_style
()
client/src/main.rs:689
↓ 1 callersMethodhandle_get_game_list
(&mut self, ctx: &mut Context)
server/src/main.rs:275
↓ 1 callersMethodhandle_identify
(&mut self, token: Option<String>, nick: Option<String>, ctx: &mut Context)
server/src/main.rs:356
↓ 1 callersMethodhandle_join_game
(&mut self, room_id: u32, ctx: &mut Context)
server/src/main.rs:324
↓ 1 callersMethodhandle_leave_game
(&mut self, room_id: Option<u32>, ctx: &mut Context)
server/src/main.rs:345
↓ 1 callersMethodhandle_message
(&mut self, msg: ClientMessage, ctx: &mut Context)
server/src/main.rs:387
↓ 1 callersMethodhandle_start_game
(&mut self, msg: message::StartGame, ctx: &mut Context)
server/src/main.rs:297
↓ 1 callersMethodhb
helper method that sends ping to client every second. also this method checks heartbeats from client
server/src/main.rs:253
↓ 1 callersMethodinto_selection
(self)
client/src/board.rs:84
↓ 1 callersMethodjoin_room
(&self, id: u32)
client/src/state.rs:267
↓ 1 callersMethodleave_all_rooms
(&self)
client/src/state.rs:271
↓ 1 callersMethodleave_seat
(&self, id: u32)
client/src/state.rs:284
↓ 1 callersFunctionlist_selection
(selection: &[u32], state: &State)
repl/src/main.rs:262
↓ 1 callersMethodmake_action
( &mut self, player_id: u64, mut action: ActionKind, time: Millisecond, )
shared/src/game.rs:595
↓ 1 callersMethodmake_action_cancel
( &mut self, shared: &mut SharedState, player_id: u64, )
shared/src/states/free_placement.rs:167
↓ 1 callersMethodmake_action_cancel
(&mut self, shared: &mut SharedState)
shared/src/states/play.rs:367
↓ 1 callersMethodmake_action_pass
( &mut self, shared: &mut SharedState, player_id: u64, )
shared/src/states/free_placement.rs:108
↓ 1 callersMethodmake_action_pass
(&mut self, shared: &mut SharedState)
shared/src/states/play.rs:337
↓ 1 callersMethodmake_action_pass
( &mut self, shared: &mut SharedState, player_id: u64, )
shared/src/states/scoring.rs:65
↓ 1 callersMethodmake_action_place
( &mut self, shared: &mut SharedState, player_id: u64, (x, y): (u32, u32),
shared/src/states/free_placement.rs:38
↓ 1 callersMethodmake_action_place
( &mut self, shared: &mut SharedState, point: Point, )
shared/src/states/scoring.rs:36
↓ 1 callersMethodmake_action_resign
(&mut self, shared: &mut SharedState)
shared/src/states/play.rs:407
↓ 1 callersMethodmake_action_resign
(&mut self, shared: &mut SharedState, player_id: u64)
shared/src/states/scoring.rs:87
↓ 1 callersMethodnext_color
(&mut self, team_color: Color)
shared/src/states/play/traitor.rs:37
↓ 1 callersFunctionon_connect
()
client/src/state.rs:74
↓ 1 callersFunctionpack
(msg: ClientMessage)
client/src/networking.rs:91
↓ 1 callersMethodpause
(&mut self, paused: bool)
shared/src/game/clock.rs:176
↓ 1 callersMethodplace_stone
(&self, x: u32, y: u32)
client/src/state.rs:296
↓ 1 callersMethodplace_stone
( &mut self, shared: &mut SharedState, (x, y): Point, color_placed: Color,
shared/src/states/play.rs:36
↓ 1 callersFunctionread_stdin
Our helper method which will read data from stdin and send it along the sender provided.
repl/src/main.rs:109
↓ 1 callersMethodrender_gl
( &self, canvas: &HtmlCanvasElement, game: &state::GameView, history: Option<&
client/src/board.rs:93
↓ 1 callersMethodsend_message
(&self, session_id: usize, message: Message)
server/src/server.rs:208
↓ 1 callersMethodsend_user_message
(&self, user: u64, message: Message)
server/src/server.rs:215
↓ 1 callersMethodset_nick
(&self, nick: &str)
client/src/state.rs:260
↓ 1 callersMethodset_point
(&mut self, point: (u32, u32), color: u8)
shared/src/game/export.rs:24
↓ 1 callersFunctionset_token
(token: &str)
client/src/state.rs:238
↓ 1 callersMethodset_zen_teams
(&mut self, shared: &mut SharedState)
shared/src/states/play.rs:518
↓ 1 callersFunctionsgf_export
Write a simple single-variation representation of the game. Limited to two colors so has to use markers for the other colors and hidden stones.
shared/src/game/export.rs:62
↓ 1 callersMethodsize
(&mut self, size: (u32, u32))
shared/src/game/export.rs:16
↓ 1 callersMethodsuperko
Superko We only need to scan back capture_count boards, as per Ten 1p's clever idea. The board can't possibly repeat further back than the number of r
shared/src/states/play.rs:206
↓ 1 callersMethodsurrounding_diagonal_points
(&self, p: Point)
shared/src/game/board.rs:63
↓ 1 callersMethodtake_seat
(&self, id: u32)
client/src/state.rs:277
next →1–100 of 204, ranked by callers