naev 0.11.5
Gatherable Struct Reference

Represents stuff that can be gathered. More...

#include <gatherable.h>

Data Fields

const Commoditytype
 
vec2 pos
 
vec2 vel
 
double timer
 
double lifeleng
 
int quantity
 
int sx
 
int sy
 
int player_only
 

Detailed Description

Represents stuff that can be gathered.

Definition at line 14 of file gatherable.h.

Field Documentation

◆ lifeleng

double Gatherable::lifeleng

nb of seconds before de-spawn.

Definition at line 19 of file gatherable.h.

◆ player_only

int Gatherable::player_only

Can only be gathered by player.

Definition at line 23 of file gatherable.h.

◆ pos

vec2 Gatherable::pos

Position.

Definition at line 16 of file gatherable.h.

◆ quantity

int Gatherable::quantity

Quantity of material.

Definition at line 20 of file gatherable.h.

◆ sx

int Gatherable::sx

X sprite to use.

Definition at line 21 of file gatherable.h.

◆ sy

int Gatherable::sy

Y sprite to use.

Definition at line 22 of file gatherable.h.

◆ timer

double Gatherable::timer

Timer to de-spawn the gatherable.

Definition at line 18 of file gatherable.h.

◆ type

const Commodity* Gatherable::type

Type of commodity.

Definition at line 15 of file gatherable.h.

◆ vel

vec2 Gatherable::vel

Velocity.

Definition at line 17 of file gatherable.h.


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