MCPcopy Create free account

hub / github.com/Canop/mazter / functions

Functions115 in github.com/Canop/mazter

↓ 21 callersMethodset
( &mut self, p: Pos, value: T, )
src/pos_map.rs:30
↓ 16 callersMethodget
( &self, p: Pos, )
src/pos_map.rs:24
↓ 15 callersMethodis_room
( &self, p: Pos, )
src/maze.rs:101
↓ 10 callersMethodcontains
( &self, ach: Achievement, )
src/achievements.rs:120
↓ 10 callersFunctiontwist
Return a pseudo-pseudo-random number, capped and reproductible (seed can be eg the level)
src/specs.rs:48
↓ 8 callersFunctiondraw_bicolor_horizontal
Draw a cell with two colors, one for the left part, one for the right part
src/cell_draw.rs:26
↓ 8 callersFunctiondraw_bicolor_vertical
Draw a cell with two colors, one for the top part, one for the bottom part
src/cell_draw.rs:44
↓ 8 callersMethodis_alternate
(&self)
src/renderer.rs:32
↓ 8 callersMethodis_empty
(&self)
src/events.rs:89
↓ 7 callersMethodcolor
( &self, nature: Nature, )
src/skin.rs:26
↓ 7 callersMethodvisible_nature
While a cell can contain several "things", one of them is more visible and determines how it looks
src/maze.rs:112
↓ 5 callersMethodis_wall
( &self, p: Pos, )
src/maze.rs:95
↓ 5 callersMethodspaces
( &self, w: &mut W, n: usize, )
src/renderer.rs:354
↓ 4 callersFunctionfind_astar
Find a short path between start and goal using A*. The returned path contains the goal but not the start.
src/path.rs:9
↓ 4 callersMethodis_won
(&self)
src/maze.rs:89
↓ 4 callersMethodkill_player
remove a life and teleport the player
src/maze.rs:597
↓ 4 callersMethodreal_color
( &self, nature: Nature, )
src/skin.rs:39
↓ 3 callersMethodcenter
(&self)
src/maze.rs:134
↓ 3 callersMethodclear
(&mut self)
src/events.rs:92
↓ 3 callersMethodend_player_turn
move the world
src/maze.rs:667
↓ 3 callersMethodidx
( self, p: Pos, )
src/dim.rs:31
↓ 3 callersMethodmaze_to_screen_double_size
Assuming the layout is in double_sizes mode, return the leftest cell for tye maze position
src/layout.rs:44
↓ 3 callersMethodwrite
Render the maze (with title and lives count) for the TUI, assuming a buffered writer in an alternate
src/renderer.rs:367
↓ 3 callersMethodwrite
(&self)
src/achievements.rs:107
↓ 2 callersMethodachievement
(&self)
src/achievements.rs:61
↓ 2 callersMethodadd
( &mut self, ach: Achievement, )
src/achievements.rs:101
↓ 2 callersMethodadd_monster_move
( &mut self, start: Pos, dir: Dir, mut dest_background_nature: Nature, )
src/events.rs:60
↓ 2 callersFunctionbuild
build a maze and print it on stdout
src/main.rs:81
↓ 2 callersMethoddir_to
Assuming that other is in one of the 4 directions, return the direction (will return something bad if it's eg the same pos)
src/pos.rs:80
↓ 2 callersMethodgrow
( &mut self, max: usize, )
src/maze.rs:495
↓ 2 callersMethodhash
get the hash according to FNV
src/achievements.rs:35
↓ 2 callersMethodinside_neighbours
(not counting the border)
src/maze.rs:445
↓ 2 callersMethodis_lost
(&self)
src/maze.rs:92
↓ 2 callersMethodlayout
( &self, maze: &Maze, )
src/renderer.rs:36
↓ 2 callersMethodneighbours_8
neighbour cells, including diagonals
src/maze.rs:413
↓ 2 callersMethodopen
( &mut self, p: Pos, )
src/maze.rs:137
↓ 2 callersMethodpos_in_dir
( &self, pos: Pos, dir: Dir, )
src/maze.rs:154
↓ 2 callersMethodremove
( &mut self, p: Pos, )
src/pos_map.rs:40
↓ 2 callersMethodtry_move
Try moving the player in the given direction, adding both this move and the monster move to the provided moves vector.
src/maze.rs:192
↓ 1 callersMethodadd_cuts
( &mut self, n: usize, )
src/maze.rs:361
↓ 1 callersMethodadd_player_move
( &mut self, start: Pos, dir: Dir, dest_background_nature: Nature, )
src/events.rs:44
↓ 1 callersMethodadd_potions
( &mut self, n: usize, )
src/maze.rs:377
↓ 1 callersMethodadd_teleport
( &mut self, start: Pos, possible_jumps: Vec<Pos>, arrival: Pos, )
src/events.rs:32
↓ 1 callersMethodanimate_events
Animate moves. Return true when the animation occured, false if it didn't. When there was no animation, this function is instant and the animation ma
src/renderer.rs:216
↓ 1 callersMethodcan_place_exit
(&self)
src/maze.rs:233
↓ 1 callersMethodchange_unreachable_rooms_into_invisible_walls
Due to cuts added after growing, some rooms may be unreachable in case of interrupted growing. This function makes them invisble walls to ensure we ca
src/maze.rs:510
↓ 1 callersMethodcmp
( &self, other: &ValuedPos, )
src/pos.rs:132
↓ 1 callersMethoddim
( self, level: usize, )
src/specs.rs:32
↓ 1 callersMethoddraw_pos_move_step_double_size
Draw one of the step (in [0..16] of the animation) of a moving pos when the maze is rendered in double size. The maze is supposed already rendered, o
src/renderer.rs:156
↓ 1 callersMethoddraw_teleport_double_size
( &self, w: &mut W, layout: &Layout, teleport: &Teleport, )
src/renderer.rs:135
↓ 1 callersMethoddraw_teleport_half_size
( &self, w: &mut W, layout: &Layout, maze: &Maze, teleport: &Teleport,
src/renderer.rs:85
↓ 1 callersMethodempty_rooms
(&self)
src/maze.rs:319
↓ 1 callersMethodenterable_neighbours
( &self, p: Pos, )
src/maze.rs:464
↓ 1 callersMethodgrow_invisible_walls
Make some walls invisible, for cosmetic reasons Warning: don't call this before the maze is fully grown and the exit has been set.
src/maze.rs:532
↓ 1 callersMethodhighlight_path_to_exit
( &mut self, from: Option<Pos>, )
src/maze.rs:582
↓ 1 callersMethodin_dir
( self, dir: Dir, )
src/pos.rs:94
↓ 1 callersMethodis_not_empty
tells whether there are not default values Warning: this function is slow (it could be optimized with a counter but there's no need today in mazter)
src/pos_map.rs:61
↓ 1 callersMethodis_valid
(&self)
src/achievements.rs:64
↓ 1 callersMethodlen_to_player
( &self, p: Pos, )
src/maze.rs:299
↓ 1 callersMethodmaze_to_screen
return the canonical cell position from a maze position. If the layout is double_sizes, this is the leftest one of the two cells which make the posit
src/layout.rs:20
↓ 1 callersFunctionplay
play the game, runing level after level, in an alternate terminal
src/main.rs:63
↓ 1 callersMethodplayer
(&self)
src/maze.rs:86
↓ 1 callersMethodplayer_moved
( &mut self, events: &mut EventList, )
src/maze.rs:624
↓ 1 callersMethodpossible_cuts
(&self)
src/maze.rs:335
↓ 1 callersMethodpossible_exits
border walls which, when open, make an exit
src/maze.rs:253
↓ 1 callersMethodpossible_jumps
( &self, p: Pos, )
src/maze.rs:273
↓ 1 callersFunctionprint
display the hall of fame
src/hof.rs:15
↓ 1 callersFunctionrun
Run the game, assuming the terminal is already in alternate mode
src/run.rs:24
↓ 1 callersMethodseek_open
(&mut self)
src/maze.rs:210
↓ 1 callersMethodset_start
( &mut self, player: Pos, )
src/maze.rs:69
↓ 1 callersMethodstart
(&self)
src/maze.rs:66
↓ 1 callersMethodstatus
(&self)
src/maze.rs:77
↓ 1 callersMethodstep_dir_to
Return one of the 4 directions if the two positions are just one step away
src/pos.rs:54
↓ 1 callersMethodtry_make_exit
(&mut self)
src/maze.rs:307
↓ 1 callersMethodverticalize
(&mut self)
src/dim.rs:37
↓ 1 callersMethodwrite_game_header
( &self, w: &mut W, layout: &Layout, maze: &Maze, )
src/renderer.rs:43
↓ 1 callersMethodwrite_game_status
( &self, w: &mut W, layout: &Layout, maze: &Maze, )
src/renderer.rs:69
↓ 1 callersMethodwrite_maze_double_size
the rendering when the maze is very small and we can afford using 2 characters side by side for each game pos
src/renderer.rs:270
↓ 1 callersMethodwrite_maze_half_size
( &self, w: &mut W, layout: &Layout, maze: &Maze, )
src/renderer.rs:305
Methodadvance
save the achievement and return the first following level not won
src/achievements.rs:137
Methodbuild
()
src/skin.rs:15
Methodcan_play
( user: &str, target: usize, )
src/achievements.rs:159
Methodclear
(&mut self)
src/pos_map.rs:37
Methodclear_highlight
(&mut self)
src/maze.rs:568
Methodcompute
( maze_dim: Dim, player_pos: Option<Pos>, display: Display, )
src/layout.rs:52
Methoddim
( a: Pos, b: Pos, )
src/pos.rs:19
Methodeq
( &self, other: &ValuedPos, )
src/pos.rs:123
Methodeuclidian_distance
( a: Pos, b: Pos, )
src/pos.rs:34
Methodfirst_not_won
(user: &str)
src/achievements.rs:149
Methodfor_level
(level: usize)
src/specs.rs:59
Methodfor_terminal_build
()
src/specs.rs:174
Methodfrom
( pos: Pos, score: i32, )
src/pos.rs:114
Methodfrom
(specs: Specs)
src/maze.rs:719
Methodfrom
(ach: Achievement<'s>)
src/achievements.rs:52
Methodgive_up
(&mut self)
src/maze.rs:107
Methodhighlight_start
(&mut self)
src/maze.rs:577
Methodhof
()
src/achievements.rs:209
Methodis_empty
Warning: this function is slow
src/pos_map.rs:53
Functionmain
()
src/main.rs:104
Methodmanhattan_distance
( a: Pos, b: Pos, )
src/pos.rs:40
next →1–100 of 115, ranked by callers