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

How a game plays: the rules of its room, as the gameplay reads them. More...

#include <rtype/server_game.hpp>

Public Attributes

std::uint32_t lives = tuning::player_lives
 Lives of each player at the start, at least 1.
 
std::int32_t enemy_health_factor = 1
 Factor of the health of each enemy that appears, at random or by the waves, over the health its script gives it; at least 1.
 
float spawn_interval_scale = 1.0F
 Factor of the intervals between two random Bydos spawns: above 1, fewer enemies; below 1, more.
 
bool friendly_fire = false
 Whether the players' missiles hit the other players.
 

Detailed Description

How a game plays: the rules of its room, as the gameplay reads them.

The default rules are the game as tuned. The server makes them from the rules a room was created with (RFC section 3.6).

Member Data Documentation

◆ enemy_health_factor

std::int32_t rtype::GameRules::enemy_health_factor = 1

Factor of the health of each enemy that appears, at random or by the waves, over the health its script gives it; at least 1.

◆ friendly_fire

bool rtype::GameRules::friendly_fire = false

Whether the players' missiles hit the other players.

◆ lives

std::uint32_t rtype::GameRules::lives = tuning::player_lives

Lives of each player at the start, at least 1.

◆ spawn_interval_scale

float rtype::GameRules::spawn_interval_scale = 1.0F

Factor of the intervals between two random Bydos spawns: above 1, fewer enemies; below 1, more.


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