1#ifndef LIBSPADES_GAMESTATE_H
2#define LIBSPADES_GAMESTATE_H
8#include "../common/map.h"
9#include "../common/protocol.h"
50 bool playersAlive[MAX_PLAYERS];
51 bitmask_t connectedPlayers;
54 uint_fast8_t magazineAmmo;
55 uint_fast8_t reserveAmmo;
58 uint_fast8_t grenades;
63#if EXTENSION_Ed25519_AUTHENTICATION == 1
64 uint8_t publicKey[32];
65 int (*signData)(
void *signature,
69 enum ProtocolVersion protocolVersion;
The main data structure for libspades clients.
Definition gamestate.h:33
Definition gamestate.h:13
Informs the client of in-game players and the server of the joining client player.
Definition protocol.h:257
Changes the colour of the fog.
Definition protocol.h:619
Changes the block colour of a player.
Definition protocol.h:237
Changes the client player's HP.
Definition protocol.h:170
Contains information about the game's state and the client player's ID.
Definition protocol.h:475
Regularly sent packet containing positions and orientations of all players.
Definition protocol.h:117
Definition gamestate.h:26