Open source remastering of the Freespace 2 engine
HudGaugeObjectiveNotify Class Reference

#include <hud.h>

Inheritance diagram for HudGaugeObjectiveNotify:

Public Member Functions

 HudGaugeObjectiveNotify ()
void initBitmaps (const char *fname)
void initObjTextOffsetY (int y)
void initObjValueOffsetY (int y)
void initSubspaceTextOffsetY (int y)
void initSubspaceValueOffsetY (int y)
void initRedAlertTextOffsetY (int y)
void initRedAlertValueOffsetY (int y)
virtual void render (float frametime)
void startFlashNotify (int duration=1400)
bool maybeFlashNotify (bool flash_fast=false)
void renderObjective ()
void renderRedAlert ()
void renderSubspace ()
void pageIn ()
void initialize ()
- 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 Attributes

hud_frames Objective_display_gauge
int Objective_text_offset_y
int Objective_text_val_offset_y
int Subspace_text_offset_y
int Subspace_text_val_offset_y
int Red_text_offset_y
int Red_text_val_offset_y
int flash_timer [2]
bool flash_flag
- 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 386 of file hud.h.

Constructor & Destructor Documentation

HudGaugeObjectiveNotify::HudGaugeObjectiveNotify ( )

Definition at line 3246 of file hud.cpp.

Member Function Documentation

void HudGaugeObjectiveNotify::initBitmaps ( const char *  fname)

Definition at line 3282 of file hud.cpp.

void HudGaugeObjectiveNotify::initialize ( )

Reimplemented from HudGauge.

Definition at line 3290 of file hud.cpp.

void HudGaugeObjectiveNotify::initObjTextOffsetY ( int  y)

Definition at line 3252 of file hud.cpp.

void HudGaugeObjectiveNotify::initObjValueOffsetY ( int  y)

Definition at line 3257 of file hud.cpp.

void HudGaugeObjectiveNotify::initRedAlertTextOffsetY ( int  y)

Definition at line 3272 of file hud.cpp.

void HudGaugeObjectiveNotify::initRedAlertValueOffsetY ( int  y)

Definition at line 3277 of file hud.cpp.

void HudGaugeObjectiveNotify::initSubspaceTextOffsetY ( int  y)

Definition at line 3262 of file hud.cpp.

void HudGaugeObjectiveNotify::initSubspaceValueOffsetY ( int  y)

Definition at line 3267 of file hud.cpp.

bool HudGaugeObjectiveNotify::maybeFlashNotify ( bool  flash_fast = false)

Definition at line 3309 of file hud.cpp.

void HudGaugeObjectiveNotify::pageIn ( )

Reimplemented from HudGauge.

Definition at line 3299 of file hud.cpp.

void HudGaugeObjectiveNotify::render ( float  frametime)

Reimplemented from HudGauge.

Definition at line 3331 of file hud.cpp.

void HudGaugeObjectiveNotify::renderObjective ( )

Definition at line 3418 of file hud.cpp.

void HudGaugeObjectiveNotify::renderRedAlert ( )
Play a sound?

Definition at line 3378 of file hud.cpp.

void HudGaugeObjectiveNotify::renderSubspace ( )

Definition at line 3338 of file hud.cpp.

void HudGaugeObjectiveNotify::startFlashNotify ( int  duration = 1400)

Definition at line 3304 of file hud.cpp.

Member Data Documentation

bool HudGaugeObjectiveNotify::flash_flag

Definition at line 399 of file hud.h.

int HudGaugeObjectiveNotify::flash_timer[2]

Definition at line 398 of file hud.h.

hud_frames HudGaugeObjectiveNotify::Objective_display_gauge

Definition at line 389 of file hud.h.

int HudGaugeObjectiveNotify::Objective_text_offset_y

Definition at line 391 of file hud.h.

int HudGaugeObjectiveNotify::Objective_text_val_offset_y

Definition at line 392 of file hud.h.

int HudGaugeObjectiveNotify::Red_text_offset_y

Definition at line 395 of file hud.h.

int HudGaugeObjectiveNotify::Red_text_val_offset_y

Definition at line 396 of file hud.h.

int HudGaugeObjectiveNotify::Subspace_text_offset_y

Definition at line 393 of file hud.h.

int HudGaugeObjectiveNotify::Subspace_text_val_offset_y

Definition at line 394 of file hud.h.

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