Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MsnWepDlg.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: MsnWepDlg.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Mission Briefing Dialog Active Window class
13 */
14 
15 #ifndef MsnWepDlg_h
16 #define MsnWepDlg_h
17 
18 #include "Types.h"
19 #include "FormWindow.h"
20 #include "MsnDlg.h"
21 #include "Bitmap.h"
22 #include "Button.h"
23 #include "ImageBox.h"
24 #include "ListBox.h"
25 #include "Font.h"
26 #include "Text.h"
27 
28 // +--------------------------------------------------------------------+
29 
30 class PlanScreen;
31 class Campaign;
32 class Mission;
33 class MissionElement;
34 class HardPoint;
35 class WeaponDesign;
36 
37 // +--------------------------------------------------------------------+
38 
39 class MsnWepDlg : public FormWindow,
40 public MsnDlg
41 {
42 public:
43  MsnWepDlg(Screen* s, FormDef& def, PlanScreen* mgr);
44  virtual ~MsnWepDlg();
45 
46  virtual void RegisterControls();
47  virtual void ExecFrame();
48  virtual void Show();
49 
50  // Operations:
51  virtual void OnCommit(AWEvent* event);
52  virtual void OnCancel(AWEvent* event);
53  virtual void OnTabButton(AWEvent* event);
54  virtual void OnMount(AWEvent* event);
55  virtual void OnLoadout(AWEvent* event);
56 
57 protected:
58  virtual void SetupControls();
59  virtual void BuildLists();
60  virtual int LoadToPointIndex(int n);
61  virtual int PointIndexToLoad(int n, int index);
62 
68 
71  Button* btn_load[8][8];
72 
74 
77  bool mounts[8][8];
78  int loads[8];
80 
83 };
84 
85 #endif MsnWepDlg_h
86