Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
Loading...
Searching...
No Matches
SpawnSlots.h File Reference

Shared default multiplayer spawn slots. More...

#include <array>
#include <cstddef>
#include <cstdint>
#include "Sim/Movement.h"

Go to the source code of this file.

Classes

struct  bomberman::sim::SpawnSlotCell
 One multiplayer spawn slot expressed in tile-cell coordinates. More...
 

Namespaces

namespace  bomberman::sim
 Shared simulation primitives and constants used by both the client and the authoritative server.
 

Functions

constexpr SpawnSlotCell bomberman::sim::spawnSlotCellForPlayerId (const uint8_t playerId)
 Returns the default spawn slot assigned to the given player id.
 
constexpr TilePos bomberman::sim::spawnSlotTilePos (const SpawnSlotCell slot)
 Converts one tile-cell spawn slot to a center-position tile-Q8 coordinate.
 
constexpr TilePos bomberman::sim::spawnTilePosForPlayerId (const uint8_t playerId)
 Returns the default center-position tile-Q8 spawn for the given player id.
 

Variables

constexpr uint8_t bomberman::sim::kLeftSpawnCol = 1
 
constexpr uint8_t bomberman::sim::kRightSpawnCol = static_cast<uint8_t>(tileArrayWidth - 2)
 
constexpr uint8_t bomberman::sim::kTopSpawnRow = 1
 
constexpr uint8_t bomberman::sim::kBottomSpawnRow = 9
 
constexpr std::array< SpawnSlotCell, 4 > bomberman::sim::kDefaultSpawnSlots
 Default player-id keyed spawn slots for the current arena layout.
 

Detailed Description

Shared default multiplayer spawn slots.