DungeonCrawl
|
Implements outputting to the screen for the stats mode. More...
#include "stats_output.h"
#include "../../../character/character.h"
#include "../../../character/level.h"
#include "../../../local/local_handler.h"
#include "../../../logging/logger.h"
#include "../../../memory/memory_management.h"
#include "../../../stats/local/stats_mode_local.h"
#include "../../io_handler.h"
#include "../common/output_handler.h"
Go to the source code of this file.
Functions | |
int | init_stats_mode () |
Initialize the stats mode. | |
void | render_stats_window (const character_t *player) |
Render the stats window. | |
void | draw_stats_menu (const char *title, const char **options, int option_count, int selected_index, const char *footer) |
Draw the stats menu. | |
void | draw_stats_log (const char *message) |
Display a message in the stats log. | |
void | shutdown_stats_mode () |
Shutdown the stats mode. |
Implements outputting to the screen for the stats mode.
Definition in file stats_output.c.
void draw_stats_log | ( | const char * | message | ) |
Display a message in the stats log.
Shows a message in the stats window log area.
message | The message to display |
Definition at line 112 of file stats_output.c.
void draw_stats_menu | ( | const char * | title, |
const char ** | options, | ||
int | option_count, | ||
int | selected_index, | ||
const char * | footer ) |
Draw the stats menu.
Renders a menu for the stats window with options and a selected item.
title | Menu title |
options | Array of option strings |
option_count | Number of options |
selected_index | Currently selected option index |
footer | Text to display at the bottom of the menu |
Definition at line 98 of file stats_output.c.
int init_stats_mode | ( | void | ) |
Initialize the stats mode.
Allocates necessary resources and initializes the stats mode.
Definition at line 20 of file stats_output.c.
void render_stats_window | ( | const character_t * | player | ) |
Render the stats window.
Displays the player's statistics including health, mana, attributes, level, experience, and equipment.
player | Pointer to the player character |
Definition at line 42 of file stats_output.c.
void shutdown_stats_mode | ( | void | ) |
Shutdown the stats mode.
Cleans up resources used by the stats mode.
Definition at line 120 of file stats_output.c.