naev 0.12.5
Asteroid Struct Reference

Represents a single asteroid. More...

#include <asteroid.h>

Collaboration diagram for Asteroid:

Data Fields

int id
int parent
int state
const AsteroidTypetype
const glTexturegfx
CollPolypolygon
double armour
Solid sol
double ang
double spin
double timer
double timer_max
double scan_alpha
int scanned

Detailed Description

Represents a single asteroid.

Definition at line 88 of file asteroid.h.

Field Documentation

◆ ang

double Asteroid::ang

Angle.

Definition at line 99 of file asteroid.h.

◆ armour

double Asteroid::armour

Current "armour" of the asteroid.

Definition at line 96 of file asteroid.h.

◆ gfx

const glTexture* Asteroid::gfx

Graphic of the asteroid.

Definition at line 94 of file asteroid.h.

◆ id

int Asteroid::id

ID of the asteroid, for targeting.

Definition at line 90 of file asteroid.h.

◆ parent

int Asteroid::parent

ID of the anchor parent.

Definition at line 91 of file asteroid.h.

◆ polygon

CollPoly* Asteroid::polygon

Collision polygon associated to gfx.

Definition at line 95 of file asteroid.h.

◆ scan_alpha

double Asteroid::scan_alpha

Alpha value for scanning stuff.

Definition at line 104 of file asteroid.h.

◆ scanned

int Asteroid::scanned

Wether the player already scanned this asteroid.

Definition at line 105 of file asteroid.h.

◆ sol

Solid Asteroid::sol

Solid.

Definition at line 98 of file asteroid.h.

◆ spin

double Asteroid::spin

Spin.

Definition at line 100 of file asteroid.h.

◆ state

int Asteroid::state

State of the asteroid.

Definition at line 92 of file asteroid.h.

◆ timer

double Asteroid::timer

Internal timer for animations.

Definition at line 102 of file asteroid.h.

◆ timer_max

double Asteroid::timer_max

Internal timer initial value.

Definition at line 103 of file asteroid.h.

◆ type

const AsteroidType* Asteroid::type

Type of the asteroid.

Definition at line 93 of file asteroid.h.


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