From 8898ad9b25fca6afe2374d293a981db02a83d7e9 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 31 May 2012 14:46:27 +0000 Subject: Committing the documentation to svn to have it accessible online --- Doc/doxygen/html/_mfd_8h_source.html | 221 +++++++++++++++++++++++++++++++++++ 1 file changed, 221 insertions(+) create mode 100644 Doc/doxygen/html/_mfd_8h_source.html (limited to 'Doc/doxygen/html/_mfd_8h_source.html') diff --git a/Doc/doxygen/html/_mfd_8h_source.html b/Doc/doxygen/html/_mfd_8h_source.html new file mode 100644 index 0000000..fad48b4 --- /dev/null +++ b/Doc/doxygen/html/_mfd_8h_source.html @@ -0,0 +1,221 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/Stars45/Mfd.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
Mfd.h
+
+
+Go to the documentation of this file.
1 /* Project Starshatter 4.5
+
2  Destroyer Studios LLC
+
3  Copyright © 1997-2004. All Rights Reserved.
+
4 
+
5  SUBSYSTEM: Stars.exe
+
6  FILE: MFD.h
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  Class for all Multi Function Displays
+
13 */
+
14 
+
15 #ifndef MFD_h
+
16 #define MFD_h
+
17 
+
18 #include "Types.h"
+
19 #include "Geometry.h"
+
20 #include "Color.h"
+
21 #include "HUDView.h"
+
22 
+
23 // +--------------------------------------------------------------------+
+
24 
+
25 class Contact;
+
26 class Ship;
+
27 class Sprite;
+
28 class Window;
+
29 
+
30 // +--------------------------------------------------------------------+
+
31 
+
32 class MFD
+
33 {
+
34 public:
+ +
36  MFD_MODE_FOV, /*MFD_MODE_FWD, MFD_MODE_MAP,*/
+ +
38  };
+
39 
+
40  MFD(Window* c, int index);
+
41  virtual ~MFD();
+
42 
+
43  int operator == (const MFD& that) const { return this == &that; }
+
44 
+
45  static void Initialize();
+
46  static void Close();
+
47  static void SetColor(Color c);
+
48 
+
49  // Operations:
+
50  virtual void Draw();
+
51  virtual void DrawGameMFD();
+
52  virtual void DrawStatusMFD();
+
53  virtual void DrawSensorMFD();
+
54  virtual void DrawHSD();
+
55  virtual void Draw3D();
+
56  virtual void DrawSensorLabels(const char* mfd_mode);
+
57  virtual void DrawMap();
+
58  virtual void DrawGauge(int x, int y, int percent);
+
59  virtual void SetStatusColor(int status);
+
60 
+
61  virtual void SetWindow(Window* w) { window = w; }
+
62  virtual Window* GetWindow() { return window; }
+
63  virtual void SetRect(const Rect& r);
+
64  virtual const Rect& GetRect() const { return rect; }
+
65  virtual void SetMode(int m);
+
66  virtual int GetMode() const { return mode; }
+
67  virtual Sprite* GetSprite() { return sprite; }
+
68 
+
69  virtual void SetShip(Ship* s) { ship = s; }
+
70  virtual Ship* GetShip() { return ship; }
+
71 
+
72  virtual void Show();
+
73  virtual void Hide();
+
74 
+
75  virtual void UseCameraView(CameraView* v);
+
76  void DrawMFDText(int index, const char* txt, Rect& r, int align, int status=-1);
+
77  void HideMFDText(int index);
+
78  void SetText3DColor(Color c);
+ +
80 
+
81  bool IsMouseLatched() const;
+
82 
+
83 protected:
+
84 
+
85  enum { TXT_LAST=20 };
+
86 
+ + +
89  int index;
+
90  int mode;
+
91  int lines;
+ +
93  bool hidden;
+ + + + +
98 
+ +
100  bool mouse_in;
+
101 };
+
102 
+
103 #endif MFD_h
+
104 
+
+
+ + + + -- cgit v1.1