2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
10 * $Logfile: /Freespace2/code/Weapon/Swarm.h $
15 * Header file for managing swarm missiles
18 * Revision 1.2 2002/06/09 04:41:15 relnev
19 * added copyright header
21 * Revision 1.1.1.1 2002/05/03 03:28:12 root
25 * 5 5/20/99 7:00p Dave
26 * Added alternate type names for ships. Changed swarm missile table
29 * 4 1/29/99 2:25p Andsager
30 * Added turret_swarm_missiles
32 * 3 11/05/98 5:55p Dave
33 * Big pass at reducing #includes
35 * 2 10/07/98 10:54a Dave
38 * 1 10/07/98 10:51a Dave
40 * 3 2/26/98 10:08p Hoffoss
41 * Rewrote state saving and restoring to fix bugs and simplify the code.
43 * 2 8/10/97 6:16p Lawrance
44 * split off swarm missile code into a separate file
50 #ifndef __FREESPACE_SWARM_H__
51 #define __FREESPACE_SWARM_H__
57 #define SWARM_DEFAULT_NUM_MISSILES_FIRED 4 // number of swarm missiles that launch when fired
59 void swarm_level_init();
60 void swarm_delete(int index);
62 void swarm_update_direction(object *objp, float frametime);
63 void swarm_maybe_fire_missile(int shipnum);
65 int turret_swarm_create();
66 void turret_swarm_delete(int i);
67 void turret_swarm_set_up_info(int parent_objnum, ship_subsys *turret, int turret_weapon_class);
68 void turret_swarm_check_validity();
70 #endif /* __FREESPACE_SWARM_H__ */