mirror of https://github.com/bgiraudr/Adoranda.git
20 lines
536 B
C
20 lines
536 B
C
#pragma once
|
|
#include "map.h"
|
|
#include "game.h"
|
|
|
|
struct Talkable {
|
|
/*the position of the tile*/
|
|
int x, y;
|
|
/*the name*/
|
|
char *name;
|
|
/*the text to display*/
|
|
char *text;
|
|
};
|
|
|
|
/*draw the dialog of a specified talkable tile*/
|
|
void draw_dialog(struct Game *game);
|
|
/*find the talkable tile using the player's position*/
|
|
struct Talkable* get_dialog_xy(struct Map *map, int x, int y);
|
|
char *word_boundary_before(char *str, char *limit);
|
|
char *skip_spaces(char *str);
|
|
void format_text(int x, int y, const int color, char const *format, ...); |