Open source remastering of the Freespace 2 engine
HudGaugeWingmanStatus Class Reference

#include <hudwingmanstatus.h>

Inheritance diagram for HudGaugeWingmanStatus:

Public Member Functions

 HudGaugeWingmanStatus ()
void initBitmaps (char *fname_left, char *fname_middle, char *fname_right, char *fname_dots)
void initHeaderOffsets (int x, int y)
void initFixedHeaderPosition (bool fixed)
void initLeftFrameEndX (int x)
void initSingleWingOffsets (int x, int y)
void initMultipleWingOffsets (int x, int y)
void initWingWidth (int w)
void initRightBgOffset (int offset)
void initWingNameOffsets (int x, int y)
void initWingmate1Offsets (int x, int y)
void initWingmate2Offsets (int x, int y)
void initWingmate3Offsets (int x, int y)
void initWingmate4Offsets (int x, int y)
void initWingmate5Offsets (int x, int y)
void initWingmate6Offsets (int x, int y)
void initGrowMode (int mode)
void pageIn ()
void initialize ()
void render (float frametime)
void renderBackground (int num_wings_to_draw)
void renderDots (int wing_index, int screen_index, int num_wings_to_draw)
void initFlash ()
bool maybeFlashStatus (int wing_index, int wing_pos)
- Public Member Functions inherited from HudGauge
 HudGauge ()
 HudGauge (int _gauge_object, int _gauge_config, bool _slew, bool _message, int _disabled_views, int r, int g, int b)
 HudGauge (int _gauge_config, bool _slew, int r, int g, int b, char *_custom_name, char *_custom_text, char *frame_fname, int txtoffset_x, int txtoffset_y)
virtual ~HudGauge ()
void initPosition (int x, int y)
void initBaseResolution (int w, int h)
void initSlew (bool slew)
void initFont (int input_font_num)
void initCockpitTarget (const char *display_name, int _target_x, int _target_y, int _target_w, int _target_h, int _canvas_w, int _canvas_h)
void initRenderStatus (bool render)
int getConfigType ()
int getObjectType ()
void getPosition (int *x, int *y)
bool isOffbyDefault ()
bool isActive ()
void updateColor (int r, int g, int b, int a=255)
void lockConfigColor (bool lock)
void sexpLockConfigColor (bool lock)
void updateActive (bool show)
void updatePopUp (bool pop_up_flag)
void updateSexpOverride (bool sexp)
void startFlashSexp ()
int maybeFlashSexp ()
bool flashExpiredSexp ()
void resetTimers ()
const char * getCustomGaugeName ()
void updateCustomGaugeCoords (int _x, int _y)
void updateCustomGaugeFrame (int frame_offset)
void updateCustomGaugeText (const char *txt)
void updateCustomGaugeText (const SCP_string &txt)
const char * getCustomGaugeText ()
void startPopUp (int time=4000)
int popUpActive ()
virtual void preprocess ()
virtual bool canRender ()
virtual void onFrame (float frametime)
bool setupRenderCanvas (int render_target=-1)
void setCockpitTarget (const cockpit_display *display)
void resetCockpitTarget ()
void setFont ()
void setGaugeColor (int bright_index=-4)
void renderBitmap (int x, int y)
void renderBitmap (int frame, int x, int y)
void renderBitmapColor (int frame, int x, int y)
void renderBitmapUv (int frame, int x, int y, int w, int h, float u0, float v0, float u1, float v1)
void renderBitmapEx (int frame, int x, int y, int w, int h, int sx, int sy)
void renderString (int x, int y, const char *str)
void renderString (int x, int y, int gauge_id, const char *str)
void renderStringAlignCenter (int x, int y, int area_width, const char *s)
void renderPrintf (int x, int y, const char *format,...)
void renderPrintf (int x, int y, int gauge_id, const char *format,...)
void renderLine (int x1, int y1, int x2, int y2)
void renderGradientLine (int x1, int y1, int x2, int y2)
void renderRect (int x, int y, int w, int h)
void renderCircle (int x, int y, int diameter)
void unsize (int *x, int *y)
void unsize (float *x, float *y)
void resize (int *x, int *y)
void resize (float *x, float *y)
void setClip (int x, int y, int w, int h)
void resetClip ()

Protected Types


Protected Attributes

hud_frames Wingman_status_left
hud_frames Wingman_status_middle
hud_frames Wingman_status_right
hud_frames Wingman_status_dots
int header_offsets [2]
bool fixed_header_position
int left_frame_end_x
int right_frame_start_offset
int actual_origin [2]
int single_wing_offsets [2]
int multiple_wing_offsets [2]
int wing_width
int wing_name_offsets [2]
int grow_mode
int wingmate_offsets [MAX_SHIPS_PER_WING][2]
int flash_status
- Protected Attributes inherited from HudGauge
int position [2]
int base_w
int base_h
color gauge_color
int gauge_config
int gauge_object
int font_num
bool lock_color
bool sexp_lock_color
bool reticle_follow
bool active
bool off_by_default
bool sexp_override
bool pop_up
int popup_timer
bool message_gauge
int disabled_views
int flash_duration
int flash_next
bool flash_status
bool custom_gauge
hud_frames custom_frame
int custom_frame_offset
int textoffset_x
int textoffset_y
char custom_name [NAME_LENGTH]
SCP_string custom_text
SCP_string default_text
char texture_target_fname [MAX_FILENAME_LEN]
int texture_target
int canvas_w
int canvas_h
int target_w
int target_h
int target_x
int target_y
int display_offset_x
int display_offset_y

Detailed Description

Definition at line 33 of file hudwingmanstatus.h.

Member Enumeration Documentation

anonymous enum

Definition at line 52 of file hudwingmanstatus.h.

Constructor & Destructor Documentation

HudGaugeWingmanStatus::HudGaugeWingmanStatus ( )

Definition at line 205 of file hudwingmanstatus.cpp.

Member Function Documentation

void HudGaugeWingmanStatus::initBitmaps ( char *  fname_left,
char *  fname_middle,
char *  fname_right,
char *  fname_dots 

Definition at line 296 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initFixedHeaderPosition ( bool  fixed)

Definition at line 222 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initFlash ( )

Definition at line 549 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initGrowMode ( int  mode)

Definition at line 319 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initHeaderOffsets ( int  x,
int  y 

Definition at line 216 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initialize ( )

Reimplemented from HudGauge.

Definition at line 210 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initLeftFrameEndX ( int  x)

Definition at line 227 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initMultipleWingOffsets ( int  x,
int  y 

Definition at line 238 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initRightBgOffset ( int  offset)

Definition at line 249 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initSingleWingOffsets ( int  x,
int  y 

Definition at line 232 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initWingmate1Offsets ( int  x,
int  y 

Definition at line 260 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initWingmate2Offsets ( int  x,
int  y 

Definition at line 266 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initWingmate3Offsets ( int  x,
int  y 

Definition at line 272 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initWingmate4Offsets ( int  x,
int  y 

Definition at line 278 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initWingmate5Offsets ( int  x,
int  y 

Definition at line 284 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initWingmate6Offsets ( int  x,
int  y 

Definition at line 290 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initWingNameOffsets ( int  x,
int  y 

Definition at line 254 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::initWingWidth ( int  w)

Definition at line 244 of file hudwingmanstatus.cpp.

bool HudGaugeWingmanStatus::maybeFlashStatus ( int  wing_index,
int  wing_pos 

Definition at line 591 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::pageIn ( )

Reimplemented from HudGauge.

Definition at line 654 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::render ( float  frametime)

Reimplemented from HudGauge.

Definition at line 503 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::renderBackground ( int  num_wings_to_draw)

Definition at line 323 of file hudwingmanstatus.cpp.

void HudGaugeWingmanStatus::renderDots ( int  wing_index,
int  screen_index,
int  num_wings_to_draw 

Definition at line 391 of file hudwingmanstatus.cpp.

Member Data Documentation

int HudGaugeWingmanStatus::actual_origin[2]

Definition at line 46 of file hudwingmanstatus.h.

bool HudGaugeWingmanStatus::fixed_header_position

Definition at line 42 of file hudwingmanstatus.h.

int HudGaugeWingmanStatus::flash_status

Definition at line 58 of file hudwingmanstatus.h.

int HudGaugeWingmanStatus::grow_mode

Definition at line 53 of file hudwingmanstatus.h.

int HudGaugeWingmanStatus::header_offsets[2]

Definition at line 41 of file hudwingmanstatus.h.

int HudGaugeWingmanStatus::left_frame_end_x

Definition at line 43 of file hudwingmanstatus.h.

int HudGaugeWingmanStatus::multiple_wing_offsets[2]

Definition at line 48 of file hudwingmanstatus.h.

int HudGaugeWingmanStatus::next_flash[MAX_SQUADRON_WINGS][MAX_SHIPS_PER_WING]

Definition at line 57 of file hudwingmanstatus.h.

int HudGaugeWingmanStatus::right_frame_start_offset

Definition at line 44 of file hudwingmanstatus.h.

int HudGaugeWingmanStatus::single_wing_offsets[2]

Definition at line 47 of file hudwingmanstatus.h.

int HudGaugeWingmanStatus::wing_name_offsets[2]

Definition at line 50 of file hudwingmanstatus.h.

int HudGaugeWingmanStatus::wing_width

Definition at line 49 of file hudwingmanstatus.h.

hud_frames HudGaugeWingmanStatus::Wingman_status_dots

Definition at line 39 of file hudwingmanstatus.h.

hud_frames HudGaugeWingmanStatus::Wingman_status_left

Definition at line 36 of file hudwingmanstatus.h.

hud_frames HudGaugeWingmanStatus::Wingman_status_middle

Definition at line 37 of file hudwingmanstatus.h.

hud_frames HudGaugeWingmanStatus::Wingman_status_right

Definition at line 38 of file hudwingmanstatus.h.

int HudGaugeWingmanStatus::wingmate_offsets[MAX_SHIPS_PER_WING][2]

Definition at line 55 of file hudwingmanstatus.h.

The documentation for this class was generated from the following files: