Oolite 1.91.0.7646-241128-10e222e
|
import "OOCocoa.h"
import "OOOpenGL.h"
import "OOTypes.h"
import "OOMaths.h"
import "MyOpenGLView.h"
import "ShipEntity.h"
Go to the source code of this file.
Classes | |
class | HeadUpDisplay |
category | NSString(OODisplayEncoding) |
protocol | <OOHUDBeaconIcon> |
category | NSString(OOHUDBeaconIcon) |
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) |
#define ACCURACY_PROBABILITY_DECREASE_FACTOR 0.000035f |
Definition at line 223 of file HeadUpDisplay.h.
Referenced by HeadUpDisplay::hudDrawReticleOnTarget.
#define AEGIS_CENTRE_X -132 |
Definition at line 65 of file HeadUpDisplay.h.
#define AEGIS_CENTRE_Y -216 |
Definition at line 66 of file HeadUpDisplay.h.
#define AEGIS_HEIGHT 24 |
Definition at line 68 of file HeadUpDisplay.h.
#define AEGIS_IMAGE @"aegis.png" |
Definition at line 64 of file HeadUpDisplay.h.
#define AEGIS_WIDTH 24 |
Definition at line 67 of file HeadUpDisplay.h.
#define AFT_SHIELD_BAR_CENTRE_X -200 |
Definition at line 100 of file HeadUpDisplay.h.
#define AFT_SHIELD_BAR_CENTRE_Y -162 |
Definition at line 101 of file HeadUpDisplay.h.
#define AFT_SHIELD_BAR_DRAW_SURROUND YES |
Definition at line 104 of file HeadUpDisplay.h.
#define AFT_SHIELD_BAR_HEIGHT 8 |
Definition at line 103 of file HeadUpDisplay.h.
#define AFT_SHIELD_BAR_WIDTH 80 |
Definition at line 102 of file HeadUpDisplay.h.
#define ALERT_CONDITIONS_KEY @"alert_conditions" |
Definition at line 194 of file HeadUpDisplay.h.
#define ALPHA_KEY @"alpha" |
Definition at line 186 of file HeadUpDisplay.h.
Referenced by GetRGBAArrayFromInfo().
#define ALTITUDE_BAR_CENTRE_X -200 |
Definition at line 126 of file HeadUpDisplay.h.
#define ALTITUDE_BAR_CENTRE_Y -209 |
Definition at line 127 of file HeadUpDisplay.h.
#define ALTITUDE_BAR_HEIGHT 8 |
Definition at line 129 of file HeadUpDisplay.h.
#define ALTITUDE_BAR_WIDTH 80 |
Definition at line 128 of file HeadUpDisplay.h.
#define ASCTARGET_DISPLAY_HEIGHT 10 |
Definition at line 145 of file HeadUpDisplay.h.
#define ASCTARGET_DISPLAY_WIDTH 10 |
Definition at line 144 of file HeadUpDisplay.h.
#define ASCTARGET_DISPLAY_X 64 |
Definition at line 142 of file HeadUpDisplay.h.
#define ASCTARGET_DISPLAY_Y -234 |
Definition at line 143 of file HeadUpDisplay.h.
#define BACKGROUND_RGBA_KEY @"background_rgba" |
Definition at line 214 of file HeadUpDisplay.h.
#define CABIN_TEMP_BAR_CENTRE_X -200 |
Definition at line 116 of file HeadUpDisplay.h.
#define CABIN_TEMP_BAR_CENTRE_Y -189 |
Definition at line 117 of file HeadUpDisplay.h.
#define CABIN_TEMP_BAR_HEIGHT 8 |
Definition at line 119 of file HeadUpDisplay.h.
#define CABIN_TEMP_BAR_WIDTH 80 |
Definition at line 118 of file HeadUpDisplay.h.
#define CLOCK_DISPLAY_HEIGHT 12 |
Definition at line 150 of file HeadUpDisplay.h.
#define CLOCK_DISPLAY_WIDTH 12 |
Definition at line 149 of file HeadUpDisplay.h.
#define CLOCK_DISPLAY_X -44 |
Definition at line 147 of file HeadUpDisplay.h.
#define CLOCK_DISPLAY_Y -234 |
Definition at line 148 of file HeadUpDisplay.h.
#define COLOR_KEY @"color" |
Definition at line 200 of file HeadUpDisplay.h.
#define COLOR_KEY_CRITICAL @"color_critical" |
Definition at line 204 of file HeadUpDisplay.h.
#define COLOR_KEY_HIGH @"color_high" |
Definition at line 203 of file HeadUpDisplay.h.
#define COLOR_KEY_LOW @"color_low" |
Definition at line 201 of file HeadUpDisplay.h.
#define COLOR_KEY_MEDIUM @"color_medium" |
Definition at line 202 of file HeadUpDisplay.h.
#define COLOR_KEY_SURROUND @"color_surround" |
Definition at line 205 of file HeadUpDisplay.h.
#define COLUMNS_KEY @"columns" |
Definition at line 210 of file HeadUpDisplay.h.
#define COMPASS_CENTRE_X 132 |
Definition at line 55 of file HeadUpDisplay.h.
#define COMPASS_CENTRE_Y -216 |
Definition at line 56 of file HeadUpDisplay.h.
#define COMPASS_DOT_SIZE 16 |
Definition at line 61 of file HeadUpDisplay.h.
#define COMPASS_GREENDOT_IMAGE @"greendot.png" |
Definition at line 60 of file HeadUpDisplay.h.
#define COMPASS_HALF_DOT_SIZE 8 |
Definition at line 62 of file HeadUpDisplay.h.
#define COMPASS_HALF_SIZE 28 |
Definition at line 58 of file HeadUpDisplay.h.
#define COMPASS_IMAGE @"compass.png" |
Definition at line 54 of file HeadUpDisplay.h.
#define COMPASS_REDDOT_IMAGE @"reddot.png" |
Definition at line 59 of file HeadUpDisplay.h.
#define COMPASS_SIZE 56 |
Definition at line 57 of file HeadUpDisplay.h.
#define CUSTOM_DIAL_KEY @"data_source" |
Definition at line 207 of file HeadUpDisplay.h.
#define DIAL_REQUIRED_KEY @"with_dial" |
Definition at line 196 of file HeadUpDisplay.h.
#define DIALS_KEY @"dials" |
Definition at line 178 of file HeadUpDisplay.h.
#define DRAW_SURROUND_KEY @"draw_surround" |
Definition at line 192 of file HeadUpDisplay.h.
#define ENERGY_GAUGE_CENTRE_X 200 |
Definition at line 88 of file HeadUpDisplay.h.
#define ENERGY_GAUGE_CENTRE_Y -205 |
Definition at line 89 of file HeadUpDisplay.h.
#define ENERGY_GAUGE_DRAW_SURROUND YES |
Definition at line 92 of file HeadUpDisplay.h.
#define ENERGY_GAUGE_HEIGHT 48 |
Definition at line 91 of file HeadUpDisplay.h.
#define ENERGY_GAUGE_WIDTH 80 |
Definition at line 90 of file HeadUpDisplay.h.
#define EQUIPMENT_REQUIRED_KEY @"equipment_required" |
Definition at line 193 of file HeadUpDisplay.h.
#define FORWARD_SHIELD_BAR_CENTRE_X -200 |
Definition at line 94 of file HeadUpDisplay.h.
#define FORWARD_SHIELD_BAR_CENTRE_Y -146 |
Definition at line 95 of file HeadUpDisplay.h.
#define FORWARD_SHIELD_BAR_DRAW_SURROUND YES |
Definition at line 98 of file HeadUpDisplay.h.
#define FORWARD_SHIELD_BAR_HEIGHT 8 |
Definition at line 97 of file HeadUpDisplay.h.
#define FORWARD_SHIELD_BAR_WIDTH 80 |
Definition at line 96 of file HeadUpDisplay.h.
#define FPSINFO_DISPLAY_HEIGHT 12 |
Definition at line 160 of file HeadUpDisplay.h.
#define FPSINFO_DISPLAY_WIDTH 12 |
Definition at line 159 of file HeadUpDisplay.h.
#define FPSINFO_DISPLAY_X -300 |
Definition at line 157 of file HeadUpDisplay.h.
#define FPSINFO_DISPLAY_Y 220 |
Definition at line 158 of file HeadUpDisplay.h.
#define FUEL_BAR_CENTRE_X -200 |
Definition at line 106 of file HeadUpDisplay.h.
#define FUEL_BAR_CENTRE_Y -179 |
Definition at line 107 of file HeadUpDisplay.h.
#define FUEL_BAR_HEIGHT 8 |
Definition at line 109 of file HeadUpDisplay.h.
#define FUEL_BAR_WIDTH 80 |
Definition at line 108 of file HeadUpDisplay.h.
#define HEIGHT_KEY @"height" |
Definition at line 190 of file HeadUpDisplay.h.
#define HIT_INDICATOR_CENTRE_X 200 |
Definition at line 167 of file HeadUpDisplay.h.
#define HIT_INDICATOR_CENTRE_Y 0 |
Definition at line 168 of file HeadUpDisplay.h.
#define IMAGE_KEY @"image" |
Definition at line 188 of file HeadUpDisplay.h.
#define LABELLED_KEY @"labelled" |
Definition at line 197 of file HeadUpDisplay.h.
#define LEGENDS_KEY @"legends" |
Definition at line 179 of file HeadUpDisplay.h.
#define MAX_ACCURACY_RANGE 7000 |
Definition at line 222 of file HeadUpDisplay.h.
Referenced by HeadUpDisplay::hudDrawReticleOnTarget.
#define MFD_TEXT_HEIGHT 10 |
Definition at line 176 of file HeadUpDisplay.h.
#define MFD_TEXT_WIDTH 10 |
Definition at line 175 of file HeadUpDisplay.h.
#define MFDS_KEY @"multi_function_displays" |
Definition at line 180 of file HeadUpDisplay.h.
#define MIN_PROBABILITY_ACCURACY 0.35f |
Definition at line 224 of file HeadUpDisplay.h.
Referenced by HeadUpDisplay::hudDrawReticleOnTarget.
#define MISSILE_ICON_HEIGHT MISSILE_ICON_WIDTH |
Definition at line 135 of file HeadUpDisplay.h.
#define MISSILE_ICON_WIDTH 12 |
Definition at line 134 of file HeadUpDisplay.h.
#define MISSILES_DISPLAY_SPACING 16 |
Definition at line 133 of file HeadUpDisplay.h.
#define MISSILES_DISPLAY_X -228 |
Definition at line 131 of file HeadUpDisplay.h.
#define MISSILES_DISPLAY_Y -224 |
Definition at line 132 of file HeadUpDisplay.h.
#define N_BARS_KEY @"n_bars" |
Definition at line 206 of file HeadUpDisplay.h.
#define NONLINEAR_SCANNER @"nonlinear_scanner" |
Definition at line 216 of file HeadUpDisplay.h.
#define ONE_EIGHTH 0.125 |
Definition at line 220 of file HeadUpDisplay.h.
Referenced by HeadUpDisplay::drawCharacterQuad.
#define OVERALL_ALPHA_KEY @"overall_alpha" |
Definition at line 215 of file HeadUpDisplay.h.
#define PITCH_BAR_CENTRE_X 200 |
Definition at line 82 of file HeadUpDisplay.h.
#define PITCH_BAR_CENTRE_Y -170 |
Definition at line 83 of file HeadUpDisplay.h.
#define PITCH_BAR_DRAW_SURROUND YES |
Definition at line 86 of file HeadUpDisplay.h.
#define PITCH_BAR_HEIGHT 8 |
Definition at line 85 of file HeadUpDisplay.h.
#define PITCH_BAR_WIDTH 80 |
Definition at line 84 of file HeadUpDisplay.h.
#define PRIMED_DISPLAY_HEIGHT 12 |
Definition at line 140 of file HeadUpDisplay.h.
#define PRIMED_DISPLAY_WIDTH 12 |
Definition at line 139 of file HeadUpDisplay.h.
#define PRIMED_DISPLAY_X -144 |
Definition at line 137 of file HeadUpDisplay.h.
#define PRIMED_DISPLAY_Y -256 |
Definition at line 138 of file HeadUpDisplay.h.
#define RGB_COLOR_KEY @"rgb_color" |
Definition at line 199 of file HeadUpDisplay.h.
#define ROLL_BAR_CENTRE_X 200 |
Definition at line 76 of file HeadUpDisplay.h.
#define ROLL_BAR_CENTRE_Y -160 |
Definition at line 77 of file HeadUpDisplay.h.
#define ROLL_BAR_DRAW_SURROUND YES |
Definition at line 80 of file HeadUpDisplay.h.
#define ROLL_BAR_HEIGHT 8 |
Definition at line 79 of file HeadUpDisplay.h.
#define ROLL_BAR_WIDTH 80 |
Definition at line 78 of file HeadUpDisplay.h.
#define ROW_HEIGHT_KEY @"row_height" |
Definition at line 211 of file HeadUpDisplay.h.
#define ROW_START_KEY @"row_start" |
Definition at line 212 of file HeadUpDisplay.h.
#define ROWS_KEY @"rows" |
Definition at line 209 of file HeadUpDisplay.h.
#define SCANNER_CENTRE_X 0 |
Definition at line 40 of file HeadUpDisplay.h.
#define SCANNER_CENTRE_Y -180 |
Definition at line 41 of file HeadUpDisplay.h.
#define SCANNER_HEIGHT 72 |
Definition at line 44 of file HeadUpDisplay.h.
#define SCANNER_MAX_ZOOM 5.0 |
Definition at line 46 of file HeadUpDisplay.h.
#define SCANNER_SCALE 256 |
Definition at line 42 of file HeadUpDisplay.h.
#define SCANNER_WIDTH 288 |
Definition at line 43 of file HeadUpDisplay.h.
#define SCANNER_ZOOM_LEVELS 5 |
Definition at line 47 of file HeadUpDisplay.h.
#define SCOOPSTATUS_CENTRE_X -132 |
Definition at line 170 of file HeadUpDisplay.h.
#define SCOOPSTATUS_CENTRE_Y -152 |
Definition at line 171 of file HeadUpDisplay.h.
#define SCOOPSTATUS_HEIGHT 16.0 |
Definition at line 173 of file HeadUpDisplay.h.
#define SCOOPSTATUS_WIDTH 16.0 |
Definition at line 172 of file HeadUpDisplay.h.
#define SELECTOR_KEY @"selector" |
Definition at line 187 of file HeadUpDisplay.h.
#define SPACING_KEY @"spacing" |
Definition at line 185 of file HeadUpDisplay.h.
#define SPEED_BAR_CENTRE_X 200 |
Definition at line 70 of file HeadUpDisplay.h.
#define SPEED_BAR_CENTRE_Y -145 |
Definition at line 71 of file HeadUpDisplay.h.
#define SPEED_BAR_DRAW_SURROUND YES |
Definition at line 74 of file HeadUpDisplay.h.
#define SPEED_BAR_HEIGHT 8 |
Definition at line 73 of file HeadUpDisplay.h.
#define SPEED_BAR_WIDTH 80 |
Definition at line 72 of file HeadUpDisplay.h.
#define SPRITE_KEY @"sprite" |
Definition at line 191 of file HeadUpDisplay.h.
#define STATUS_LIGHT_CENTRE_X -108 |
Definition at line 162 of file HeadUpDisplay.h.
#define STATUS_LIGHT_CENTRE_Y -216 |
Definition at line 163 of file HeadUpDisplay.h.
#define STATUS_LIGHT_HEIGHT 8 |
Definition at line 165 of file HeadUpDisplay.h.
#define STATUS_LIGHT_WIDTH 8 |
Definition at line 164 of file HeadUpDisplay.h.
#define TEXT_KEY @"text" |
Definition at line 198 of file HeadUpDisplay.h.
#define TITLE_KEY @"title" |
Definition at line 213 of file HeadUpDisplay.h.
#define VIEWSCREEN_KEY @"viewscreen_only" |
Definition at line 195 of file HeadUpDisplay.h.
#define WEAPON_TEMP_BAR_CENTRE_X -200 |
Definition at line 121 of file HeadUpDisplay.h.
#define WEAPON_TEMP_BAR_CENTRE_Y -199 |
Definition at line 122 of file HeadUpDisplay.h.
#define WEAPON_TEMP_BAR_HEIGHT 8 |
Definition at line 124 of file HeadUpDisplay.h.
#define WEAPON_TEMP_BAR_WIDTH 80 |
Definition at line 123 of file HeadUpDisplay.h.
#define WEAPONSOFFLINETEXT_DISPLAY_X -175 |
Definition at line 152 of file HeadUpDisplay.h.
#define WEAPONSOFFLINETEXT_DISPLAY_Y 2 |
Definition at line 153 of file HeadUpDisplay.h.
#define WEAPONSOFFLINETEXT_HEIGHT 8 |
Definition at line 155 of file HeadUpDisplay.h.
#define WEAPONSOFFLINETEXT_WIDTH 8 |
Definition at line 154 of file HeadUpDisplay.h.
#define WIDTH_KEY @"width" |
Definition at line 189 of file HeadUpDisplay.h.
#define WITCHDEST_CENTRE_X -200 |
Definition at line 111 of file HeadUpDisplay.h.
#define WITCHDEST_CENTRE_Y -179 |
Definition at line 112 of file HeadUpDisplay.h.
#define WITCHDEST_HEIGHT 8 |
Definition at line 114 of file HeadUpDisplay.h.
#define WITCHDEST_WIDTH 80 |
Definition at line 113 of file HeadUpDisplay.h.
#define X_KEY @"x" |
Definition at line 181 of file HeadUpDisplay.h.
#define X_ORIGIN_KEY @"x_origin" |
Definition at line 183 of file HeadUpDisplay.h.
#define Y_KEY @"y" |
Definition at line 182 of file HeadUpDisplay.h.
#define Y_ORIGIN_KEY @"y_origin" |
Definition at line 184 of file HeadUpDisplay.h.
#define Z1 [(MyOpenGLView *)[[player universe] gameView] display_z] |
Definition at line 218 of file HeadUpDisplay.h.
#define ZOOM_INDICATOR_CENTRE_X 108 |
Definition at line 48 of file HeadUpDisplay.h.
#define ZOOM_INDICATOR_CENTRE_Y -216 |
Definition at line 49 of file HeadUpDisplay.h.
#define ZOOM_INDICATOR_HEIGHT 14.0f |
Definition at line 51 of file HeadUpDisplay.h.
#define ZOOM_INDICATOR_WIDTH 11.0f |
Definition at line 50 of file HeadUpDisplay.h.
#define ZOOM_LEVELS_IMAGE @"zoom.png" |
Definition at line 52 of file HeadUpDisplay.h.
anonymous enum |
Enumerator | |
---|---|
OO_RETICLE_COLOR_TARGET | |
OO_RETICLE_COLOR_TARGET_SENSITIVE | |
OO_RETICLE_COLOR_WORMHOLE |
Definition at line 226 of file HeadUpDisplay.h.
void OODrawHilightedPlanetInfo | ( | int | gov, |
int | eco, | ||
int | tec, | ||
GLfloat | x, | ||
GLfloat | y, | ||
GLfloat | z, | ||
NSSize | siz ) |
void OODrawHilightedString | ( | NSString * | text, |
GLfloat | x, | ||
GLfloat | y, | ||
GLfloat | z, | ||
NSSize | siz ) |
void OODrawString | ( | NSString * | text, |
GLfloat | x, | ||
GLfloat | y, | ||
GLfloat | z, | ||
NSSize | siz ) |
Referenced by HeadUpDisplay::hudDrawReticleOnTarget, HeadUpDisplay::hudDrawWaypoint, and HeadUpDisplay::OODrawHilightedString.
void OODrawStringAligned | ( | NSString * | text, |
GLfloat | x, | ||
GLfloat | y, | ||
GLfloat | z, | ||
NSSize | siz, | ||
BOOL | rightAlign ) |
void OODrawStringQuadsAligned | ( | NSString * | text, |
GLfloat | x, | ||
GLfloat | y, | ||
GLfloat | z, | ||
NSSize | siz, | ||
BOOL | rightAlign ) |
void OOHUDResetTextEngine | ( | void | ) |
NSRect OORectFromString | ( | NSString * | text, |
GLfloat | x, | ||
GLfloat | y, | ||
NSSize | siz ) |
Referenced by HeadUpDisplay::OODrawHilightedString, HeadUpDisplay::OODrawStringQuadsAligned, and HeadUpDisplay::OOStringWidthInEm.
void OOStartDrawingStrings | ( | void | ) |
void OOStopDrawingStrings | ( | void | ) |
CGFloat OOStringWidthInEm | ( | NSString * | text | ) |
Referenced by FontMeasureString(), and OOPadStringToEms().