Open source remastering of the Freespace 2 engine
swarm.h File Reference

Go to the source code of this file.


struct  turret_swarm_info
struct  swarm_info


#define MAX_SWARM_MISSILES   100


typedef struct turret_swarm_info turret_swarm_info
typedef struct swarm_info swarm_info


void swarm_level_init ()
void swarm_delete (int index)
int swarm_create ()
void swarm_update_direction (object *objp, float frametime)
void swarm_maybe_fire_missile (int shipnum)
int turret_swarm_create ()
void turret_swarm_delete (int i)
void turret_swarm_set_up_info (int parent_objnum, ship_subsys *turret, struct weapon_info *wip, int weapon_num)
void turret_swarm_check_validity ()


swarm_info Swarm_missiles [MAX_SWARM_MISSILES]
turret_swarm_info Turret_swarm_info [MAX_TURRET_SWARM_INFO]

Macro Definition Documentation

#define MAX_SWARM_MISSILES   100

Definition at line 51 of file swarm.h.


Definition at line 54 of file swarm.h.


Definition at line 49 of file swarm.h.

Typedef Documentation

typedef struct swarm_info swarm_info

Function Documentation

int swarm_create ( )

Definition at line 136 of file swarm.cpp.

void swarm_delete ( int  index)

Definition at line 165 of file swarm.cpp.

void swarm_level_init ( )

Definition at line 52 of file swarm.cpp.

void swarm_maybe_fire_missile ( int  shipnum)

Definition at line 90 of file swarm.cpp.

void swarm_update_direction ( object objp,
float  frametime 

Definition at line 184 of file swarm.cpp.

void turret_swarm_check_validity ( )

Definition at line 632 of file swarm.cpp.

int turret_swarm_create ( )

Definition at line 374 of file swarm.cpp.

void turret_swarm_delete ( int  i)

Definition at line 408 of file swarm.cpp.

void turret_swarm_set_up_info ( int  parent_objnum,
ship_subsys turret,
struct weapon_info wip,
int  weapon_num 

Definition at line 423 of file swarm.cpp.

Variable Documentation

swarm_info Swarm_missiles[MAX_SWARM_MISSILES]

Definition at line 41 of file swarm.cpp.

Definition at line 43 of file swarm.cpp.