naev 0.11.5
Asteroid Struct Reference

Represents a single asteroid. More...

#include <asteroid.h>

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 77 of file asteroid.h.

Field Documentation

◆ ang

double Asteroid::ang

Angle.

Definition at line 88 of file asteroid.h.

◆ armour

double Asteroid::armour

Current "armour" of the asteroid.

Definition at line 85 of file asteroid.h.

◆ gfx

const glTexture* Asteroid::gfx

Graphic of the asteroid.

Definition at line 83 of file asteroid.h.

◆ id

int Asteroid::id

ID of the asteroid, for targeting.

Definition at line 79 of file asteroid.h.

◆ parent

int Asteroid::parent

ID of the anchor parent.

Definition at line 80 of file asteroid.h.

◆ polygon

CollPoly* Asteroid::polygon

Collision polygon associated to gfx.

Definition at line 84 of file asteroid.h.

◆ scan_alpha

double Asteroid::scan_alpha

Alpha value for scanning stuff.

Definition at line 93 of file asteroid.h.

◆ scanned

int Asteroid::scanned

Wether the player already scanned this asteroid.

Definition at line 94 of file asteroid.h.

◆ sol

Solid Asteroid::sol

Solid.

Definition at line 87 of file asteroid.h.

◆ spin

double Asteroid::spin

Spin.

Definition at line 89 of file asteroid.h.

◆ state

int Asteroid::state

State of the asteroid.

Definition at line 81 of file asteroid.h.

◆ timer

double Asteroid::timer

Internal timer for animations.

Definition at line 91 of file asteroid.h.

◆ timer_max

double Asteroid::timer_max

Internal timer initial value.

Definition at line 92 of file asteroid.h.

◆ type

const AsteroidType* Asteroid::type

Type of the asteroid.

Definition at line 82 of file asteroid.h.


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