| 
    FS2_Open
    
   Open source remastering of the Freespace 2 engine 
   | 
 
Go to the source code of this file.
Classes | |
| struct | iff_info | 
Macros | |
| #define | IFF_COLOR_SELECTION 0 | 
| #define | IFF_COLOR_MESSAGE 1 | 
| #define | IFF_COLOR_TAGGED 2 | 
| #define | MAX_IFF_COLORS (MAX_IFFS + 3) | 
| #define | IFFF_SUPPORT_ALLOWED (1 << 0) | 
| #define | IFFF_EXEMPT_FROM_ALL_TEAMS_AT_WAR (1 << 1) | 
| #define | IFFF_ORDERS_HIDDEN (1 << 2) | 
| #define | IFFF_ORDERS_SHOWN (1 << 3) | 
| #define | IFFF_WING_NAME_HIDDEN (1 << 4) | 
| #define | MAX_IFF_FLAGS 5 | 
Typedefs | |
| typedef struct iff_info | iff_info | 
Functions | |
| int | iff_get_alpha_value (bool is_bright) | 
| int | iff_init_color (int r, int g, int b) | 
| void | iff_init () | 
| int | iff_lookup (char *iff_name) | 
| int | iff_get_attackee_mask (int attacker_team) | 
| int | iff_get_attacker_mask (int attackee_team) | 
| int | iff_x_attacks_y (int team_x, int team_y) | 
| int | iff_get_mask (int team) | 
| int | iff_matches_mask (int team, int mask) | 
| color * | iff_get_color (int color_index, int is_bright) | 
| color * | iff_get_color_by_team (int team, int seen_from_team, int is_bright) | 
| color * | iff_get_color_by_team_and_object (int team, int seen_from_team, int is_bright, object *objp) | 
Variables | |
| int | Num_iffs | 
| iff_info | Iff_info [MAX_IFFS] | 
| int | Iff_traitor | 
| int | radar_iff_color [5][2][4] | 
| #define IFF_COLOR_MESSAGE 1 | 
Definition at line 20 of file iff_defs.h.
| #define IFF_COLOR_SELECTION 0 | 
Definition at line 19 of file iff_defs.h.
| #define IFF_COLOR_TAGGED 2 | 
Definition at line 21 of file iff_defs.h.
| #define IFFF_EXEMPT_FROM_ALL_TEAMS_AT_WAR (1 << 1) | 
Definition at line 26 of file iff_defs.h.
| #define IFFF_ORDERS_HIDDEN (1 << 2) | 
Definition at line 27 of file iff_defs.h.
| #define IFFF_ORDERS_SHOWN (1 << 3) | 
Definition at line 28 of file iff_defs.h.
| #define IFFF_SUPPORT_ALLOWED (1 << 0) | 
Definition at line 25 of file iff_defs.h.
| #define IFFF_WING_NAME_HIDDEN (1 << 4) | 
Definition at line 29 of file iff_defs.h.
| #define MAX_IFF_COLORS (MAX_IFFS + 3) | 
Definition at line 22 of file iff_defs.h.
| #define MAX_IFF_FLAGS 5 | 
Definition at line 30 of file iff_defs.h.
| int iff_get_alpha_value | ( | bool | is_bright | ) | 
Borrowed from ship.cpp, ship_iff_init_colors
| is_bright | Whether set to bright | 
Definition at line 45 of file iff_defs.cpp.
Get the mask, taking All Teams At War into account
| attacker_team | Team of attacker | 
Definition at line 561 of file iff_defs.cpp.
Rather slower, since it has to construct a mask
| attackee_team | Team of attacker | 
Definition at line 583 of file iff_defs.cpp.
Get the color from the color index
Definition at line 636 of file iff_defs.cpp.
Get the color index, taking objective vs. subjective into account
Definition at line 644 of file iff_defs.cpp.
| color* iff_get_color_by_team_and_object | ( | int | team, | 
| int | seen_from_team, | ||
| int | is_bright, | ||
| object * | objp | ||
| ) | 
Get the color index, taking objective vs. subjective into account
this one for the function calls that include some - any - of object
Definition at line 678 of file iff_defs.cpp.
Generate a mask for a team
| team | Team to generate mask for | 
Definition at line 615 of file iff_defs.cpp.
| void iff_init | ( | ) | 
Parse the table
Definition at line 117 of file iff_defs.cpp.
Init a color and add it to the Iff_colors array
| r | Red | 
| g | Green | 
| b | Blue | 
Definition at line 62 of file iff_defs.cpp.
| int iff_lookup | ( | char * | iff_name | ) | 
Find the iff name
| iff_name | Pointer to name as a string | 
Definition at line 540 of file iff_defs.cpp.
See if the mask contains the team
| team | Team to test | 
| mask | Mask | 
Definition at line 628 of file iff_defs.cpp.
Similar to above
| team_x | Team of attacker | 
| team_y | Team of attackee | 
Definition at line 605 of file iff_defs.cpp.
Definition at line 20 of file iff_defs.cpp.
| int Iff_traitor | 
Definition at line 22 of file iff_defs.cpp.
| int Num_iffs | 
Definition at line 19 of file iff_defs.cpp.
| int radar_iff_color[5][2][4] | 
Definition at line 24 of file iff_defs.cpp.