Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
Loading...
Searching...
No Matches
bomberman::net::MsgSnapshot::PlayerEntry Struct Reference

Public Types

enum class  EPlayerFlags : uint8_t {
  None = 0x00 , Alive = 0x01 , Invulnerable = 0x02 , InputLocked = 0x04 ,
  BombRangeBoost = 0x08 , MaxBombsBoost = 0x10 , SpeedBoost = 0x20
}
 

Public Attributes

uint8_t playerId = 0
 Player identifier [0, kMaxPlayers).
 
int16_t xQ = 0
 Player X position in tile-space Q8 (center position).
 
int16_t yQ = 0
 Player Y position in tile-space Q8 (center position).
 
EPlayerFlags flags = EPlayerFlags::None
 Player alive status and other state flags.
 

Static Public Attributes

static constexpr uint8_t kKnownFlags
 

Member Enumeration Documentation

◆ EPlayerFlags

Enumerator
None 

No replicated player flags are set.

Alive 

Player is alive if set, dead if unset.

Invulnerable 

Player is invulnerable if set.

InputLocked 

Player input/movement is server-locked if set.

BombRangeBoost 

Player currently has the bomb-range boost active.

MaxBombsBoost 

Player currently has the max-bombs boost active.

SpeedBoost 

Player currently has the speed boost active.

Member Data Documentation

◆ kKnownFlags

constexpr uint8_t bomberman::net::MsgSnapshot::PlayerEntry::kKnownFlags
staticconstexpr
Initial value:
=
static_cast<uint8_t>(EPlayerFlags::Alive) |
static_cast<uint8_t>(EPlayerFlags::Invulnerable) |
static_cast<uint8_t>(EPlayerFlags::InputLocked) |
static_cast<uint8_t>(EPlayerFlags::BombRangeBoost) |
static_cast<uint8_t>(EPlayerFlags::MaxBombsBoost) |
static_cast<uint8_t>(EPlayerFlags::SpeedBoost)
@ Alive
Player is alive if set, dead if unset.
@ MaxBombsBoost
Player currently has the max-bombs boost active.
@ BombRangeBoost
Player currently has the bomb-range boost active.
@ SpeedBoost
Player currently has the speed boost active.
@ InputLocked
Player input/movement is server-locked if set.

The documentation for this struct was generated from the following file: