1
0
Fork 0
forked from NotAShelf/rogged

initial commit

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ie3b66d17f6f660c9b9a719210bd86f9f6a6a6964
This commit is contained in:
raf 2026-03-17 23:34:37 +03:00
commit b381e2efbd
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
29 changed files with 1633 additions and 0 deletions

15
src/enemy.h Normal file
View file

@ -0,0 +1,15 @@
#ifndef ENEMY_H
#define ENEMY_H
#include "common.h"
// Spawn enemies for a floor
void enemy_spawn(Enemy enemies[], int *count, Map *map, Player *p, int floor);
// Update all enemy AI
void enemy_update_all(Enemy enemies[], int count, Player *p, Map *map);
// Check if position has an enemy
int is_enemy_at(Enemy *enemies, int count, int x, int y);
#endif // ENEMY_H