naev 0.12.6
AsteroidAnchor Struct Reference

Represents an asteroid field anchor. More...

#include <asteroid.h>

Collaboration diagram for AsteroidAnchor:

Data Fields

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

Detailed Description

Represents an asteroid field anchor.

Definition at line 111 of file asteroid.h.

Field Documentation

◆ accel

double AsteroidAnchor::accel

Accel applied when out of radius towards center.

Definition at line 125 of file asteroid.h.

◆ area

double AsteroidAnchor::area

Field's area.

Definition at line 119 of file asteroid.h.

◆ asteroids

Asteroid* AsteroidAnchor::asteroids

Asteroids belonging to the field.

Definition at line 116 of file asteroid.h.

◆ density

double AsteroidAnchor::density

Density of the field.

Definition at line 115 of file asteroid.h.

◆ groups

AsteroidTypeGroup** AsteroidAnchor::groups

Groups of asteroids.

Definition at line 120 of file asteroid.h.

◆ groupsw

double* AsteroidAnchor::groupsw

Weight of the groups of asteroids.

Definition at line 121 of file asteroid.h.

◆ groupswtotal

double AsteroidAnchor::groupswtotal

Sum of the weights of the groups.

Definition at line 122 of file asteroid.h.

◆ has_exclusion

int AsteroidAnchor::has_exclusion

Used for updating.

Definition at line 130 of file asteroid.h.

◆ id

int AsteroidAnchor::id

ID of the anchor, for targeting.

Definition at line 113 of file asteroid.h.

◆ label

char* AsteroidAnchor::label

Label used for unidiffs.

Definition at line 112 of file asteroid.h.

◆ margin

double AsteroidAnchor::margin

Extra margin to use when doing distance computations.

Definition at line 126 of file asteroid.h.

◆ maxspeed

double AsteroidAnchor::maxspeed

Maxmimum speed the asteroids can have in the field.

Definition at line 123 of file asteroid.h.

◆ maxspin

double AsteroidAnchor::maxspin

Maxmimum spin the asteroids can have in the field.

Definition at line 124 of file asteroid.h.

◆ nmax

int AsteroidAnchor::nmax

Maximum number of asteroids.

Definition at line 117 of file asteroid.h.

◆ pos

vec2 AsteroidAnchor::pos

Position in the system (from center).

Definition at line 114 of file asteroid.h.

◆ qt

Quadtree AsteroidAnchor::qt

Handles collisions.

Definition at line 128 of file asteroid.h.

◆ qt_init

int AsteroidAnchor::qt_init

Whether or not the quadtree has been initialized.

Definition at line 129 of file asteroid.h.

◆ radius

double AsteroidAnchor::radius

Radius of the anchor.

Definition at line 118 of file asteroid.h.


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