Fixing attack timings

This commit is contained in:
Anonymus Raccoon
2020-04-27 17:59:13 +02:00
parent a2ea70f569
commit 2491d6a47c
7 changed files with 57 additions and 30 deletions
+3 -2
View File
@@ -20,6 +20,7 @@ struct dialog_line {
char *text;
int input_count;
struct dialog_input *inputs;
void (*callback)(gc_engine *engine);
};
struct dialog_holder {
@@ -46,8 +47,8 @@ struct dialog_manager {
const struct dialog_manager dialog_manager;
void dialog_next(gc_engine *engine);
void dialog_add_line(struct dialog_holder *this, char *name, char *text, \
struct dialog_input *inputs);
struct dialog_line *dialog_add_line(struct dialog_holder *this, char *name, \
char *text, struct dialog_input *inputs);
void show_dialog_if_hidden(gc_engine *engine);
#endif //MY_RPG_DIALOG_HOLDER_H
+2
View File
@@ -9,6 +9,7 @@
#ifndef MY_RPG_COMBAT_MANAGER_H
#define MY_RPG_COMBAT_MANAGER_H
#include <components/attack_component.h>
#include "system.h"
#include "components/combat_holder.h"
#include "components/dialog_holder.h"
@@ -26,6 +27,7 @@ struct combat_manager {
gc_system base;
gc_scene *game_scene;
struct enemy *current_enemy;
struct attack_holder *next_enemy_attack;
enum combat_state state;
};