summaryrefslogtreecommitdiff
path: root/include/players.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2024-01-07 12:24:38 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2024-01-07 12:24:38 +0100
commit33f39cd8ef08db0007c9690992bad99edbaa1795 (patch)
treee1e48263aaa124ca826b4c5984e3511e56bde70f /include/players.h
parent1f3e6604cf2df6ae11944f99f939b8b697ebd4d9 (diff)
zombie hit player
Diffstat (limited to 'include/players.h')
-rw-r--r--include/players.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/players.h b/include/players.h
index 7607788..b9b5710 100644
--- a/include/players.h
+++ b/include/players.h
@@ -44,6 +44,8 @@ typedef struct t_point_animation
typedef struct t_player {
u32 id;
bool active;
+ s32 health;
+ s32 max_health;
float sec_since_last_shot;
player_interact_state interact_state;
float sec_since_interact_state_change;
@@ -92,6 +94,7 @@ object check_if_player_collided_with_object(player p);
float get_player_size(platform_window* window);
void move_user(platform_window* window, u32 id, protocol_move_type move, float delta);
void update_players_server();
+void hurt_player(u32 id, u32 damage);
void spawn_player(u32 id, network_client client);
bool player_has_old_session(u32 id);
void rejoin_player(u32 id, network_client client);