mirror of
https://github.com/zoriya/ForecastingVillage.git
synced 2026-06-03 02:51:45 +00:00
Handling a basic input system
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
|
||||
typedef enum display_type
|
||||
{
|
||||
SELECT_TILE_DISPLAY
|
||||
SELECT_TILE_DISPLAY,
|
||||
XP_DISPLAY
|
||||
} display_type_enum;
|
||||
|
||||
struct game_display
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user