17 lines
607 B
C
17 lines
607 B
C
|
|
#ifndef LOGIC_H
|
||
|
|
#define LOGIC_H
|
||
|
|
|
||
|
|
#include "objects.h"
|
||
|
|
#include "utils.h"
|
||
|
|
#include <ncurses.h>
|
||
|
|
|
||
|
|
/* Logic functions used by the game loop */
|
||
|
|
void update_bullets(struct game_obj bullets[]);
|
||
|
|
void handle_collisions(struct game_obj bullets[], struct game_obj enemies[], struct status *game_status, WINDOW *win);
|
||
|
|
void spawn_enemies(struct game_obj enemies[], int width);
|
||
|
|
void update_enemies(struct game_obj enemies[], struct status *game_status, int height, WINDOW *win);
|
||
|
|
|
||
|
|
void count_bullets(const struct game_obj bullets[], int *bullet_attivi, int *next_bullet, struct status *game_status);
|
||
|
|
|
||
|
|
#endif /* LOGIC_H */
|