R-Type
Networked shoot'em up built on Aegis2D
Loading...
Searching...
No Matches
rtype::DeathEvent Struct Reference

A player lost a life where its ship was. More...

#include </__w/project-rtype/project-rtype/protocol/include/rtype/events.hpp>

Public Member Functions

bool operator== (const DeathEvent &) const =default
 Field-by-field equality.
 

Public Attributes

std::uint32_t tick = 0
 Server tick of the death.
 
std::uint8_t player = 0
 Player number, 0 to 3.
 
std::uint8_t lives = 0
 Lives left; 0 means the player is out, and a Destroy of its ship follows.
 
float x = 0.0F
 Position of the ship when it was hit, in logical pixels.
 
float y = 0.0F
 Position of the ship when it was hit, in logical pixels.
 

Detailed Description

A player lost a life where its ship was.

Member Function Documentation

◆ operator==()

bool rtype::DeathEvent::operator== ( const DeathEvent &  ) const
default

Field-by-field equality.

Returns
true if every field is equal.

Member Data Documentation

◆ lives

std::uint8_t rtype::DeathEvent::lives = 0

Lives left; 0 means the player is out, and a Destroy of its ship follows.

◆ player

std::uint8_t rtype::DeathEvent::player = 0

Player number, 0 to 3.

◆ tick

std::uint32_t rtype::DeathEvent::tick = 0

Server tick of the death.

◆ x

float rtype::DeathEvent::x = 0.0F

Position of the ship when it was hit, in logical pixels.

◆ y

float rtype::DeathEvent::y = 0.0F

Position of the ship when it was hit, in logical pixels.


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