Starshatter_Open
Open source Starshatter engine
|
#include <HUDView.h>
Public Types | |
enum | HUDModes { HUD_MODE_OFF, HUD_MODE_TAC, HUD_MODE_NAV, HUD_MODE_ILS } |
Public Member Functions | |
HUDView (Window *c) | |
virtual | ~HUDView () |
virtual void | Refresh () |
virtual void | OnWindowMove () |
virtual void | ExecFrame () |
virtual void | UseCameraView (CameraView *v) |
virtual Ship * | GetShip () const |
virtual SimObject * | GetTarget () const |
virtual void | SetShip (Ship *s) |
virtual void | SetTarget (SimObject *t) |
virtual MFD * | GetMFD (int n) const |
virtual void | HideAll () |
virtual void | DrawBars () |
virtual void | DrawNav () |
virtual void | DrawILS () |
virtual void | DrawObjective () |
virtual void | DrawNavInfo () |
virtual void | DrawNavPoint (Instruction &navpt, int index, int next) |
virtual void | DrawContactMarkers () |
virtual void | DrawContact (Contact *c, int index) |
virtual void | DrawTrack (Contact *c) |
virtual void | DrawTrackSegment (Point &t1, Point &t2, Color c) |
virtual void | DrawRect (SimObject *targ) |
virtual void | DrawTarget () |
virtual void | DrawSight () |
virtual void | DrawLCOS (SimObject *targ, double dist) |
virtual void | DrawDesignators () |
virtual void | DrawFPM () |
virtual void | DrawHPM () |
virtual void | DrawCompass () |
virtual void | HideCompass () |
virtual void | DrawPitchLadder () |
virtual void | DrawStarSystem () |
virtual void | DrawMFDs () |
virtual void | DrawWarningPanel () |
virtual void | DrawInstructions () |
virtual void | DrawMessages () |
virtual void | MouseFrame () |
virtual int | GetHUDMode () const |
virtual int | GetTacticalMode () const |
virtual void | SetTacticalMode (int mode=1) |
virtual int | GetOverlayMode () const |
virtual void | SetOverlayMode (int mode=1) |
virtual void | SetHUDMode (int mode) |
virtual void | CycleHUDMode () |
virtual Color | CycleHUDColor () |
virtual void | SetHUDColorSet (int c) |
virtual int | GetHUDColorSet () const |
virtual Color | GetHUDColor () const |
virtual Color | GetTextColor () const |
virtual Color | Ambient () const |
virtual void | ShowHUDWarn () |
virtual void | ShowHUDInst () |
virtual void | HideHUDWarn () |
virtual void | HideHUDInst () |
virtual void | CycleHUDWarn () |
virtual void | CycleHUDInst () |
virtual void | CycleMFDMode (int mfd) |
virtual void | CycleInstructions (int direction) |
virtual void | RestoreHUD () |
virtual void | TargetOff () |
virtual bool | Update (SimObject *obj) |
virtual const char * | GetObserverName () const |
Public Member Functions inherited from View | |
View (Window *c) | |
virtual | ~View () |
int | operator== (const View &that) const |
virtual void | OnShow () |
virtual void | OnHide () |
virtual void | SetWindow (Window *w) |
virtual Window * | GetWindow () |
Public Member Functions inherited from SimObserver | |
virtual | ~SimObserver () |
int | operator== (const SimObserver &o) const |
virtual void | Observe (SimObject *obj) |
virtual void | Ignore (SimObject *obj) |
Static Public Member Functions | |
static Color | MarkerColor (Contact *targ) |
static bool | IsNameCrowded (int x, int y) |
static bool | IsMouseLatched () |
static HUDView * | GetInstance () |
static void | Message (const char *fmt,...) |
static void | ClearMessages () |
static void | PrepareBitmap (const char *name, Bitmap &img, BYTE *&shades) |
static void | TransferBitmap (const Bitmap &src, Bitmap &img, BYTE *&shades) |
static void | ColorizeBitmap (Bitmap &img, BYTE *shades, Color color, bool force_alpha=false) |
static int | GetGunsight () |
static void | SetGunsight (int s) |
static bool | IsArcade () |
static void | SetArcade (bool a) |
static int | DefaultColorSet () |
static void | SetDefaultColorSet (int c) |
static Color | GetStatusColor (System::STATUS status) |
static bool | ShowFPS () |
static void | ShowFPS (bool f) |
Static Public Member Functions inherited from View | |
static const char * | TYPENAME () |
Static Public Member Functions inherited from SimObserver | |
static const char * | TYPENAME () |
Protected Types | |
enum | HUD_CASE { HUD_MIXED_CASE, HUD_UPPER_CASE } |
enum | { MAX_MSG = 6 } |
Protected Member Functions | |
const char * | FormatInstruction (Text instr) |
void | SetStatusColor (System::STATUS status) |
void | DrawDiamond (int x, int y, int r, Color c) |
void | DrawHUDText (int index, const char *txt, Rect &rect, int align, int upcase=HUD_UPPER_CASE, bool box=false) |
void | HideHUDText (int index) |
void | DrawOrbitalBody (OrbitalBody *body) |
Protected Attributes | |
Projector * | projector |
CameraView * | camview |
int | width |
int | height |
int | aw |
int | ah |
double | xcenter |
double | ycenter |
Sim * | sim |
Ship * | ship |
SimObject * | target |
SimRegion * | active_region |
Bitmap * | cockpit_hud_texture |
Color | hud_color |
Color | txt_color |
Color | status_color |
bool | show_warn |
bool | show_inst |
int | inst_page |
int | threat |
int | mode |
int | color |
int | tactical |
int | overlay |
int | transition |
int | docking |
MFD * | mfd [3] |
Sprite * | pitch_ladder [31] |
Sprite * | hud_sprite [32] |
Solid * | az_ring |
Solid * | az_pointer |
Solid * | el_ring |
Solid * | el_pointer |
double | compass_scale |
Text | msg_text [MAX_MSG] |
double | msg_time [MAX_MSG] |
Protected Attributes inherited from View | |
Window * | window |
Protected Attributes inherited from SimObserver | |
List< SimObject > | observe_list |
Static Protected Attributes | |
static HUDView * | hud_view = 0 |
static bool | arcade = false |
static bool | show_fps = false |
static int | gunsight = 1 |
static int | def_color_set = 1 |
|
protected |
enum HUDView::HUDModes |
HUDView::HUDView | ( | Window * | c | ) |
Definition at line 348 of file HUDView.cpp.
|
virtual |
Definition at line 624 of file HUDView.cpp.
|
virtual |
Definition at line 3992 of file HUDView.cpp.
|
static |
Definition at line 4119 of file HUDView.cpp.
|
static |
Definition at line 4179 of file HUDView.cpp.
|
virtual |
Definition at line 4012 of file HUDView.cpp.
|
virtual |
Definition at line 3874 of file HUDView.cpp.
|
virtual |
Definition at line 3899 of file HUDView.cpp.
|
virtual |
Definition at line 3862 of file HUDView.cpp.
|
virtual |
Definition at line 2854 of file HUDView.cpp.
|
virtual |
Definition at line 3793 of file HUDView.cpp.
|
virtual |
Definition at line 1308 of file HUDView.cpp.
|
virtual |
Definition at line 1807 of file HUDView.cpp.
|
virtual |
Definition at line 1014 of file HUDView.cpp.
|
virtual |
Definition at line 879 of file HUDView.cpp.
|
virtual |
Definition at line 2264 of file HUDView.cpp.
|
protected |
Definition at line 4348 of file HUDView.cpp.
|
virtual |
Definition at line 1574 of file HUDView.cpp.
|
virtual |
Definition at line 1750 of file HUDView.cpp.
|
protected |
Definition at line 245 of file HUDView.cpp.
|
virtual |
Definition at line 2943 of file HUDView.cpp.
|
virtual |
Definition at line 2747 of file HUDView.cpp.
|
virtual |
Definition at line 1863 of file HUDView.cpp.
|
virtual |
Definition at line 2865 of file HUDView.cpp.
|
virtual |
Definition at line 3629 of file HUDView.cpp.
|
virtual |
Definition at line 2916 of file HUDView.cpp.
|
virtual |
Definition at line 2161 of file HUDView.cpp.
|
virtual |
Definition at line 3100 of file HUDView.cpp.
|
virtual |
Definition at line 3052 of file HUDView.cpp.
|
protected |
Definition at line 3656 of file HUDView.cpp.
|
virtual |
Definition at line 1608 of file HUDView.cpp.
|
virtual |
Definition at line 1248 of file HUDView.cpp.
|
virtual |
Definition at line 2249 of file HUDView.cpp.
|
virtual |
Definition at line 3642 of file HUDView.cpp.
|
virtual |
Definition at line 1992 of file HUDView.cpp.
|
virtual |
Definition at line 1220 of file HUDView.cpp.
Definition at line 1173 of file HUDView.cpp.
|
virtual |
Definition at line 2630 of file HUDView.cpp.
|
virtual |
Definition at line 3686 of file HUDView.cpp.
|
protected |
Definition at line 2814 of file HUDView.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Definition at line 3365 of file HUDView.cpp.
|
virtual |
Reimplemented from SimObserver.
Definition at line 830 of file HUDView.cpp.
|
inlinevirtual |
|
static |
Definition at line 2387 of file HUDView.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Definition at line 3953 of file HUDView.cpp.
|
virtual |
Definition at line 1788 of file HUDView.cpp.
|
virtual |
Definition at line 3854 of file HUDView.cpp.
|
protected |
Definition at line 330 of file HUDView.cpp.
|
virtual |
Definition at line 3843 of file HUDView.cpp.
|
static |
Definition at line 4297 of file HUDView.cpp.
|
static |
Definition at line 4314 of file HUDView.cpp.
Definition at line 853 of file HUDView.cpp.
|
static |
Definition at line 4078 of file HUDView.cpp.
|
virtual |
Definition at line 4219 of file HUDView.cpp.
|
virtual |
Reimplemented from View.
Definition at line 737 of file HUDView.cpp.
|
static |
Definition at line 4132 of file HUDView.cpp.
|
virtual |
Reimplemented from View.
Definition at line 3376 of file HUDView.cpp.
|
virtual |
Definition at line 3917 of file HUDView.cpp.
|
inlinestatic |
|
virtual |
Definition at line 4020 of file HUDView.cpp.
|
virtual |
Definition at line 3883 of file HUDView.cpp.
|
virtual |
Definition at line 798 of file HUDView.cpp.
|
virtual |
Definition at line 3220 of file HUDView.cpp.
|
protected |
Definition at line 2403 of file HUDView.cpp.
|
virtual |
Definition at line 778 of file HUDView.cpp.
|
virtual |
Definition at line 3323 of file HUDView.cpp.
|
virtual |
Definition at line 3835 of file HUDView.cpp.
|
virtual |
Definition at line 3822 of file HUDView.cpp.
Definition at line 4157 of file HUDView.cpp.
|
virtual |
Reimplemented from SimObserver.
Definition at line 808 of file HUDView.cpp.
|
virtual |
Definition at line 838 of file HUDView.cpp.
|
protected |