#ifndef _BATTLESHOT_H
#define _BATTLESHOT_H

#define B_BULLET     0
#define B_CANNON     1
#define B_BALLISTIC  2  //includes shots from rockets, artillery, battleships, etc.
#define B_BOMB       3
#define B_TORPEDO    4
#define B_ROCKET     5

void create_battleshot(int type, int ox, int oy, int dx, int dy, int delay, int sound, int striplength = -1);
bool do_battleshots();
vector<_loc> bulletpoints(_unit *a, _unit *d);

typedef struct _battleshot
{
	bool exists, playedsound;
	short type, delay, time, striplen;
	int sound;
	float x, y, xv, yv, xa, ya, dx, dy;
	LineStrip strip;
	Rgba start, end;
} _battleshot;

#endif
