Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CmdForceDlg.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: CmdForceDlg.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  Operational Command Dialog (Order of Battle Tab)
13 */
14 
15 #ifndef CmdForceDlg_h
16 #define CmdForceDlg_h
17 
18 #include "Types.h"
19 #include "FormWindow.h"
20 #include "CmdDlg.h"
21 #include "Bitmap.h"
22 #include "Button.h"
23 #include "ComboBox.h"
24 #include "ListBox.h"
25 #include "Font.h"
26 #include "Text.h"
27 
28 // +--------------------------------------------------------------------+
29 
30 class CmdForceDlg : public FormWindow,
31 public CmdDlg
32 {
33 public:
34  CmdForceDlg(Screen* s, FormDef& def, CmpnScreen* mgr);
35  virtual ~CmdForceDlg();
36 
37  virtual void RegisterControls();
38  virtual void Show();
39  virtual void ExecFrame();
40 
41  // Operations:
42  virtual void OnMode(AWEvent* event);
43  virtual void OnSave(AWEvent* event);
44  virtual void OnExit(AWEvent* event);
45  virtual void OnForces(AWEvent* event);
46  virtual void OnCombat(AWEvent* event);
47  virtual void OnTransfer(AWEvent* event);
48 
49 protected:
50  void ShowCombatant(Combatant* c);
51  void AddCombatGroup(CombatGroup* grp, bool last_child=false);
52  bool CanTransfer(CombatGroup* grp);
53  bool IsVisible(Combatant* c);
54 
56 
61 
66 };
67 
68 #endif CmdForceDlg_h
69