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

Values of an enemy type, as its script gives them to enemy { ... }. More...

#include <rtype/enemy_scripts.hpp>

Public Attributes

std::string name
 Name of the type: its file name without .lua, as waves files name it.
 
aegis2d::Vec2 size {32.0F, 32.0F}
 Size on screen, also its hit box (width and height, 32 by default).
 
std::int32_t health = 1
 Health points (health, 1 by default).
 
std::uint32_t score = 100
 Points for its killer (score, 100 by default).
 
float fire_every = 0.0F
 Seconds between two shots (fire_every), or 0, the default, to never fire.
 
float first_shot = 1.0F
 Seconds before its first shot (first_shot, 1 by default).
 

Detailed Description

Values of an enemy type, as its script gives them to enemy { ... }.

Member Data Documentation

◆ fire_every

float rtype::EnemyType::fire_every = 0.0F

Seconds between two shots (fire_every), or 0, the default, to never fire.

◆ first_shot

float rtype::EnemyType::first_shot = 1.0F

Seconds before its first shot (first_shot, 1 by default).

◆ health

std::int32_t rtype::EnemyType::health = 1

Health points (health, 1 by default).

◆ name

std::string rtype::EnemyType::name

Name of the type: its file name without .lua, as waves files name it.

◆ score

std::uint32_t rtype::EnemyType::score = 100

Points for its killer (score, 100 by default).

◆ size

aegis2d::Vec2 rtype::EnemyType::size {32.0F, 32.0F}

Size on screen, also its hit box (width and height, 32 by default).


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