#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); // Perform a single action for an enemy (attack if adjacent, otherwise move) void enemy_act(Enemy *e, Player *p, Map *map, Enemy *all_enemies, int enemy_count); // Check if position has an enemy int is_enemy_at(const Enemy *enemies, int count, int x, int y); #endif // ENEMY_H