breakhack/src/stats.h

18 lines
384 B
C
Raw Normal View History

#ifndef STATS_H_
#define STATS_H_
2017-12-19 19:42:05 +01:00
typedef struct Stats_t {
int maxhp; /* Max hitpoints */
int hp; /* Current hit points */
int dmg; /* Damage modifier */
int atk; /* Attack rating */
int def; /* Defence rating */
unsigned int speed; /* Speed */
unsigned int lvl; /* Level */
} Stats;
2017-12-15 15:03:29 +01:00
unsigned int
2017-12-15 08:08:45 +01:00
stats_fight(Stats *attacker, Stats *defender);
#endif // STATS_H_