Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QuantumView.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: QuantumView.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  View class for Radio Communications HUD Overlay
13 */
14 
15 #ifndef QuantumView_h
16 #define QuantumView_h
17 
18 #include "Types.h"
19 #include "View.h"
20 #include "SimObject.h"
21 #include "Color.h"
22 #include "Text.h"
23 
24 // +--------------------------------------------------------------------+
25 
26 class Ship;
27 class RadioMessage;
28 class HUDView;
29 class Menu;
30 class Font;
31 
32 // +--------------------------------------------------------------------+
33 
34 class QuantumView : public View,
35 public SimObserver
36 {
37 public:
38  QuantumView(Window* c);
39  virtual ~QuantumView();
40 
41  // Operations:
42  virtual void Refresh();
43  virtual void OnWindowMove();
44  virtual void ExecFrame();
45 
46  virtual Menu* GetQuantumMenu(Ship* ship);
47  virtual bool IsMenuShown();
48  virtual void ShowMenu();
49  virtual void CloseMenu();
50 
51  virtual bool Update(SimObject* obj);
52  virtual const char* GetObserverName() const;
53 
54  static void SetColor(Color c);
55 
56  static void Initialize();
57  static void Close();
58 
59  static QuantumView* GetInstance() { return quantum_view; }
60 
61 protected:
62  int width, height;
63  double xcenter, ycenter;
64 
66  Sim* sim;
68 
70 };
71 
72 #endif QuantumView_h
73