forked from NotAShelf/rogged
initial commit
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Ie3b66d17f6f660c9b9a719210bd86f9f6a6a6964
This commit is contained in:
commit
b381e2efbd
29 changed files with 1633 additions and 0 deletions
15
src/enemy.h
Normal file
15
src/enemy.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue