Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
HeadUpDisplay.h File Reference
import "OOCocoa.h"
import "OOOpenGL.h"
import "OOTypes.h"
import "OOMaths.h"
import "MyOpenGLView.h"
import "ShipEntity.h"
+ Include dependency graph for HeadUpDisplay.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  HeadUpDisplay
 
category  NSString(OODisplayEncoding)
 
protocol  <OOHUDBeaconIcon>
 
category  NSString(OOHUDBeaconIcon)
 

Macros

#define SCANNER_CENTRE_X   0
 
#define SCANNER_CENTRE_Y   -180
 
#define SCANNER_SCALE   256
 
#define SCANNER_WIDTH   288
 
#define SCANNER_HEIGHT   72
 
#define SCANNER_MAX_ZOOM   5.0
 
#define SCANNER_ZOOM_LEVELS   5
 
#define ZOOM_INDICATOR_CENTRE_X   108
 
#define ZOOM_INDICATOR_CENTRE_Y   -216
 
#define ZOOM_INDICATOR_WIDTH   11.0f
 
#define ZOOM_INDICATOR_HEIGHT   14.0f
 
#define ZOOM_LEVELS_IMAGE   @"zoom.png"
 
#define COMPASS_IMAGE   @"compass.png"
 
#define COMPASS_CENTRE_X   132
 
#define COMPASS_CENTRE_Y   -216
 
#define COMPASS_SIZE   56
 
#define COMPASS_HALF_SIZE   28
 
#define COMPASS_REDDOT_IMAGE   @"reddot.png"
 
#define COMPASS_GREENDOT_IMAGE   @"greendot.png"
 
#define COMPASS_DOT_SIZE   16
 
#define COMPASS_HALF_DOT_SIZE   8
 
#define AEGIS_IMAGE   @"aegis.png"
 
#define AEGIS_CENTRE_X   -132
 
#define AEGIS_CENTRE_Y   -216
 
#define AEGIS_WIDTH   24
 
#define AEGIS_HEIGHT   24
 
#define SPEED_BAR_CENTRE_X   200
 
#define SPEED_BAR_CENTRE_Y   -145
 
#define SPEED_BAR_WIDTH   80
 
#define SPEED_BAR_HEIGHT   8
 
#define SPEED_BAR_DRAW_SURROUND   YES
 
#define ROLL_BAR_CENTRE_X   200
 
#define ROLL_BAR_CENTRE_Y   -160
 
#define ROLL_BAR_WIDTH   80
 
#define ROLL_BAR_HEIGHT   8
 
#define ROLL_BAR_DRAW_SURROUND   YES
 
#define PITCH_BAR_CENTRE_X   200
 
#define PITCH_BAR_CENTRE_Y   -170
 
#define PITCH_BAR_WIDTH   80
 
#define PITCH_BAR_HEIGHT   8
 
#define PITCH_BAR_DRAW_SURROUND   YES
 
#define ENERGY_GAUGE_CENTRE_X   200
 
#define ENERGY_GAUGE_CENTRE_Y   -205
 
#define ENERGY_GAUGE_WIDTH   80
 
#define ENERGY_GAUGE_HEIGHT   48
 
#define ENERGY_GAUGE_DRAW_SURROUND   YES
 
#define FORWARD_SHIELD_BAR_CENTRE_X   -200
 
#define FORWARD_SHIELD_BAR_CENTRE_Y   -146
 
#define FORWARD_SHIELD_BAR_WIDTH   80
 
#define FORWARD_SHIELD_BAR_HEIGHT   8
 
#define FORWARD_SHIELD_BAR_DRAW_SURROUND   YES
 
#define AFT_SHIELD_BAR_CENTRE_X   -200
 
#define AFT_SHIELD_BAR_CENTRE_Y   -162
 
#define AFT_SHIELD_BAR_WIDTH   80
 
#define AFT_SHIELD_BAR_HEIGHT   8
 
#define AFT_SHIELD_BAR_DRAW_SURROUND   YES
 
#define FUEL_BAR_CENTRE_X   -200
 
#define FUEL_BAR_CENTRE_Y   -179
 
#define FUEL_BAR_WIDTH   80
 
#define FUEL_BAR_HEIGHT   8
 
#define WITCHDEST_CENTRE_X   -200
 
#define WITCHDEST_CENTRE_Y   -179
 
#define WITCHDEST_WIDTH   80
 
#define WITCHDEST_HEIGHT   8
 
#define CABIN_TEMP_BAR_CENTRE_X   -200
 
#define CABIN_TEMP_BAR_CENTRE_Y   -189
 
#define CABIN_TEMP_BAR_WIDTH   80
 
#define CABIN_TEMP_BAR_HEIGHT   8
 
#define WEAPON_TEMP_BAR_CENTRE_X   -200
 
#define WEAPON_TEMP_BAR_CENTRE_Y   -199
 
#define WEAPON_TEMP_BAR_WIDTH   80
 
#define WEAPON_TEMP_BAR_HEIGHT   8
 
#define ALTITUDE_BAR_CENTRE_X   -200
 
#define ALTITUDE_BAR_CENTRE_Y   -209
 
#define ALTITUDE_BAR_WIDTH   80
 
#define ALTITUDE_BAR_HEIGHT   8
 
#define MISSILES_DISPLAY_X   -228
 
#define MISSILES_DISPLAY_Y   -224
 
#define MISSILES_DISPLAY_SPACING   16
 
#define MISSILE_ICON_WIDTH   12
 
#define MISSILE_ICON_HEIGHT   MISSILE_ICON_WIDTH
 
#define PRIMED_DISPLAY_X   -144
 
#define PRIMED_DISPLAY_Y   -256
 
#define PRIMED_DISPLAY_WIDTH   12
 
#define PRIMED_DISPLAY_HEIGHT   12
 
#define ASCTARGET_DISPLAY_X   64
 
#define ASCTARGET_DISPLAY_Y   -234
 
#define ASCTARGET_DISPLAY_WIDTH   10
 
#define ASCTARGET_DISPLAY_HEIGHT   10
 
#define CLOCK_DISPLAY_X   -44
 
#define CLOCK_DISPLAY_Y   -234
 
#define CLOCK_DISPLAY_WIDTH   12
 
#define CLOCK_DISPLAY_HEIGHT   12
 
#define WEAPONSOFFLINETEXT_DISPLAY_X   -175
 
#define WEAPONSOFFLINETEXT_DISPLAY_Y   2
 
#define WEAPONSOFFLINETEXT_WIDTH   8
 
#define WEAPONSOFFLINETEXT_HEIGHT   8
 
#define FPSINFO_DISPLAY_X   -300
 
#define FPSINFO_DISPLAY_Y   220
 
#define FPSINFO_DISPLAY_WIDTH   12
 
#define FPSINFO_DISPLAY_HEIGHT   12
 
#define STATUS_LIGHT_CENTRE_X   -108
 
#define STATUS_LIGHT_CENTRE_Y   -216
 
#define STATUS_LIGHT_WIDTH   8
 
#define STATUS_LIGHT_HEIGHT   8
 
#define HIT_INDICATOR_CENTRE_X   200
 
#define HIT_INDICATOR_CENTRE_Y   0
 
#define SCOOPSTATUS_CENTRE_X   -132
 
#define SCOOPSTATUS_CENTRE_Y   -152
 
#define SCOOPSTATUS_WIDTH   16.0
 
#define SCOOPSTATUS_HEIGHT   16.0
 
#define MFD_TEXT_WIDTH   10
 
#define MFD_TEXT_HEIGHT   10
 
#define DIALS_KEY   @"dials"
 
#define LEGENDS_KEY   @"legends"
 
#define MFDS_KEY   @"multi_function_displays"
 
#define X_KEY   @"x"
 
#define Y_KEY   @"y"
 
#define X_ORIGIN_KEY   @"x_origin"
 
#define Y_ORIGIN_KEY   @"y_origin"
 
#define SPACING_KEY   @"spacing"
 
#define ALPHA_KEY   @"alpha"
 
#define SELECTOR_KEY   @"selector"
 
#define IMAGE_KEY   @"image"
 
#define WIDTH_KEY   @"width"
 
#define HEIGHT_KEY   @"height"
 
#define SPRITE_KEY   @"sprite"
 
#define DRAW_SURROUND_KEY   @"draw_surround"
 
#define EQUIPMENT_REQUIRED_KEY   @"equipment_required"
 
#define ALERT_CONDITIONS_KEY   @"alert_conditions"
 
#define VIEWSCREEN_KEY   @"viewscreen_only"
 
#define DIAL_REQUIRED_KEY   @"with_dial"
 
#define LABELLED_KEY   @"labelled"
 
#define TEXT_KEY   @"text"
 
#define RGB_COLOR_KEY   @"rgb_color"
 
#define COLOR_KEY   @"color"
 
#define COLOR_KEY_LOW   @"color_low"
 
#define COLOR_KEY_MEDIUM   @"color_medium"
 
#define COLOR_KEY_HIGH   @"color_high"
 
#define COLOR_KEY_CRITICAL   @"color_critical"
 
#define COLOR_KEY_SURROUND   @"color_surround"
 
#define N_BARS_KEY   @"n_bars"
 
#define CUSTOM_DIAL_KEY   @"data_source"
 
#define ROWS_KEY   @"rows"
 
#define COLUMNS_KEY   @"columns"
 
#define ROW_HEIGHT_KEY   @"row_height"
 
#define ROW_START_KEY   @"row_start"
 
#define TITLE_KEY   @"title"
 
#define BACKGROUND_RGBA_KEY   @"background_rgba"
 
#define OVERALL_ALPHA_KEY   @"overall_alpha"
 
#define NONLINEAR_SCANNER   @"nonlinear_scanner"
 
#define Z1   [(MyOpenGLView *)[[player universe] gameView] display_z]
 
#define ONE_EIGHTH   0.125
 
#define MAX_ACCURACY_RANGE   7000
 
#define ACCURACY_PROBABILITY_DECREASE_FACTOR   0.000035f
 
#define MIN_PROBABILITY_ACCURACY   0.35f
 

Enumerations

enum  { OO_RETICLE_COLOR_TARGET = 0 , OO_RETICLE_COLOR_TARGET_SENSITIVE , OO_RETICLE_COLOR_WORMHOLE }
 

Functions

void OODrawString (NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
 
void OODrawStringAligned (NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz, BOOL rightAlign)
 
void OOStartDrawingStrings (void)
 
void OODrawStringQuadsAligned (NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz, BOOL rightAlign)
 
void OOStopDrawingStrings (void)
 
void OODrawHilightedString (NSString *text, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
 
void OODrawPlanetInfo (int gov, int eco, int tec, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
 
void OODrawHilightedPlanetInfo (int gov, int eco, int tec, GLfloat x, GLfloat y, GLfloat z, NSSize siz)
 
NSRect OORectFromString (NSString *text, GLfloat x, GLfloat y, NSSize siz)
 
CGFloat OOStringWidthInEm (NSString *text)
 
void OOHUDResetTextEngine (void)
 

Macro Definition Documentation

◆ ACCURACY_PROBABILITY_DECREASE_FACTOR

#define ACCURACY_PROBABILITY_DECREASE_FACTOR   0.000035f

Definition at line 223 of file HeadUpDisplay.h.

Referenced by HeadUpDisplay::hudDrawReticleOnTarget.

◆ AEGIS_CENTRE_X

#define AEGIS_CENTRE_X   -132

Definition at line 65 of file HeadUpDisplay.h.

◆ AEGIS_CENTRE_Y

#define AEGIS_CENTRE_Y   -216

Definition at line 66 of file HeadUpDisplay.h.

◆ AEGIS_HEIGHT

#define AEGIS_HEIGHT   24

Definition at line 68 of file HeadUpDisplay.h.

◆ AEGIS_IMAGE

#define AEGIS_IMAGE   @"aegis.png"

Definition at line 64 of file HeadUpDisplay.h.

◆ AEGIS_WIDTH

#define AEGIS_WIDTH   24

Definition at line 67 of file HeadUpDisplay.h.

◆ AFT_SHIELD_BAR_CENTRE_X

#define AFT_SHIELD_BAR_CENTRE_X   -200

Definition at line 100 of file HeadUpDisplay.h.

◆ AFT_SHIELD_BAR_CENTRE_Y

#define AFT_SHIELD_BAR_CENTRE_Y   -162

Definition at line 101 of file HeadUpDisplay.h.

◆ AFT_SHIELD_BAR_DRAW_SURROUND

#define AFT_SHIELD_BAR_DRAW_SURROUND   YES

Definition at line 104 of file HeadUpDisplay.h.

◆ AFT_SHIELD_BAR_HEIGHT

#define AFT_SHIELD_BAR_HEIGHT   8

Definition at line 103 of file HeadUpDisplay.h.

◆ AFT_SHIELD_BAR_WIDTH

#define AFT_SHIELD_BAR_WIDTH   80

Definition at line 102 of file HeadUpDisplay.h.

◆ ALERT_CONDITIONS_KEY

#define ALERT_CONDITIONS_KEY   @"alert_conditions"

Definition at line 194 of file HeadUpDisplay.h.

◆ ALPHA_KEY

#define ALPHA_KEY   @"alpha"

Definition at line 186 of file HeadUpDisplay.h.

Referenced by GetRGBAArrayFromInfo().

◆ ALTITUDE_BAR_CENTRE_X

#define ALTITUDE_BAR_CENTRE_X   -200

Definition at line 126 of file HeadUpDisplay.h.

◆ ALTITUDE_BAR_CENTRE_Y

#define ALTITUDE_BAR_CENTRE_Y   -209

Definition at line 127 of file HeadUpDisplay.h.

◆ ALTITUDE_BAR_HEIGHT

#define ALTITUDE_BAR_HEIGHT   8

Definition at line 129 of file HeadUpDisplay.h.

◆ ALTITUDE_BAR_WIDTH

#define ALTITUDE_BAR_WIDTH   80

Definition at line 128 of file HeadUpDisplay.h.

◆ ASCTARGET_DISPLAY_HEIGHT

#define ASCTARGET_DISPLAY_HEIGHT   10

Definition at line 145 of file HeadUpDisplay.h.

◆ ASCTARGET_DISPLAY_WIDTH

#define ASCTARGET_DISPLAY_WIDTH   10

Definition at line 144 of file HeadUpDisplay.h.

◆ ASCTARGET_DISPLAY_X

#define ASCTARGET_DISPLAY_X   64

Definition at line 142 of file HeadUpDisplay.h.

◆ ASCTARGET_DISPLAY_Y

#define ASCTARGET_DISPLAY_Y   -234

Definition at line 143 of file HeadUpDisplay.h.

◆ BACKGROUND_RGBA_KEY

#define BACKGROUND_RGBA_KEY   @"background_rgba"

Definition at line 214 of file HeadUpDisplay.h.

◆ CABIN_TEMP_BAR_CENTRE_X

#define CABIN_TEMP_BAR_CENTRE_X   -200

Definition at line 116 of file HeadUpDisplay.h.

◆ CABIN_TEMP_BAR_CENTRE_Y

#define CABIN_TEMP_BAR_CENTRE_Y   -189

Definition at line 117 of file HeadUpDisplay.h.

◆ CABIN_TEMP_BAR_HEIGHT

#define CABIN_TEMP_BAR_HEIGHT   8

Definition at line 119 of file HeadUpDisplay.h.

◆ CABIN_TEMP_BAR_WIDTH

#define CABIN_TEMP_BAR_WIDTH   80

Definition at line 118 of file HeadUpDisplay.h.

◆ CLOCK_DISPLAY_HEIGHT

#define CLOCK_DISPLAY_HEIGHT   12

Definition at line 150 of file HeadUpDisplay.h.

◆ CLOCK_DISPLAY_WIDTH

#define CLOCK_DISPLAY_WIDTH   12

Definition at line 149 of file HeadUpDisplay.h.

◆ CLOCK_DISPLAY_X

#define CLOCK_DISPLAY_X   -44

Definition at line 147 of file HeadUpDisplay.h.

◆ CLOCK_DISPLAY_Y

#define CLOCK_DISPLAY_Y   -234

Definition at line 148 of file HeadUpDisplay.h.

◆ COLOR_KEY

#define COLOR_KEY   @"color"

Definition at line 200 of file HeadUpDisplay.h.

◆ COLOR_KEY_CRITICAL

#define COLOR_KEY_CRITICAL   @"color_critical"

Definition at line 204 of file HeadUpDisplay.h.

◆ COLOR_KEY_HIGH

#define COLOR_KEY_HIGH   @"color_high"

Definition at line 203 of file HeadUpDisplay.h.

◆ COLOR_KEY_LOW

#define COLOR_KEY_LOW   @"color_low"

Definition at line 201 of file HeadUpDisplay.h.

◆ COLOR_KEY_MEDIUM

#define COLOR_KEY_MEDIUM   @"color_medium"

Definition at line 202 of file HeadUpDisplay.h.

◆ COLOR_KEY_SURROUND

#define COLOR_KEY_SURROUND   @"color_surround"

Definition at line 205 of file HeadUpDisplay.h.

◆ COLUMNS_KEY

#define COLUMNS_KEY   @"columns"

Definition at line 210 of file HeadUpDisplay.h.

◆ COMPASS_CENTRE_X

#define COMPASS_CENTRE_X   132

Definition at line 55 of file HeadUpDisplay.h.

◆ COMPASS_CENTRE_Y

#define COMPASS_CENTRE_Y   -216

Definition at line 56 of file HeadUpDisplay.h.

◆ COMPASS_DOT_SIZE

#define COMPASS_DOT_SIZE   16

Definition at line 61 of file HeadUpDisplay.h.

◆ COMPASS_GREENDOT_IMAGE

#define COMPASS_GREENDOT_IMAGE   @"greendot.png"

Definition at line 60 of file HeadUpDisplay.h.

◆ COMPASS_HALF_DOT_SIZE

#define COMPASS_HALF_DOT_SIZE   8

Definition at line 62 of file HeadUpDisplay.h.

◆ COMPASS_HALF_SIZE

#define COMPASS_HALF_SIZE   28

Definition at line 58 of file HeadUpDisplay.h.

◆ COMPASS_IMAGE

#define COMPASS_IMAGE   @"compass.png"

Definition at line 54 of file HeadUpDisplay.h.

◆ COMPASS_REDDOT_IMAGE

#define COMPASS_REDDOT_IMAGE   @"reddot.png"

Definition at line 59 of file HeadUpDisplay.h.

◆ COMPASS_SIZE

#define COMPASS_SIZE   56

Definition at line 57 of file HeadUpDisplay.h.

◆ CUSTOM_DIAL_KEY

#define CUSTOM_DIAL_KEY   @"data_source"

Definition at line 207 of file HeadUpDisplay.h.

◆ DIAL_REQUIRED_KEY

#define DIAL_REQUIRED_KEY   @"with_dial"

Definition at line 196 of file HeadUpDisplay.h.

◆ DIALS_KEY

#define DIALS_KEY   @"dials"

Definition at line 178 of file HeadUpDisplay.h.

◆ DRAW_SURROUND_KEY

#define DRAW_SURROUND_KEY   @"draw_surround"

Definition at line 192 of file HeadUpDisplay.h.

◆ ENERGY_GAUGE_CENTRE_X

#define ENERGY_GAUGE_CENTRE_X   200

Definition at line 88 of file HeadUpDisplay.h.

◆ ENERGY_GAUGE_CENTRE_Y

#define ENERGY_GAUGE_CENTRE_Y   -205

Definition at line 89 of file HeadUpDisplay.h.

◆ ENERGY_GAUGE_DRAW_SURROUND

#define ENERGY_GAUGE_DRAW_SURROUND   YES

Definition at line 92 of file HeadUpDisplay.h.

◆ ENERGY_GAUGE_HEIGHT

#define ENERGY_GAUGE_HEIGHT   48

Definition at line 91 of file HeadUpDisplay.h.

◆ ENERGY_GAUGE_WIDTH

#define ENERGY_GAUGE_WIDTH   80

Definition at line 90 of file HeadUpDisplay.h.

◆ EQUIPMENT_REQUIRED_KEY

#define EQUIPMENT_REQUIRED_KEY   @"equipment_required"

Definition at line 193 of file HeadUpDisplay.h.

◆ FORWARD_SHIELD_BAR_CENTRE_X

#define FORWARD_SHIELD_BAR_CENTRE_X   -200

Definition at line 94 of file HeadUpDisplay.h.

◆ FORWARD_SHIELD_BAR_CENTRE_Y

#define FORWARD_SHIELD_BAR_CENTRE_Y   -146

Definition at line 95 of file HeadUpDisplay.h.

◆ FORWARD_SHIELD_BAR_DRAW_SURROUND

#define FORWARD_SHIELD_BAR_DRAW_SURROUND   YES

Definition at line 98 of file HeadUpDisplay.h.

◆ FORWARD_SHIELD_BAR_HEIGHT

#define FORWARD_SHIELD_BAR_HEIGHT   8

Definition at line 97 of file HeadUpDisplay.h.

◆ FORWARD_SHIELD_BAR_WIDTH

#define FORWARD_SHIELD_BAR_WIDTH   80

Definition at line 96 of file HeadUpDisplay.h.

◆ FPSINFO_DISPLAY_HEIGHT

#define FPSINFO_DISPLAY_HEIGHT   12

Definition at line 160 of file HeadUpDisplay.h.

◆ FPSINFO_DISPLAY_WIDTH

#define FPSINFO_DISPLAY_WIDTH   12

Definition at line 159 of file HeadUpDisplay.h.

◆ FPSINFO_DISPLAY_X

#define FPSINFO_DISPLAY_X   -300

Definition at line 157 of file HeadUpDisplay.h.

◆ FPSINFO_DISPLAY_Y

#define FPSINFO_DISPLAY_Y   220

Definition at line 158 of file HeadUpDisplay.h.

◆ FUEL_BAR_CENTRE_X

#define FUEL_BAR_CENTRE_X   -200

Definition at line 106 of file HeadUpDisplay.h.

◆ FUEL_BAR_CENTRE_Y

#define FUEL_BAR_CENTRE_Y   -179

Definition at line 107 of file HeadUpDisplay.h.

◆ FUEL_BAR_HEIGHT

#define FUEL_BAR_HEIGHT   8

Definition at line 109 of file HeadUpDisplay.h.

◆ FUEL_BAR_WIDTH

#define FUEL_BAR_WIDTH   80

Definition at line 108 of file HeadUpDisplay.h.

◆ HEIGHT_KEY

#define HEIGHT_KEY   @"height"

Definition at line 190 of file HeadUpDisplay.h.

◆ HIT_INDICATOR_CENTRE_X

#define HIT_INDICATOR_CENTRE_X   200

Definition at line 167 of file HeadUpDisplay.h.

◆ HIT_INDICATOR_CENTRE_Y

#define HIT_INDICATOR_CENTRE_Y   0

Definition at line 168 of file HeadUpDisplay.h.

◆ IMAGE_KEY

#define IMAGE_KEY   @"image"

Definition at line 188 of file HeadUpDisplay.h.

◆ LABELLED_KEY

#define LABELLED_KEY   @"labelled"

Definition at line 197 of file HeadUpDisplay.h.

◆ LEGENDS_KEY

#define LEGENDS_KEY   @"legends"

Definition at line 179 of file HeadUpDisplay.h.

◆ MAX_ACCURACY_RANGE

#define MAX_ACCURACY_RANGE   7000

Definition at line 222 of file HeadUpDisplay.h.

Referenced by HeadUpDisplay::hudDrawReticleOnTarget.

◆ MFD_TEXT_HEIGHT

#define MFD_TEXT_HEIGHT   10

Definition at line 176 of file HeadUpDisplay.h.

◆ MFD_TEXT_WIDTH

#define MFD_TEXT_WIDTH   10

Definition at line 175 of file HeadUpDisplay.h.

◆ MFDS_KEY

#define MFDS_KEY   @"multi_function_displays"

Definition at line 180 of file HeadUpDisplay.h.

◆ MIN_PROBABILITY_ACCURACY

#define MIN_PROBABILITY_ACCURACY   0.35f

Definition at line 224 of file HeadUpDisplay.h.

Referenced by HeadUpDisplay::hudDrawReticleOnTarget.

◆ MISSILE_ICON_HEIGHT

#define MISSILE_ICON_HEIGHT   MISSILE_ICON_WIDTH

Definition at line 135 of file HeadUpDisplay.h.

◆ MISSILE_ICON_WIDTH

#define MISSILE_ICON_WIDTH   12

Definition at line 134 of file HeadUpDisplay.h.

◆ MISSILES_DISPLAY_SPACING

#define MISSILES_DISPLAY_SPACING   16

Definition at line 133 of file HeadUpDisplay.h.

◆ MISSILES_DISPLAY_X

#define MISSILES_DISPLAY_X   -228

Definition at line 131 of file HeadUpDisplay.h.

◆ MISSILES_DISPLAY_Y

#define MISSILES_DISPLAY_Y   -224

Definition at line 132 of file HeadUpDisplay.h.

◆ N_BARS_KEY

#define N_BARS_KEY   @"n_bars"

Definition at line 206 of file HeadUpDisplay.h.

◆ NONLINEAR_SCANNER

#define NONLINEAR_SCANNER   @"nonlinear_scanner"

Definition at line 216 of file HeadUpDisplay.h.

◆ ONE_EIGHTH

#define ONE_EIGHTH   0.125

Definition at line 220 of file HeadUpDisplay.h.

Referenced by HeadUpDisplay::drawCharacterQuad.

◆ OVERALL_ALPHA_KEY

#define OVERALL_ALPHA_KEY   @"overall_alpha"

Definition at line 215 of file HeadUpDisplay.h.

◆ PITCH_BAR_CENTRE_X

#define PITCH_BAR_CENTRE_X   200

Definition at line 82 of file HeadUpDisplay.h.

◆ PITCH_BAR_CENTRE_Y

#define PITCH_BAR_CENTRE_Y   -170

Definition at line 83 of file HeadUpDisplay.h.

◆ PITCH_BAR_DRAW_SURROUND

#define PITCH_BAR_DRAW_SURROUND   YES

Definition at line 86 of file HeadUpDisplay.h.

◆ PITCH_BAR_HEIGHT

#define PITCH_BAR_HEIGHT   8

Definition at line 85 of file HeadUpDisplay.h.

◆ PITCH_BAR_WIDTH

#define PITCH_BAR_WIDTH   80

Definition at line 84 of file HeadUpDisplay.h.

◆ PRIMED_DISPLAY_HEIGHT

#define PRIMED_DISPLAY_HEIGHT   12

Definition at line 140 of file HeadUpDisplay.h.

◆ PRIMED_DISPLAY_WIDTH

#define PRIMED_DISPLAY_WIDTH   12

Definition at line 139 of file HeadUpDisplay.h.

◆ PRIMED_DISPLAY_X

#define PRIMED_DISPLAY_X   -144

Definition at line 137 of file HeadUpDisplay.h.

◆ PRIMED_DISPLAY_Y

#define PRIMED_DISPLAY_Y   -256

Definition at line 138 of file HeadUpDisplay.h.

◆ RGB_COLOR_KEY

#define RGB_COLOR_KEY   @"rgb_color"

Definition at line 199 of file HeadUpDisplay.h.

◆ ROLL_BAR_CENTRE_X

#define ROLL_BAR_CENTRE_X   200

Definition at line 76 of file HeadUpDisplay.h.

◆ ROLL_BAR_CENTRE_Y

#define ROLL_BAR_CENTRE_Y   -160

Definition at line 77 of file HeadUpDisplay.h.

◆ ROLL_BAR_DRAW_SURROUND

#define ROLL_BAR_DRAW_SURROUND   YES

Definition at line 80 of file HeadUpDisplay.h.

◆ ROLL_BAR_HEIGHT

#define ROLL_BAR_HEIGHT   8

Definition at line 79 of file HeadUpDisplay.h.

◆ ROLL_BAR_WIDTH

#define ROLL_BAR_WIDTH   80

Definition at line 78 of file HeadUpDisplay.h.

◆ ROW_HEIGHT_KEY

#define ROW_HEIGHT_KEY   @"row_height"

Definition at line 211 of file HeadUpDisplay.h.

◆ ROW_START_KEY

#define ROW_START_KEY   @"row_start"

Definition at line 212 of file HeadUpDisplay.h.

◆ ROWS_KEY

#define ROWS_KEY   @"rows"

Definition at line 209 of file HeadUpDisplay.h.

◆ SCANNER_CENTRE_X

#define SCANNER_CENTRE_X   0

Definition at line 40 of file HeadUpDisplay.h.

◆ SCANNER_CENTRE_Y

#define SCANNER_CENTRE_Y   -180

Definition at line 41 of file HeadUpDisplay.h.

◆ SCANNER_HEIGHT

#define SCANNER_HEIGHT   72

Definition at line 44 of file HeadUpDisplay.h.

◆ SCANNER_MAX_ZOOM

#define SCANNER_MAX_ZOOM   5.0

Definition at line 46 of file HeadUpDisplay.h.

◆ SCANNER_SCALE

#define SCANNER_SCALE   256

Definition at line 42 of file HeadUpDisplay.h.

◆ SCANNER_WIDTH

#define SCANNER_WIDTH   288

Definition at line 43 of file HeadUpDisplay.h.

◆ SCANNER_ZOOM_LEVELS

#define SCANNER_ZOOM_LEVELS   5

Definition at line 47 of file HeadUpDisplay.h.

◆ SCOOPSTATUS_CENTRE_X

#define SCOOPSTATUS_CENTRE_X   -132

Definition at line 170 of file HeadUpDisplay.h.

◆ SCOOPSTATUS_CENTRE_Y

#define SCOOPSTATUS_CENTRE_Y   -152

Definition at line 171 of file HeadUpDisplay.h.

◆ SCOOPSTATUS_HEIGHT

#define SCOOPSTATUS_HEIGHT   16.0

Definition at line 173 of file HeadUpDisplay.h.

◆ SCOOPSTATUS_WIDTH

#define SCOOPSTATUS_WIDTH   16.0

Definition at line 172 of file HeadUpDisplay.h.

◆ SELECTOR_KEY

#define SELECTOR_KEY   @"selector"

Definition at line 187 of file HeadUpDisplay.h.

◆ SPACING_KEY

#define SPACING_KEY   @"spacing"

Definition at line 185 of file HeadUpDisplay.h.

◆ SPEED_BAR_CENTRE_X

#define SPEED_BAR_CENTRE_X   200

Definition at line 70 of file HeadUpDisplay.h.

◆ SPEED_BAR_CENTRE_Y

#define SPEED_BAR_CENTRE_Y   -145

Definition at line 71 of file HeadUpDisplay.h.

◆ SPEED_BAR_DRAW_SURROUND

#define SPEED_BAR_DRAW_SURROUND   YES

Definition at line 74 of file HeadUpDisplay.h.

◆ SPEED_BAR_HEIGHT

#define SPEED_BAR_HEIGHT   8

Definition at line 73 of file HeadUpDisplay.h.

◆ SPEED_BAR_WIDTH

#define SPEED_BAR_WIDTH   80

Definition at line 72 of file HeadUpDisplay.h.

◆ SPRITE_KEY

#define SPRITE_KEY   @"sprite"

Definition at line 191 of file HeadUpDisplay.h.

◆ STATUS_LIGHT_CENTRE_X

#define STATUS_LIGHT_CENTRE_X   -108

Definition at line 162 of file HeadUpDisplay.h.

◆ STATUS_LIGHT_CENTRE_Y

#define STATUS_LIGHT_CENTRE_Y   -216

Definition at line 163 of file HeadUpDisplay.h.

◆ STATUS_LIGHT_HEIGHT

#define STATUS_LIGHT_HEIGHT   8

Definition at line 165 of file HeadUpDisplay.h.

◆ STATUS_LIGHT_WIDTH

#define STATUS_LIGHT_WIDTH   8

Definition at line 164 of file HeadUpDisplay.h.

◆ TEXT_KEY

#define TEXT_KEY   @"text"

Definition at line 198 of file HeadUpDisplay.h.

◆ TITLE_KEY

#define TITLE_KEY   @"title"

Definition at line 213 of file HeadUpDisplay.h.

◆ VIEWSCREEN_KEY

#define VIEWSCREEN_KEY   @"viewscreen_only"

Definition at line 195 of file HeadUpDisplay.h.

◆ WEAPON_TEMP_BAR_CENTRE_X

#define WEAPON_TEMP_BAR_CENTRE_X   -200

Definition at line 121 of file HeadUpDisplay.h.

◆ WEAPON_TEMP_BAR_CENTRE_Y

#define WEAPON_TEMP_BAR_CENTRE_Y   -199

Definition at line 122 of file HeadUpDisplay.h.

◆ WEAPON_TEMP_BAR_HEIGHT

#define WEAPON_TEMP_BAR_HEIGHT   8

Definition at line 124 of file HeadUpDisplay.h.

◆ WEAPON_TEMP_BAR_WIDTH

#define WEAPON_TEMP_BAR_WIDTH   80

Definition at line 123 of file HeadUpDisplay.h.

◆ WEAPONSOFFLINETEXT_DISPLAY_X

#define WEAPONSOFFLINETEXT_DISPLAY_X   -175

Definition at line 152 of file HeadUpDisplay.h.

◆ WEAPONSOFFLINETEXT_DISPLAY_Y

#define WEAPONSOFFLINETEXT_DISPLAY_Y   2

Definition at line 153 of file HeadUpDisplay.h.

◆ WEAPONSOFFLINETEXT_HEIGHT

#define WEAPONSOFFLINETEXT_HEIGHT   8

Definition at line 155 of file HeadUpDisplay.h.

◆ WEAPONSOFFLINETEXT_WIDTH

#define WEAPONSOFFLINETEXT_WIDTH   8

Definition at line 154 of file HeadUpDisplay.h.

◆ WIDTH_KEY

#define WIDTH_KEY   @"width"

Definition at line 189 of file HeadUpDisplay.h.

◆ WITCHDEST_CENTRE_X

#define WITCHDEST_CENTRE_X   -200

Definition at line 111 of file HeadUpDisplay.h.

◆ WITCHDEST_CENTRE_Y

#define WITCHDEST_CENTRE_Y   -179

Definition at line 112 of file HeadUpDisplay.h.

◆ WITCHDEST_HEIGHT

#define WITCHDEST_HEIGHT   8

Definition at line 114 of file HeadUpDisplay.h.

◆ WITCHDEST_WIDTH

#define WITCHDEST_WIDTH   80

Definition at line 113 of file HeadUpDisplay.h.

◆ X_KEY

#define X_KEY   @"x"

Definition at line 181 of file HeadUpDisplay.h.

◆ X_ORIGIN_KEY

#define X_ORIGIN_KEY   @"x_origin"

Definition at line 183 of file HeadUpDisplay.h.

◆ Y_KEY

#define Y_KEY   @"y"

Definition at line 182 of file HeadUpDisplay.h.

◆ Y_ORIGIN_KEY

#define Y_ORIGIN_KEY   @"y_origin"

Definition at line 184 of file HeadUpDisplay.h.

◆ Z1

#define Z1   [(MyOpenGLView *)[[player universe] gameView] display_z]

Definition at line 218 of file HeadUpDisplay.h.

◆ ZOOM_INDICATOR_CENTRE_X

#define ZOOM_INDICATOR_CENTRE_X   108

Definition at line 48 of file HeadUpDisplay.h.

◆ ZOOM_INDICATOR_CENTRE_Y

#define ZOOM_INDICATOR_CENTRE_Y   -216

Definition at line 49 of file HeadUpDisplay.h.

◆ ZOOM_INDICATOR_HEIGHT

#define ZOOM_INDICATOR_HEIGHT   14.0f

Definition at line 51 of file HeadUpDisplay.h.

◆ ZOOM_INDICATOR_WIDTH

#define ZOOM_INDICATOR_WIDTH   11.0f

Definition at line 50 of file HeadUpDisplay.h.

◆ ZOOM_LEVELS_IMAGE

#define ZOOM_LEVELS_IMAGE   @"zoom.png"

Definition at line 52 of file HeadUpDisplay.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OO_RETICLE_COLOR_TARGET 
OO_RETICLE_COLOR_TARGET_SENSITIVE 
OO_RETICLE_COLOR_WORMHOLE 

Definition at line 226 of file HeadUpDisplay.h.

227{
231};
@ OO_RETICLE_COLOR_TARGET
@ OO_RETICLE_COLOR_WORMHOLE
@ OO_RETICLE_COLOR_TARGET_SENSITIVE

Function Documentation

◆ OODrawHilightedPlanetInfo()

void OODrawHilightedPlanetInfo ( int gov,
int eco,
int tec,
GLfloat x,
GLfloat y,
GLfloat z,
NSSize siz )

◆ OODrawHilightedString()

void OODrawHilightedString ( NSString * text,
GLfloat x,
GLfloat y,
GLfloat z,
NSSize siz )

◆ OODrawPlanetInfo()

void OODrawPlanetInfo ( int gov,
int eco,
int tec,
GLfloat x,
GLfloat y,
GLfloat z,
NSSize siz )

Referenced by HeadUpDisplay::OODrawHilightedPlanetInfo.

+ Here is the caller graph for this function:

◆ OODrawString()

void OODrawString ( NSString * text,
GLfloat x,
GLfloat y,
GLfloat z,
NSSize siz )

Referenced by HeadUpDisplay::hudDrawReticleOnTarget, HeadUpDisplay::hudDrawWaypoint, and HeadUpDisplay::OODrawHilightedString.

+ Here is the caller graph for this function:

◆ OODrawStringAligned()

void OODrawStringAligned ( NSString * text,
GLfloat x,
GLfloat y,
GLfloat z,
NSSize siz,
BOOL rightAlign )

Referenced by HeadUpDisplay::OODrawString.

+ Here is the caller graph for this function:

◆ OODrawStringQuadsAligned()

void OODrawStringQuadsAligned ( NSString * text,
GLfloat x,
GLfloat y,
GLfloat z,
NSSize siz,
BOOL rightAlign )

Referenced by HeadUpDisplay::OODrawStringAligned.

+ Here is the caller graph for this function:

◆ OOHUDResetTextEngine()

void OOHUDResetTextEngine ( void )

◆ OORectFromString()

NSRect OORectFromString ( NSString * text,
GLfloat x,
GLfloat y,
NSSize siz )

Referenced by HeadUpDisplay::OODrawHilightedString, HeadUpDisplay::OODrawStringQuadsAligned, and HeadUpDisplay::OOStringWidthInEm.

+ Here is the caller graph for this function:

◆ OOStartDrawingStrings()

void OOStartDrawingStrings ( void )

Referenced by HeadUpDisplay::OODrawStringAligned.

+ Here is the caller graph for this function:

◆ OOStopDrawingStrings()

void OOStopDrawingStrings ( void )

Referenced by HeadUpDisplay::OODrawStringAligned.

+ Here is the caller graph for this function:

◆ OOStringWidthInEm()

CGFloat OOStringWidthInEm ( NSString * text)

Referenced by FontMeasureString(), and OOPadStringToEms().

+ Here is the caller graph for this function: