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

An enemy of a wave, where and when the editor places it. More...

#include </__w/project-rtype/project-rtype/client/network/include/rtype/level_editor.hpp>

Public Member Functions

bool operator== (const DraftEnemy &) const =default
 Field-by-field equality.
 

Public Attributes

std::string type {}
 Its type, as a waves file names it.
 
aegis2d::Vec2 position {}
 Where it appears, in logical pixels of the play area.
 
float at = 0.0F
 Seconds after the start of its wave.
 

Detailed Description

An enemy of a wave, where and when the editor places it.

Member Function Documentation

◆ operator==()

bool rtype::DraftEnemy::operator== ( const DraftEnemy &  ) const
default

Field-by-field equality.

Returns
true if every field is equal.

Member Data Documentation

◆ at

float rtype::DraftEnemy::at = 0.0F

Seconds after the start of its wave.

◆ position

aegis2d::Vec2 rtype::DraftEnemy::position {}

Where it appears, in logical pixels of the play area.

◆ type

std::string rtype::DraftEnemy::type {}

Its type, as a waves file names it.


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