DungeonCrawl
|
Implements outputting to the screen for the map mode. More...
#include "map_output.h"
#include "../../../asciiart/ascii.h"
#include "../../../common.h"
#include "../../../logging/logger.h"
#include "../../io_handler.h"
#include "../common/output_handler.h"
Go to the source code of this file.
Functions | |
void | draw_map_mode (const map_tile_t *arr, const int height, const int width, const vector2d_t anchor, const vector2d_t player_pos) |
Draws the map mode UI based on the given parameters. | |
void | draw_player_info (int x, int y, const vector2d_t player_pos) |
Draws the player information for the map mode. |
Implements outputting to the screen for the map mode.
Definition in file map_output.c.
void draw_map_mode | ( | const map_tile_t * | arr, |
int | height, | ||
int | width, | ||
vector2d_t | anchor, | ||
vector2d_t | player_pos ) |
Draws the map mode UI based on the given parameters.
arr | The map array to be drawn |
height | The height of the map |
width | The width of the map |
anchor | The anchor position of the map mode, defined as the top left corner |
player_pos | The position of the player |
Definition at line 14 of file map_output.c.
void draw_player_info | ( | int | x, |
int | y, | ||
vector2d_t | player_pos ) |
Draws the player information for the map mode.
This function renders player-related information such as health, position, and available commands.
x | The x position of the player info to be drawn |
y | The y position of the player info to be drawn |
player_pos | The current player position |
Definition at line 97 of file map_output.c.