FS2_Open
Open source remastering of the Freespace 2 engine
initialstatus.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) Volition, Inc. 1999. All rights reserved.
3  *
4  * All source code herein is the property of Volition, Inc. You may not sell
5  * or otherwise commercially exploit the source or things you created based on the
6  * source.
7  *
8 */
9 
10 // InitialStatus.h : header file
11 //
12 
13 
14 typedef struct dockpoint_information {
18 
20 // initial_status dialog
21 
22 class initial_status : public CDialog
23 {
24 // Construction
25 public:
26  void dock(object *objp1, int dockpoint1, object *objp2, int dockpoint2);
27  void undock(object *objp1, object *objp2);
28  void OnOK();
29  int inited;
30  void change_subsys();
31  void change_docker_point(bool store_selection);
32  void change_dockee(bool store_selection);
33  void change_dockee_point(bool store_selection);
34 
35  initial_status(CWnd* pParent = NULL); // standard constructor
37 
38  int m_ship;
40 
41 // Dialog Data
42  //{{AFX_DATA(initial_status)
43  enum { IDD = IDD_INITIAL_STATUS };
44  CSpinButtonCtrl m_hull_spin;
45  CSpinButtonCtrl m_velocity_spin;
46  CSpinButtonCtrl m_shields_spin;
47  CSpinButtonCtrl m_damage_spin;
48  int m_damage;
49  int m_shields;
52  int m_hull;
56  CString m_cargo_name;
62 
63  //}}AFX_DATA
64 
65 
66 // Overrides
67  // ClassWizard generated virtual function overrides
68  //{{AFX_VIRTUAL(initial_status)
69  protected:
70  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
71  //}}AFX_VIRTUAL
72 
73 // Implementation
74 protected:
75 
76  // Generated message map functions
77  //{{AFX_MSG(initial_status)
78  virtual BOOL OnInitDialog();
79  afx_msg void OnSelchangeSubsys();
80  afx_msg void OnSelchangeDockerPoint();
81  afx_msg void OnSelchangeDockee();
82  afx_msg void OnSelchangeDockeePoint();
83  afx_msg void OnHasShields();
84  afx_msg void OnForceShields();
85  afx_msg void OnShipLocked();
86  afx_msg void OnWeaponsLocked();
87  afx_msg void OnPrimariesLocked();
88  afx_msg void OnSecondariesLocked();
89  afx_msg void OnTurretsLocked();
90  afx_msg void OnAfterburnersLocked();
91  //}}AFX_MSG
92  DECLARE_MESSAGE_MAP()
93 
94 private:
95  void list_dockees(int dock_types);
96  void list_dockee_points(int shipnum);
97  void update_docking_info();
98  int cur_subsys;
99 
100  dockpoint_information *dockpoint_array;
101  int num_dock_points;
102 
103  CListBox *lstDockerPoints;
104  CComboBox *cboDockees;
105  CComboBox *cboDockeePoints;
106 
107  int cur_docker_point;
108  int cur_dockee;
109  int cur_dockee_point;
110 };
struct dockpoint_information dockpoint_information
int m_secondaries_locked
Definition: initialstatus.h:58
afx_msg void OnSecondariesLocked()
void dock(object *objp1, int dockpoint1, object *objp2, int dockpoint2)
afx_msg void OnTurretsLocked()
void change_docker_point(bool store_selection)
afx_msg void OnAfterburnersLocked()
afx_msg void OnForceShields()
CString m_cargo_name
Definition: initialstatus.h:56
CSpinButtonCtrl m_velocity_spin
Definition: initialstatus.h:45
#define IDD_INITIAL_STATUS
Definition: resource.h:66
CSpinButtonCtrl m_damage_spin
Definition: initialstatus.h:47
void undock(object *objp1, object *objp2)
afx_msg void OnShipLocked()
int BOOL
Definition: config.h:80
afx_msg void OnSelchangeDockerPoint()
virtual void DoDataExchange(CDataExchange *pDX)
afx_msg void OnHasShields()
afx_msg void OnWeaponsLocked()
virtual BOOL OnInitDialog()
afx_msg void OnPrimariesLocked()
CSpinButtonCtrl m_shields_spin
Definition: initialstatus.h:46
void change_dockee_point(bool store_selection)
afx_msg void OnSelchangeDockeePoint()
afx_msg void OnSelchangeSubsys()
void change_dockee(bool store_selection)
int m_afterburner_locked
Definition: initialstatus.h:60
CComboBox m_team_color_setting
Definition: initialstatus.h:61
afx_msg void OnSelchangeDockee()
CSpinButtonCtrl m_hull_spin
Definition: initialstatus.h:44
initial_status(CWnd *pParent=NULL)