Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QuitView.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: QuitView.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  View class for End Mission menu
13 */
14 
15 #ifndef QuitView_h
16 #define QuitView_h
17 
18 #include "Types.h"
19 #include "View.h"
20 #include "Bitmap.h"
21 #include "Font.h"
22 #include "SimObject.h"
23 #include "Text.h"
24 
25 // +--------------------------------------------------------------------+
26 
27 class HUDView;
28 class Menu;
29 
30 // +--------------------------------------------------------------------+
31 
32 class QuitView : public View
33 {
34 public:
35  QuitView(Window* c);
36  virtual ~QuitView();
37 
38  // Operations:
39  virtual void Refresh();
40  virtual void OnWindowMove();
41  virtual void ExecFrame();
42 
43  virtual bool CanAccept();
44  virtual bool IsMenuShown();
45  virtual void ShowMenu();
46  virtual void CloseMenu();
47 
48  static void Initialize();
49  static void Close();
50 
51  static QuitView* GetInstance() { return quit_view; }
52 
53 protected:
54  int width, height;
57 
58  Sim* sim;
59 
61 };
62 
63 #endif QuitView_h
64