FS2_Open
Open source remastering of the Freespace 2 engine
species_defs.h
Go to the documentation of this file.
1 /*
2  * Species_Defs.h
3  * Extended Species Support for FS2 Open
4  *
5  * You may not sell or otherwise commercially exploit the source or things you
6  * create based on the source.
7  *
8  */
9 
10 
11 
12 #ifndef _SPECIES_DEFS_H_
13 #define _SPECIES_DEFS_H_
14 
15 #include "gamesnd/gamesnd.h"
16 #include "globalincs/globals.h"
17 #include "globalincs/pstypes.h"
18 #include "graphics/generic.h"
19 #include "hud/hudparse.h"
21 
22 // for bitmap thrusters
23 typedef struct thrust_pair_bitmap {
27 
28 // for animated thrusters
29 typedef struct thrust_pair {
32 } thrust_pair;
33 
34 typedef struct thrust_info {
37 } thrust_info;
38 
39 
40 // Currently the only species-specific feature not in species_info is ship debris. This is because
41 // ship debris chunks are treated as asteroids and tied so tightly into the asteroid code that
42 // separating them makes the code much more complicated.
43 
45 {
46 public:
50 
51  union {
52  struct {
53  int r, g, b;
54  } rgb;
55  int a1d[3];
56  } fred_color;
57 
61 
62  // Bobboau's thruster stuff
66 
67  // the members below this comment are not parsed in species_defs.tbl
68 
71 
73 
74  // countermeasures by species
77 
79  {
80  for (int i = 0; i < MIN_BRIEF_ICONS; i++)
81  bii_index[i] = -1;
82 
83  cmeasure_name[0] = '\0';
84  cmeasure_index = -1;
85  }
86 };
87 
89 
90 
91 // load up the species_defs.tbl into the correct data areas
92 // IMPORTANT: If Num_species != 3, icons.tbl, asteroid.tbl, and sounds.tbl have to be modified to compensate!
93 void species_init();
94 
95 #endif
float awacs_multiplier
Definition: species_defs.h:49
int i
Definition: multi_pxo.cpp:466
thrust_pair flames
Definition: species_defs.h:35
generic_bitmap normal
Definition: species_defs.h:24
int bii_index[MIN_BRIEF_ICONS]
Definition: species_defs.h:72
char cmeasure_name[NAME_LENGTH]
Definition: species_defs.h:75
thrust_pair_bitmap thruster_distortion_info
Definition: species_defs.h:65
union species_info::@265 fred_color
game_snd snd_flyby_bomber
Definition: species_defs.h:70
struct thrust_pair_bitmap thrust_pair_bitmap
game_snd snd_flyby_fighter
Definition: species_defs.h:69
generic_anim afterburn
Definition: species_defs.h:31
thrust_pair_bitmap thruster_tertiary_glow_info
Definition: species_defs.h:64
thrust_info thruster_info
Definition: species_defs.h:60
thrust_pair_bitmap thruster_secondary_glow_info
Definition: species_defs.h:63
generic_anim shield_anim
Definition: species_defs.h:59
generic_anim normal
Definition: species_defs.h:30
generic_bitmap debris_texture
Definition: species_defs.h:58
generic_bitmap afterburn
Definition: species_defs.h:25
thrust_pair glow
Definition: species_defs.h:36
struct thrust_pair thrust_pair
#define NAME_LENGTH
Definition: globals.h:15
struct thrust_info thrust_info
char species_name[NAME_LENGTH]
Definition: species_defs.h:47
int cmeasure_index
Definition: species_defs.h:76
struct species_info::@265::@266 rgb
void species_init()
#define MIN_BRIEF_ICONS
SCP_vector< species_info > Species_info
Definition: sound.h:72