naev 0.11.5
AsteroidAnchor Struct Reference

Represents an asteroid field anchor. More...

#include <asteroid.h>

Data Fields

char * label
 
int id
 
vec2 pos
 
double density
 
Asteroidasteroids
 
int nb
 
double radius
 
double area
 
AsteroidTypeGroup ** groups
 
double * groupsw
 
double groupswtotal
 
double maxspeed
 
double maxspin
 
double accel
 
double margin
 
Quadtree qt
 
int qt_init
 

Detailed Description

Represents an asteroid field anchor.

Definition at line 100 of file asteroid.h.

Field Documentation

◆ accel

double AsteroidAnchor::accel

Accel applied when out of radius towards center.

Definition at line 114 of file asteroid.h.

◆ area

double AsteroidAnchor::area

Field's area.

Definition at line 108 of file asteroid.h.

◆ asteroids

Asteroid* AsteroidAnchor::asteroids

Asteroids belonging to the field.

Definition at line 105 of file asteroid.h.

◆ density

double AsteroidAnchor::density

Density of the field.

Definition at line 104 of file asteroid.h.

◆ groups

AsteroidTypeGroup** AsteroidAnchor::groups

Groups of asteroids.

Definition at line 109 of file asteroid.h.

◆ groupsw

double* AsteroidAnchor::groupsw

Weight of the groups of asteroids.

Definition at line 110 of file asteroid.h.

◆ groupswtotal

double AsteroidAnchor::groupswtotal

Sum of the weights of the groups.

Definition at line 111 of file asteroid.h.

◆ id

int AsteroidAnchor::id

ID of the anchor, for targeting.

Definition at line 102 of file asteroid.h.

◆ label

char* AsteroidAnchor::label

Label used for unidiffs.

Definition at line 101 of file asteroid.h.

◆ margin

double AsteroidAnchor::margin

Extra margin to use when doing distance computations.

Definition at line 115 of file asteroid.h.

◆ maxspeed

double AsteroidAnchor::maxspeed

Maxmimum speed the asteroids can have in the field.

Definition at line 112 of file asteroid.h.

◆ maxspin

double AsteroidAnchor::maxspin

Maxmimum spin the asteroids can have in the field.

Definition at line 113 of file asteroid.h.

◆ nb

int AsteroidAnchor::nb

Number of asteroids.

Definition at line 106 of file asteroid.h.

◆ pos

vec2 AsteroidAnchor::pos

Position in the system (from center).

Definition at line 103 of file asteroid.h.

◆ qt

Quadtree AsteroidAnchor::qt

Handles collisions.

Definition at line 117 of file asteroid.h.

◆ qt_init

int AsteroidAnchor::qt_init

Whether or not the quadtree has been initialized.

Definition at line 118 of file asteroid.h.

◆ radius

double AsteroidAnchor::radius

Radius of the anchor.

Definition at line 107 of file asteroid.h.


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