|
R-Type
Networked shoot'em up built on Aegis2D
|
An entity appears, with its kind, position and velocity. More...
#include </__w/project-rtype/project-rtype/protocol/include/rtype/events.hpp>
Public Member Functions | |
| bool | operator== (const SpawnEvent &) const =default |
| Field-by-field equality. | |
Public Attributes | |
| std::uint32_t | tick = 0 |
| Server tick at which it appeared. | |
| std::uint32_t | id = 0 |
| Network id. | |
| std::uint8_t | kind = 0 |
| Kind, an EntityKind value. | |
| float | x = 0.0F |
| Position of its center, in logical pixels. | |
| float | y = 0.0F |
| Position of its center, in logical pixels. | |
| float | vx = 0.0F |
| Velocity, in logical pixels per second. | |
| float | vy = 0.0F |
| Velocity, in logical pixels per second. | |
| std::uint8_t | owner = no_player |
| Player it belongs to (a ship's player, a missile's shooter), or no_player. | |
An entity appears, with its kind, position and velocity.
|
default |
Field-by-field equality.
true if every field is equal. | std::uint32_t rtype::SpawnEvent::id = 0 |
Network id.
| std::uint8_t rtype::SpawnEvent::kind = 0 |
Kind, an EntityKind value.
| std::uint8_t rtype::SpawnEvent::owner = no_player |
Player it belongs to (a ship's player, a missile's shooter), or no_player.
| std::uint32_t rtype::SpawnEvent::tick = 0 |
Server tick at which it appeared.
| float rtype::SpawnEvent::vx = 0.0F |
Velocity, in logical pixels per second.
| float rtype::SpawnEvent::vy = 0.0F |
Velocity, in logical pixels per second.
| float rtype::SpawnEvent::x = 0.0F |
Position of its center, in logical pixels.
| float rtype::SpawnEvent::y = 0.0F |
Position of its center, in logical pixels.