|
@ -5,12 +5,18 @@ |
|
|
|
|
|
|
|
|
typedef struct { |
|
|
typedef struct { |
|
|
int health; |
|
|
int health; |
|
|
|
|
|
int damage; |
|
|
} enemy; |
|
|
} enemy; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool playerAlive(int health); |
|
|
|
|
|
int playerHealth(int health, int damage); |
|
|
|
|
|
|
|
|
//setEnemyHealth(&enemy.health, health); |
|
|
//setEnemyHealth(&enemy.health, health); |
|
|
void *setEnemyHealth(int *num, int health); |
|
|
void *setEnemyHealth(int *num, int health); |
|
|
int getEnemyHealth(enemy enemy); |
|
|
int getEnemyHealth(enemy enemy); |
|
|
bool playerAlive(int health); |
|
|
|
|
|
int playerHealth(int health, int damage); |
|
|
|
|
|
|
|
|
//setEnemyDamage(&enemy.damage, damage); |
|
|
|
|
|
void *setEnemyDamage(int *num, int damage); |
|
|
|
|
|
int getEnemyDamage(enemy enemy); |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |