14typedef struct Gatherable_ {
29int gatherable_load (
void);
30void gatherable_cleanup (
void);
int gatherable_getPos(vec2 *pos, vec2 *vel, int id)
Returns the position and velocity of a gatherable.
void gatherable_free(void)
Frees all the gatherables.
int gatherable_init(const Commodity *com, vec2 pos, vec2 vel, double lifeleng, int qtt, unsigned int player_only)
Initializes a gatherable object.
void gatherable_gather(Pilot *p)
See if the pilot can gather anything.
void gatherable_update(double dt)
Updates all gatherable objects.
int gatherable_getClosest(vec2 pos, double rad)
Gets the closest gatherable from a given position, within a given radius.
void gatherable_render(void)
Renders all the gatherables.
Represents stuff that can be gathered.
The representation of an in-game pilot.