render_functions module¶
Module for render functions
- render_functions.get_names_at_location(x: int, y: int, game_map: GameMap) str¶
Get names at location Search for entities at location
- Parameters
x (int) – x coordinate
y (int) – y coordinate
game_map (GameMap) – game map to get names from
- Returns
Entity names at location
- Return type
str
- render_functions.render_bar(console: Console, current_value: int, maximum_value: int, total_width: int) None¶
Function to render player’s health bar
- Parameters
console (Console) – Console to render to
current_value (int) – Current life value
maximum_value (int) – Maximum life value
total_width (int) – Total bar
- render_functions.render_dungeon_level(console: Console, dungeon_level: int, location: Tuple[int, int])¶
Render the current floor/level of the dungeon
- Parameters
console (Console) – Console to render to
dungeon_level (int) – What level of the dungeon is the player on
location (Tuple[int, int]) – Location to print dungeon level
- render_functions.render_names_at_mouse_location(console: Console, x: int, y: int, engine: Engine) None¶
Render name at mouse location Gets names at mouse location and prints on x, y
- Parameters
console (Console) – Console to render to
x (int) – x coordinate
y (int) – y coordinate
engine (Engine) – Engine the mouse exists on