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
24
src/combat.h
Normal file
24
src/combat.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef COMBAT_H
|
||||
#define COMBAT_H
|
||||
|
||||
#include "common.h"
|
||||
|
||||
// Get last combat message
|
||||
const char *combat_get_last_message(void);
|
||||
|
||||
// Get last damage amount
|
||||
int combat_get_last_damage(void);
|
||||
|
||||
// Was last damage to player?
|
||||
int combat_was_player_damage(void);
|
||||
|
||||
// Reset combat event
|
||||
void combat_reset_event(void);
|
||||
|
||||
// Player attacks enemy
|
||||
void combat_player_attack(Player *p, Enemy *e);
|
||||
|
||||
// Enemy attacks player
|
||||
void combat_enemy_attack(Enemy *e, Player *p);
|
||||
|
||||
#endif // COMBAT_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue