Open source remastering of the Freespace 2 engine
hudbrackets.cpp File Reference
#include "asteroid/asteroid.h"
#include "cmdline/cmdline.h"
#include "debris/debris.h"
#include "hud/hudbrackets.h"
#include "hud/hudtarget.h"
#include "iff_defs/iff_defs.h"
#include "jumpnode/jumpnode.h"
#include "mission/missionparse.h"
#include "object/object.h"
#include "parse/parselo.h"
#include "playerman/player.h"
#include "render/3d.h"
#include "ship/ship.h"
#include "weapon/emp.h"
#include "weapon/weapon.h"

Go to the source code of this file.


#define FADE_FACTOR   2
#define LOWEST_RED   50
#define LOWEST_GREEN   50
#define LOWEST_BLUE   50
#define NUM_DASHES   2


void hud_init_brackets ()
void draw_brackets_square (int x1, int y1, int x2, int y2, int resize_mode)
void draw_brackets_square_quick (int x1, int y1, int x2, int y2, int thick)
void draw_brackets_dashed_square_quick (int x1, int y1, int x2, int y2)
void draw_brackets_diamond (int x1, int y1, int x2, int y2)
void draw_brackets_diamond_quick (int x1, int y1, int x2, int y2)
void hud_target_show_dist_on_bracket (int x, int y, float distance, int font_num)
int num_ships_attacking (int target_objnum)
int draw_subsys_brackets (ship_subsys *subsys, int min_width, int min_height, bool draw, bool set_color, int *draw_coords)


char Ships_attack_fname [GR_NUM_RESOLUTIONS][MAX_FILENAME_LEN]
int Min_target_box_width [GR_NUM_RESOLUTIONS] = { 20, 30 }
int Min_target_box_height [GR_NUM_RESOLUTIONS] = { 20, 30 }
int Min_subtarget_box_width [GR_NUM_RESOLUTIONS] = { 12, 24 }
int Min_subtarget_box_height [GR_NUM_RESOLUTIONS] = { 12, 24 }
int HUD_drew_selection_bracket_on_target
int Cmdline_targetinfo
int Ships_attacking_bitmap = -1

Macro Definition Documentation

#define FADE_FACTOR   2

Definition at line 28 of file hudbrackets.cpp.

#define LOWEST_BLUE   50

Definition at line 31 of file hudbrackets.cpp.

#define LOWEST_GREEN   50

Definition at line 30 of file hudbrackets.cpp.

#define LOWEST_RED   50

Definition at line 29 of file hudbrackets.cpp.

#define NUM_DASHES   2

Definition at line 143 of file hudbrackets.cpp.

Function Documentation

void draw_brackets_dashed_square_quick ( int  x1,
int  y1,
int  x2,
int  y2 

Definition at line 144 of file hudbrackets.cpp.

void draw_brackets_diamond ( int  x1,
int  y1,
int  x2,
int  y2 

Definition at line 209 of file hudbrackets.cpp.

void draw_brackets_diamond_quick ( int  x1,
int  y1,
int  x2,
int  y2 

Definition at line 250 of file hudbrackets.cpp.

void draw_brackets_square ( int  x1,
int  y1,
int  x2,
int  y2,
int  resize_mode 

Definition at line 49 of file hudbrackets.cpp.

void draw_brackets_square_quick ( int  x1,
int  y1,
int  x2,
int  y2,
int  thick 

Definition at line 92 of file hudbrackets.cpp.

int draw_subsys_brackets ( ship_subsys subsys,
int  min_width,
int  min_height,
bool  draw,
bool  set_color,
int draw_coords 

Definition at line 593 of file hudbrackets.cpp.

void hud_init_brackets ( )

Definition at line 44 of file hudbrackets.cpp.

void hud_target_show_dist_on_bracket ( int  x,
int  y,
float  distance,
int  font_num 

Definition at line 384 of file hudbrackets.cpp.

int num_ships_attacking ( int  target_objnum)

Given an object number, return the number of ships attacking it.

Definition at line 9346 of file aicode.cpp.

Variable Documentation

int Cmdline_targetinfo

Definition at line 367 of file cmdline.cpp.

int HUD_drew_selection_bracket_on_target

Definition at line 3383 of file hudtarget.cpp.

int Min_subtarget_box_height[GR_NUM_RESOLUTIONS] = { 12, 24 }

Definition at line 42 of file hudbrackets.cpp.

int Min_subtarget_box_width[GR_NUM_RESOLUTIONS] = { 12, 24 }

Definition at line 41 of file hudbrackets.cpp.

int Min_target_box_height[GR_NUM_RESOLUTIONS] = { 20, 30 }

Definition at line 40 of file hudbrackets.cpp.

int Min_target_box_width[GR_NUM_RESOLUTIONS] = { 20, 30 }

Definition at line 39 of file hudbrackets.cpp.

Initial value:
= {

Definition at line 33 of file hudbrackets.cpp.

int Ships_attacking_bitmap = -1

Definition at line 414 of file hudbrackets.cpp.