|
R-Type
Networked shoot'em up built on Aegis2D
|
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. | |
A player lost a life where its ship was.
|
default |
Field-by-field equality.
true if every field is equal. | std::uint8_t rtype::DeathEvent::lives = 0 |
Lives left; 0 means the player is out, and a Destroy of its ship follows.
| std::uint8_t rtype::DeathEvent::player = 0 |
Player number, 0 to 3.
| std::uint32_t rtype::DeathEvent::tick = 0 |
Server tick of the death.
| float rtype::DeathEvent::x = 0.0F |
Position of the ship when it was hit, in logical pixels.
| float rtype::DeathEvent::y = 0.0F |
Position of the ship when it was hit, in logical pixels.