]> icculus.org git repositories - taylor/freespace2.git/blob - include/swarm.h
rendering functions mostly done; more complete shader setup
[taylor/freespace2.git] / include / swarm.h
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
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
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/Weapon/Swarm.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Header file for managing swarm missiles
16  *
17  * $Log$
18  * Revision 1.2  2002/06/09 04:41:15  relnev
19  * added copyright header
20  *
21  * Revision 1.1.1.1  2002/05/03 03:28:12  root
22  * Initial import.
23  *
24  * 
25  * 5     5/20/99 7:00p Dave
26  * Added alternate type names for ships. Changed swarm missile table
27  * entries.
28  * 
29  * 4     1/29/99 2:25p Andsager
30  * Added turret_swarm_missiles
31  * 
32  * 3     11/05/98 5:55p Dave
33  * Big pass at reducing #includes
34  * 
35  * 2     10/07/98 10:54a Dave
36  * Initial checkin.
37  * 
38  * 1     10/07/98 10:51a Dave
39  * 
40  * 3     2/26/98 10:08p Hoffoss
41  * Rewrote state saving and restoring to fix bugs and simplify the code.
42  * 
43  * 2     8/10/97 6:16p Lawrance
44  * split off swarm missile code into a separate file
45  *
46  * $NoKeywords: $
47  */
48
49
50 #ifndef __FREESPACE_SWARM_H__
51 #define __FREESPACE_SWARM_H__
52
53 #include "object.h"
54 #include "cfile.h"
55 #include "ship.h"
56
57 #define SWARM_DEFAULT_NUM_MISSILES_FIRED                                        4               // number of swarm missiles that launch when fired
58
59 void    swarm_level_init();
60 void    swarm_delete(int index);
61 int     swarm_create();
62 void    swarm_update_direction(object *objp, float frametime);
63 void    swarm_maybe_fire_missile(int shipnum);
64
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();
69
70 #endif /* __FREESPACE_SWARM_H__ */
71