FS2_Open
Open source remastering of the Freespace 2 engine
asteroideditordlg.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 // AsteroidEditorDlg.h : header file
11 //
12 
13 #include "starfield/starfield.h"
14 #include "asteroid/asteroid.h"
15 
16 
18 // asteroid_editor dialog
19 
20 class asteroid_editor : public CDialog
21 {
22 // Construction
23 public:
24  void update_init();
25  int query_modified();
26  void OnCancel();
27  void OnOK();
28  void OnEnableField();
29  int validate_data();
30 
31  asteroid_editor(CWnd* pParent = NULL); // standard constructor
32 
33 // Dialog Data
34  //{{AFX_DATA(asteroid_editor)
36  CSpinButtonCtrl m_density_spin;
38  int m_density;
40  CString m_max_x;
41  CString m_max_y;
42  CString m_max_z;
43  CString m_min_x;
44  CString m_min_y;
45  CString m_min_z;
47  field_type_t m_field_type; // active or passive
48  debris_genre_t m_debris_genre; // ship or asteroid
49  int m_field_debris_type[3]; // species and size of ship debris
50  CString m_box_max_x;
51  CString m_box_max_y;
52  CString m_box_max_z;
53  CString m_box_min_x;
54  CString m_box_min_y;
55  CString m_box_min_z;
56  //}}AFX_DATA
57 
59  asteroid_field a_field[1 /*MAX_ASTEROID_FIELDS*/];
60 
61 // Overrides
62  // ClassWizard generated virtual function overrides
63  //{{AFX_VIRTUAL(asteroid_editor)
64  protected:
65  virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
66  virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
67  //}}AFX_VIRTUAL
68 
69 // Implementation
70 protected:
71 
72  // Generated message map functions
73  //{{AFX_MSG(asteroid_editor)
74  virtual BOOL OnInitDialog();
75  afx_msg void OnInitMenu(CMenu* pMenu);
76  afx_msg void OnEnableAsteroids();
77  afx_msg void OnClose();
78  afx_msg void OnEnableInnerBox();
79  afx_msg void OnPassiveField();
80  afx_msg void OnFieldShip();
81  afx_msg void OnActiveField();
82  afx_msg void OnFieldAsteroid();
83  //}}AFX_MSG
84  DECLARE_MESSAGE_MAP()
85 };
virtual BOOL OnInitDialog()
afx_msg void OnFieldAsteroid()
UINT WPARAM wParam
Definition: msacm.h:1064
UINT WPARAM LPARAM lParam
Definition: msacm.h:1064
afx_msg void OnPassiveField()
afx_msg void OnEnableInnerBox()
long LPARAM
Definition: config.h:101
CSpinButtonCtrl m_density_spin
afx_msg void OnActiveField()
debris_genre_t
Definition: asteroid.h:115
field_type_t m_field_type
afx_msg void OnEnableAsteroids()
asteroid_editor(CWnd *pParent=NULL)
int BOOL
Definition: config.h:80
afx_msg void OnInitMenu(CMenu *pMenu)
debris_genre_t m_debris_genre
afx_msg void OnFieldShip()
afx_msg void OnClose()
virtual void DoDataExchange(CDataExchange *pDX)
asteroid_field a_field[1]
field_type_t
Definition: asteroid.h:121
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam)
#define IDD_ASTEROID_EDITOR
Definition: resource.h:67