aboutsummaryrefslogtreecommitdiff
path: root/src/engine/enemy.h
diff options
context:
space:
mode:
authorNielsCoding <48092678+heavydemon21@users.noreply.github.com>2023-04-04 15:25:34 +0200
committerNielsCoding <48092678+heavydemon21@users.noreply.github.com>2023-04-04 15:25:34 +0200
commit854a80001b9798d1454e4308e4efba96431e44d8 (patch)
tree8e023b13df43b3aaef5241e59bcbe5c90b1a2f8a /src/engine/enemy.h
parentf6c1eb582ac44b92c86816352bd56da5a6f4f1b5 (diff)
bullet/player/enemy/gameplay
bullet only needs different directions player is done enemy needs ai(Bjorn) gameplay may need some finetuning
Diffstat (limited to 'src/engine/enemy.h')
-rw-r--r--src/engine/enemy.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/engine/enemy.h b/src/engine/enemy.h
new file mode 100644
index 0000000..80498f5
--- /dev/null
+++ b/src/engine/enemy.h
@@ -0,0 +1,18 @@
+#pragma once
+#include "player_controller.h"
+#include "engine/sprite_controller.h"
+#include "types.h"
+#include "input.h"
+
+/** @brief updates a single enemy locations TODO: Bjorn sets functions in here*/
+void hh_update_enemy(hh_entity* , vec_cor );
+
+/** @brief calculates all the given enemies positions*/
+void hh_multiple_enemies( vec_cor cam_pos, hh_entity* enemies, 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);
+