37 lines
1.1 KiB
C
37 lines
1.1 KiB
C
#ifndef RENDER_H
|
|
#define RENDER_H
|
|
|
|
#include "common.h"
|
|
|
|
// Render the map tiles
|
|
void render_map(const Map *map);
|
|
|
|
// Render the player
|
|
void render_player(const Player *p);
|
|
|
|
// Render all enemies
|
|
void render_enemies(const Enemy *enemies, int count);
|
|
|
|
// Render all items
|
|
void render_items(const Item *items, int count);
|
|
|
|
// Render UI overlay
|
|
void render_ui(const Player *p, Font *font);
|
|
|
|
// Render action log (bottom left corner)
|
|
void render_action_log(const char log[5][128], int count, int head, Font *font);
|
|
|
|
// Render inventory selection overlay
|
|
void render_inventory_overlay(const Player *p, int selected, Font *font);
|
|
|
|
// Render floating damage text
|
|
void render_floating_texts(FloatingText *texts, int count, int shake_x, int shake_y);
|
|
|
|
// Render end screen (victory or death) with stats breakdown
|
|
void render_end_screen(int is_victory, int kills, int items, int damage_dealt, int damage_taken, int crits,
|
|
int times_hit, int potions, int floors, int turns, int score, Font *font);
|
|
|
|
// Render a message popup
|
|
void render_message(const char *message, Font *font);
|
|
|
|
#endif // RENDER_H
|