aboutsummaryrefslogtreecommitdiff
path: root/src/engine/enemy.h
blob: c8a3f204b04904355976b695007f5f9da8ee559c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once
#include "player_controller.h"
#include "engine/sprite_controller.h"
#include "engine/enemy_ai.h"
#include "types.h"
#include "input.h"


/** @brief calculates all the given enemies positions*/
void hh_multiple_enemies(hh_entity* enemies, hh_entity player, vec_cor cam_pos, int total_enemies);

/** @brief checks if the enemy has zero hp else it takes hp from the enemy */
void hh_enemy_death_check(hh_entity* enemy);

/** @brieg all the given enemies get controlled if there hit and than calculates the dmg */
void hh_solve_hitted_enemies(hh_entity* enemies, int total_enemies);