mirror of https://github.com/bgiraudr/Adoranda.git
19 lines
462 B
C
19 lines
462 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); |