-
Notifications
You must be signed in to change notification settings - Fork 1
/
combat.h
26 lines (17 loc) · 684 Bytes
/
combat.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Author: ETA Team *
* Last Modification: 03/11/2016 by Foo*/
#ifndef COMBAT_H_INCLUDED
#define COMBAT_H_INCLUDED
/* Receives XP */
void verificaXP(Player *player, int xpGanho);
/* Check if an item was dropped */
void dropCheck(Enemy *enemy, Map *position);
/* Enemy atacks! */
int enemyAttack(Player *player, Enemy *enemy);
/* Checks if enemy can see the player and make it follow the player */
void playerNear(Nivel *nivel, Enemy *enemy, int playerX, int playerY, int indice);
/* Move enemies */
int enemyAction(Player *player, Nivel *nivel, Enemy *enemies);
/* Player attacks! */
void combate(Player *player, Enemy *enemy, Map *position);
#endif /* COMBAT_H_INCLUDED */