Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CmpnScreen.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: CmpnScreen.h
7  AUTHOR: John DiCamillo
8 
9 */
10 
11 #ifndef CmpnScreen_h
12 #define CmpnScreen_h
13 
14 #include "Types.h"
15 #include "Bitmap.h"
16 #include "Screen.h"
17 #include "BaseScreen.h"
18 
19 // +--------------------------------------------------------------------+
20 
21 class CmdForceDlg;
22 class CmdMissionsDlg;
23 class CmdOrdersDlg;
24 class CmdIntelDlg;
25 class CmdTheaterDlg;
26 
27 class CmdMsgDlg;
28 class CmpFileDlg;
29 class CmpCompleteDlg;
30 class CmpSceneDlg;
31 
32 class Campaign;
33 class Starshatter;
34 
35 class Bitmap;
36 class DataLoader;
37 class Font;
38 class FormEx;
39 class Screen;
40 class Video;
41 
42 // +--------------------------------------------------------------------+
43 
45 {
46 public:
47  CmpnScreen();
48  virtual ~CmpnScreen();
49 
50  virtual void Setup(Screen* screen);
51  virtual void TearDown();
52  virtual bool CloseTopmost();
53 
54  virtual bool IsShown() const { return isShown; }
55  virtual void Show();
56  virtual void Hide();
57 
58  virtual void ShowCmdDlg();
59 
60  virtual void ShowCmdForceDlg();
61  virtual void HideCmdForceDlg();
62  virtual bool IsCmdForceShown();
63  virtual CmdForceDlg* GetCmdForceDlg() { return cmd_force_dlg; }
64 
65  virtual void ShowCmdMissionsDlg();
66  virtual void HideCmdMissionsDlg();
67  virtual bool IsCmdMissionsShown();
68  virtual CmdMissionsDlg* GetCmdMissionsDlg() { return cmd_missions_dlg; }
69 
70  virtual void ShowCmdOrdersDlg();
71  virtual void HideCmdOrdersDlg();
72  virtual bool IsCmdOrdersShown();
73  virtual CmdOrdersDlg* GetCmdOrdersDlg() { return cmd_orders_dlg; }
74 
75  virtual void ShowCmdIntelDlg();
76  virtual void HideCmdIntelDlg();
77  virtual bool IsCmdIntelShown();
78  virtual CmdIntelDlg* GetCmdIntelDlg() { return cmd_intel_dlg; }
79 
80  virtual void ShowCmdTheaterDlg();
81  virtual void HideCmdTheaterDlg();
82  virtual bool IsCmdTheaterShown();
83  virtual CmdTheaterDlg* GetCmdTheaterDlg() { return cmd_theater_dlg; }
84 
85  virtual void ShowCmpFileDlg();
86  virtual void HideCmpFileDlg();
87  virtual bool IsCmpFileShown();
88  virtual CmpFileDlg* GetCmpFileDlg() { return cmp_file_dlg; }
89 
90  virtual void ShowCmdMsgDlg();
91  virtual void HideCmdMsgDlg();
92  virtual bool IsCmdMsgShown();
93  virtual CmdMsgDlg* GetCmdMsgDlg() { return cmd_msg_dlg; }
94 
95  virtual void ShowCmpCompleteDlg();
96  virtual void HideCmpCompleteDlg();
97  virtual bool IsCmpCompleteShown();
98  virtual CmpCompleteDlg* GetCmpCompleteDlg() { return cmp_end_dlg; }
99 
100  virtual void ShowCmpSceneDlg();
101  virtual void HideCmpSceneDlg();
102  virtual bool IsCmpSceneShown();
103  virtual CmpSceneDlg* GetCmpSceneDlg() { return cmp_scene_dlg; }
104 
105  virtual void HideAll();
106  virtual void ExecFrame();
107 
108  void SetFieldOfView(double fov);
109  double GetFieldOfView() const;
110 
111 private:
112  Screen* screen;
113 
114  CmdForceDlg* cmd_force_dlg;
115  CmdOrdersDlg* cmd_orders_dlg;
116  CmdMissionsDlg* cmd_missions_dlg;
117  CmdIntelDlg* cmd_intel_dlg;
118  CmdTheaterDlg* cmd_theater_dlg;
119 
120  CmdMsgDlg* cmd_msg_dlg;
121  CmpFileDlg* cmp_file_dlg;
122  CmpCompleteDlg* cmp_end_dlg;
123  CmpSceneDlg* cmp_scene_dlg;
124 
125  DataLoader* loader;
126 
127  bool isShown;
128 
129  Campaign* campaign;
130  Starshatter* stars;
131  int completion_stage;
132 };
133 
134 // +--------------------------------------------------------------------+
135 
136 #endif CmpnScreen_h
137