summaryrefslogtreecommitdiff
path: root/include/players.h
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-12-15 12:59:19 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-12-15 12:59:19 +0100
commit7b956089e6ba5162fb0b667f1c0a60f6ece90c38 (patch)
tree82de31240ad1f1ae77874f07b288fcc39b8948f4 /include/players.h
parent23d2cc231e5b4c015a8471d3035dc07802de23d5 (diff)
added drops
Diffstat (limited to 'include/players.h')
-rw-r--r--include/players.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/players.h b/include/players.h
index e51e4e2..ab8da4c 100644
--- a/include/players.h
+++ b/include/players.h
@@ -20,8 +20,11 @@ typedef struct t_player {
float gun_height;
int total_ammo;
int ammo_in_mag;
+ float height;
gun_type guntype;
network_client client; // For the host: is_connected = false and socket = 0
+ int kills;
+ u64 ping;
} player;
#include "protocol.h"
@@ -35,7 +38,7 @@ player players[10] = {0};
int get_player_count();
player* get_player_by_id(u32 id);
-void draw_players_at_tile(platform_window* window, int x, int y);
+void draw_players(platform_window* window);
void draw_bullets(platform_window* window);
object check_if_player_collided_with_object(platform_window* window, player p);
float get_player_size(platform_window* window);