MCPcopy Create free account

hub / github.com/Hopson97/Asciimon / functions

Functions79 in github.com/Hopson97/Asciimon

↓ 9 callersMethoddraw_string
Draws a string to a render section. Note: The function does not handle the length of strings going outside of the render section (for now?)
src/graphics/renderer.rs:157
↓ 6 callersMethodclear_section
Clears just a single section of the screen
src/graphics/renderer.rs:66
↓ 5 callersMethodadd_render_section
Adds a section to the UI to draw things to
src/graphics/renderer.rs:49
↓ 5 callersMethodposition
(&self)
src/game/player.rs:18
↓ 4 callersMethoddraw_line_v
Draws a solid vertical line
src/graphics/renderer.rs:96
↓ 4 callersMethodwrite
Writes a string to the console interface
src/game/console.rs:64
↓ 3 callersMethodcreate_border
Creates a border around the rendering section area
src/graphics/renderer.rs:106
↓ 3 callersMethodmove_player
Moves player ~1 step Returns true if the player moved, false if not (eg collision or other event occurs)
src/game/game_state/state_explore.rs:74
↓ 3 callersMethodset_cursor_render_section
* Public drawing interface */ Sets the location of the cursor relative to the top-left of a render section
src/graphics/renderer.rs:143
↓ 3 callersMethodwrite_with_colour
Writes a string to console interface... With colour!
src/game/console.rs:69
↓ 2 callersMethodadd_line
(&mut self, line: &str)
src/game/console.rs:35
↓ 2 callersMethodansi_string
(&self, id: u8)
src/graphics/colour.rs:35
↓ 2 callersFunctionclamp
(value: T, low: T, high: T)
src/util/maths.rs:3
↓ 2 callersMethodclear
Clears the entire window
src/graphics/renderer.rs:61
↓ 2 callersFunctionclear_terminal
()
src/main.rs:8
↓ 2 callersMethoddraw
(&self, index: usize, renderer: &Renderer)
src/game/console.rs:39
↓ 2 callersMethoddraw_line_h
Draws a solid horizontal line
src/graphics/renderer.rs:86
↓ 2 callersFunctionflush_stdout
()
src/util/mod.rs:8
↓ 2 callersMethodget_tile
(&self, world_position: Vector2D<i32>)
src/game/world/mod.rs:73
↓ 2 callersMethodhandle_move_player
Attempts to the move the player's local position by x/y amount in the x/y direction
src/game/game_state/state_explore.rs:35
↓ 2 callersMethodhandle_move_player_step
Cycles through a buffer of move commands one by one and steps the plyer #Example >wwwssdd Moves player 3 left, then 2 down, then 2 right. Collision wi
src/game/game_state/state_explore.rs:58
↓ 2 callersFunctionload_section_line
Just so that I don't have to repeat writing match with "end" over and over
src/game/world/chunk_loader.rs:118
↓ 2 callersMethodmove_position
(&mut self, movement: Vector2D<i32>)
src/game/player.rs:14
↓ 2 callersMethodnum_texts
(&self)
src/game/console.rs:51
↓ 1 callersFunctionadd_chunk_position
Adds the world position of a chunk to a local world position to that chunk
src/game/world/chunk_loader.rs:154
↓ 1 callersMethodansi_text_string
(&self)
src/graphics/colour.rs:26
↓ 1 callersMethoddraw_line
Draws a single line of the map,
src/game/world/chunk.rs:87
↓ 1 callersMethodexecute_command
( &mut self, command_args: &[&str], console: &mut Console, )
src/game/game_state/state_explore.rs:128
↓ 1 callersFunctionextract_pos_from_path
Extracts X/Y from a chunk file Eg, '2_5.chunk' as the path_string param would return x: 2, y: 5
src/game/world/chunk_loader.rs:44
↓ 1 callersMethodget_portal_at
(&self, world_position: Vector2D<i32>)
src/game/world/mod.rs:93
↓ 1 callersMethodis_portal_at
(&self, world_position: Vector2D<i32>)
src/game/world/mod.rs:89
↓ 1 callersFunctionload_chunk
Reads a chunk file and extracts the data from it
src/game/world/chunk_loader.rs:57
↓ 1 callersFunctionmap_file_name
Gets map file from from x/y coords
src/game/world/chunk_loader.rs:113
↓ 1 callersFunctionpath_exists
on tin
src/game/world/chunk_loader.rs:108
↓ 1 callersMethodportals
(&self)
src/game/world/chunk_loader.rs:37
↓ 1 callersMethodrender
(&mut self, renderer: &Renderer, centre_position: Vector2D<i32>)
src/game/world/mod.rs:60
↓ 1 callersMethodrender_data
(&self)
src/graphics/sprite.rs:35
↓ 1 callersMethodrun
(&mut self)
src/game/mod.rs:77
↓ 1 callersMethodskip_line
Writes an empty line
src/game/console.rs:94
↓ 1 callersMethodtick
(&mut self)
src/game/mod.rs:98
↓ 1 callersMethodtile_data
(&self)
src/game/world/chunk_loader.rs:33
↓ 1 callersMethodwrite_instructions
(&self, console: &mut Console)
src/game/game_state/state_explore.rs:96
Methodadd
(self, other: Self)
src/util/vector.rs:37
Methodadd_assign
(&mut self, other: Self)
src/util/vector.rs:71
Methodansi_bg_string
(&self)
src/graphics/colour.rs:30
Methodcast
(self)
src/util/vector.rs:23
Methoddraw
Draws the player and the overworld etc
src/game/game_state/state_explore.rs:171
Methoddraw_logo
(renderer: &Renderer)
src/game/mod.rs:158
Methoddraw_sprite
Draws a sprite (duh)
src/graphics/renderer.rs:172
Methodfmt
(&self, f: &mut fmt::Formatter)
src/util/vector.rs:29
Methodget_tile
(&self, x: usize, y: usize)
src/game/world/chunk.rs:124
Methodget_user_input
(renderer: &Renderer)
src/game/mod.rs:135
Functionhandle_map_line
Reads and extracts a line from the map section of the .chunk file
src/game/world/chunk_loader.rs:129
Functionhandle_portal_line
Reads and extracts a line from the portal section of the .chunk file
src/game/world/chunk_loader.rs:145
Functionmain
()
src/main.rs:12
Methodmul
(self, rhs: f32)
src/graphics/colour.rs:54
Methodmul
(self, other: T)
src/util/vector.rs:55
Methodnew
(colour: Colour)
src/game/console.rs:28
Methodnew
()
src/game/player.rs:8
Methodnew
()
src/game/world/mod.rs:24
Methodnew
()
src/game/world/chunk_loader.rs:24
Methodnew
(pos: Vector2D<i32>, tile_data: Vec<Vec<char>>)
src/game/world/chunk.rs:35
Methodnew
()
src/game/game_state/state_explore.rs:26
Methodnew
(r: u8, g: u8, b: u8)
src/graphics/colour.rs:22
Methodnew
()
src/graphics/sprite.rs:9
Methodnew
(start_point: Vector2D<i32>, size: Vector2D<i32>)
src/graphics/renderer.rs:26
Methodnew
(x: T, y: T)
src/util/vector.rs:19
Methodparse_step
This is for the player move input, by converting X/Y direction string to a integral value
src/game/game_state/state_explore.rs:134
Methodrender
(&self, renderer: &Renderer, centre_position: Vector2D<i32>)
src/game/world/chunk.rs:47
Methodrun_game
()
src/game/mod.rs:52
Methodset_bg_colour
Set the background colour for text printed to the terminal
src/graphics/renderer.rs:130
Methodset_cursor_location
Sets cursor location in the renderer
src/graphics/renderer.rs:135
Methodset_text_colour
Set the foreground colour for text printed to the terminal
src/graphics/renderer.rs:125
Methodsize
(&self)
src/graphics/renderer.rs:44
Methodsquare
(width: i32, height: i32, fill: char)
src/graphics/sprite.rs:23
Methodsub
(self, other: Self)
src/util/vector.rs:46
Methodsub_assign
(&mut self, other: Self)
src/util/vector.rs:79
Methodwith_capacity
(capacity: usize)
src/graphics/sprite.rs:16
Methodworld_to_chunk_position
(world_position: Vector2D<i32>)
src/game/world/mod.rs:82