Handling a basic input system

This commit is contained in:
Anonymus Raccoon
2020-04-16 16:38:03 +02:00
23 changed files with 418 additions and 146 deletions
+3
View File
@@ -35,6 +35,7 @@ const struct dialog_holder dialog_holder;
struct dialog_manager {
gc_system base;
int dialog_id;
int input_id;
int current_line;
struct dialog_line *current_text;
struct dialog_holder *current_dialog;
@@ -43,4 +44,6 @@ struct dialog_manager {
const struct dialog_manager dialog_manager;
void dialog_next(gc_engine *engine);
#endif //MY_RPG_DIALOG_HOLDER_H
+2 -1
View File
@@ -9,7 +9,8 @@
typedef enum display_type
{
SELECT_TILE_DISPLAY
SELECT_TILE_DISPLAY,
XP_DISPLAY
} display_type_enum;
struct game_display
+28
View File
@@ -0,0 +1,28 @@
/*
** EPITECH PROJECT, 2019
** Gamacon
** File description:
** xp_component
*/
#ifndef MY_RPG_XP_COMPONENT_H
#define MY_RPG_XP_COMPONENT_H
#include <stdbool.h>
#include "component.h"
struct xp_component
{
gc_component base;
int xp;
bool full;
};
void xp_add(struct xp_component *this, gc_engine *engine, \
unsigned int amount);
void xp_rem(struct xp_component *this, gc_engine *engine, \
unsigned int amount);
extern const struct xp_component xp_component;
#endif //MY_RPG_HEALTH_COMPONENT_H