2021-05-30 21:33:32 +02:00
|
|
|
#ifndef _EPIDEMIC_ENGINE_H
|
|
|
|
#define _EPIDEMIC_ENGINE_H
|
|
|
|
|
2021-05-31 13:36:24 +02:00
|
|
|
// humans per case of the epidemic grid
|
|
|
|
#define HUMAN_PER_CASE 1000000
|
|
|
|
|
2021-05-30 21:33:32 +02:00
|
|
|
// count : return an int *counter[4] of the form {healthy, infected, healed, dead}
|
2021-05-31 09:52:58 +02:00
|
|
|
int * count(const int epidemic_grid[64][128], int counter[4]);
|
2021-05-30 21:33:32 +02:00
|
|
|
|
|
|
|
// can_become_infected : return 0 if the case (i, j) isn't infectable, 1 else
|
2021-05-31 09:52:58 +02:00
|
|
|
int can_become_infected(const int epidemic_grid[64][128], const int i, const int j);
|
2021-05-30 21:33:32 +02:00
|
|
|
|
2021-05-31 15:39:44 +02:00
|
|
|
// epidemic_simulation : simulate the propagation of the virus
|
|
|
|
void epidemic_simulation(struct game *current_game);
|
|
|
|
|
2021-05-30 21:33:32 +02:00
|
|
|
#endif /* _EPIDEMIC_ENGINE_H */
|