#ifndef __SPROUTS_H__
#define __SPROUTS_H__

#ifndef _COLLIDE_H_
#include "collide.h"
#endif


#define MAX_SPROUTS 20

#define SPROUT_INIT_HSPEED 180
#define SPROUT_INIT_YVEL -110
#define SPROUT_GRAVITY 10

#define SPROUT_LIMIT 15			// Maximum number of sprouts that we can have in our inventory before they start to regenerate

//#if PALMODE==1
//#define SPROUT_TIME (3*60*25)		// Number of frames since we collected the last box of sprouts before a box will regenerate
//#else
#define SPROUT_TIME (3*60*30)		// 3 minutes time limit
//#endif

#define SPROUT_RADIUS 100

#define SPROUT_OVERLAY_OT_DEPTH 2

#define SPROUT_ACTIVE	1
typedef struct
{
	VECTOR pos;
//	VECTOR vel;
	COLLDATA colldata;
	int flags;
	int age;
	VECTOR collpos;
	VECTOR collvel;
}SPROUTSTR;
typedef struct
{
	SPROUTSTR sprouts[MAX_SPROUTS];
}SPROUTMANAGER;

extern SPROUTMANAGER *sproutman;

void sproutsInit();
void sproutsShutdown();
void sproutsCycle();
void sproutsDraw();
SPROUTSTR *sproutsThrow(VECTOR *pos, VECTOR *vel);
int sproutsTimer;				// time in frames since last sprout pickup

#endif
