From 3b3ed255a05eb0a0a3ed2886c010b952c1b1bd8c Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 4 Sep 2016 17:59:59 +0200 Subject: create a structure battle and make use of it Signed-off-by: Olivier Gayot --- battle.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 battle.h (limited to 'battle.h') diff --git a/battle.h b/battle.h new file mode 100644 index 0000000..962f4b3 --- /dev/null +++ b/battle.h @@ -0,0 +1,17 @@ +#ifndef BATTLE_H +#define BATTLE_H + +#include "players.h" + +struct battle_t { + struct team_t *t1; + struct team_t *t2; + + SDL_Surface *background; +}; + +int battle_init(struct battle_t *battle, struct team_t *t1, struct team_t *t2); +int battle_run(struct battle_t *battle); +void battle_close(struct battle_t *battle); + +#endif /* BATTLE_H */ -- cgit v1.2.3