summaryrefslogtreecommitdiffhomepage
path: root/Stars45/QuitView.h
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/QuitView.h')
-rw-r--r--Stars45/QuitView.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/Stars45/QuitView.h b/Stars45/QuitView.h
new file mode 100644
index 0000000..c9a75da
--- /dev/null
+++ b/Stars45/QuitView.h
@@ -0,0 +1,64 @@
+/* Project Starshatter 4.5
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
+
+ SUBSYSTEM: Stars.exe
+ FILE: QuitView.h
+ AUTHOR: John DiCamillo
+
+
+ OVERVIEW
+ ========
+ View class for End Mission menu
+*/
+
+#ifndef QuitView_h
+#define QuitView_h
+
+#include "Types.h"
+#include "View.h"
+#include "Bitmap.h"
+#include "Font.h"
+#include "SimObject.h"
+#include "Text.h"
+
+// +--------------------------------------------------------------------+
+
+class HUDView;
+class Menu;
+
+// +--------------------------------------------------------------------+
+
+class QuitView : public View
+{
+public:
+ QuitView(Window* c);
+ virtual ~QuitView();
+
+ // Operations:
+ virtual void Refresh();
+ virtual void OnWindowMove();
+ virtual void ExecFrame();
+
+ virtual bool CanAccept();
+ virtual bool IsMenuShown();
+ virtual void ShowMenu();
+ virtual void CloseMenu();
+
+ static void Initialize();
+ static void Close();
+
+ static QuitView* GetInstance() { return quit_view; }
+
+protected:
+ int width, height;
+ int xcenter, ycenter;
+ bool mouse_latch;
+
+ Sim* sim;
+
+ static QuitView* quit_view;
+};
+
+#endif QuitView_h
+