2021-08-08 01:43:26 +02:00
|
|
|
#pragma once
|
|
|
|
|
2021-08-15 03:46:49 +02:00
|
|
|
struct Character {
|
2021-08-08 01:43:26 +02:00
|
|
|
/*the position of the character*/
|
2021-08-06 23:42:49 +02:00
|
|
|
int x, y;
|
2021-08-08 01:43:26 +02:00
|
|
|
/*the name*/
|
2021-08-06 23:42:49 +02:00
|
|
|
char *name;
|
2021-08-08 01:43:26 +02:00
|
|
|
/*the text to say*/
|
2021-08-06 23:42:49 +02:00
|
|
|
char *dialog;
|
|
|
|
};
|
|
|
|
|
2021-08-15 03:10:05 +02:00
|
|
|
/*draw the dialog of a specified character*/
|
2021-08-15 03:46:49 +02:00
|
|
|
void draw_dialog(struct Character *character);
|
2021-08-15 03:10:05 +02:00
|
|
|
/*find the character using the player's position*/
|
2021-08-15 03:46:49 +02:00
|
|
|
struct Character* get_character_xy(struct Character *characters[], int x, int y);
|
2021-08-15 03:10:05 +02:00
|
|
|
/*get the characters for a specified map*/
|
2021-08-15 03:46:49 +02:00
|
|
|
struct Character** get_map_characters(int id);
|