|
R-Type
Networked shoot'em up built on Aegis2D
|
How a room plays, chosen at its creation (CreateRoom, RFC section 3.6).
More...
#include </__w/project-rtype/project-rtype/protocol/include/rtype/rooms.hpp>
Public Member Functions | |
| bool | operator== (const RoomRules &) const =default |
| Field-by-field equality. | |
Public Attributes | |
| std::uint8_t | lives = 3 |
| Lives of each player, 1 to max_room_lives. | |
| std::uint8_t | difficulty = static_cast<std::uint8_t>(Difficulty::Normal) |
| A Difficulty value. | |
| std::string | waves |
Name of the waves file to play, among those the server offers, without its .json; empty for the server's own. | |
| std::uint8_t | friendly_fire = 0 |
| 1 if the players' missiles hit the other players, 0 if not. | |
How a room plays, chosen at its creation (CreateRoom, RFC section 3.6).
The values are as received: the server checks them (SessionTable::create_room()).
|
default |
Field-by-field equality.
true if every field is equal. | std::uint8_t rtype::RoomRules::difficulty = static_cast<std::uint8_t>(Difficulty::Normal) |
A Difficulty value.
| std::uint8_t rtype::RoomRules::friendly_fire = 0 |
1 if the players' missiles hit the other players, 0 if not.
| std::uint8_t rtype::RoomRules::lives = 3 |
Lives of each player, 1 to max_room_lives.
| std::string rtype::RoomRules::waves |
Name of the waves file to play, among those the server offers, without its .json; empty for the server's own.