bn::link_player class

Contains the data of a message provided by a player.

Constructors, destructors, conversion operators

link_player(int id, int data) constexpr
Constructor.

Public functions

auto id() const -> int constexpr
Returns the ID of the player.
auto data() const -> uint16_t constexpr
Returns the data provided by the player.

Friends

auto operator==(const link_player& a, const link_player& b) -> bool defaulted
Default equal operator.

Function documentation

bn::link_player::link_player(int id, int data) constexpr

Constructor.

Parameters
id Player ID, in the range [0..3].
data Player data, in the range [0..65533].