14typedef struct Gatherable_ {
36 double lifeleng,
int qtt,
unsigned int player_only );
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, const vec2 *pos, const vec2 *vel, double lifeleng, int qtt, unsigned int player_only)
Initializes a gatherable object.
int gatherable_getClosest(const vec2 *pos, double rad)
Gets the closest gatherable from a given position, within a given radius.
int gatherable_load(void)
Loads the gatherable system.
void gatherable_cleanup(void)
Cleans up after the gatherable system.
void gatherable_update(double dt)
Updates all gatherable objects.
void gatherable_render(void)
Renders all the gatherables.
Represents stuff that can be gathered.