]> icculus.org git repositories - taylor/freespace2.git/blob - include/asteroideditordlg.h
rendering functions mostly done; more complete shader setup
[taylor/freespace2.git] / include / asteroideditordlg.h
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
6  * the source.
7  */
8
9 // AsteroidEditorDlg.h : header file
10 //
11
12 #include "starfield.h"
13 #include "asteroid.h"
14
15
16 /////////////////////////////////////////////////////////////////////////////
17 // asteroid_editor dialog
18
19 class asteroid_editor : public CDialog
20 {
21 // Construction
22 public:
23         void update_init();
24         int query_modified();
25         void OnCancel();
26         void OnOK();
27         void OnEnableField();
28         int validate_data();
29
30         asteroid_editor(CWnd* pParent = NULL);   // standard constructor
31
32 // Dialog Data
33         //{{AFX_DATA(asteroid_editor)
34         enum { IDD = IDD_ASTEROID_EDITOR };
35         CSpinButtonCtrl m_density_spin;
36         int                             m_avg_speed;
37         int                             m_density;
38         BOOL                            m_enable_asteroids;
39         CString                 m_max_x;
40         CString                 m_max_y;
41         CString                 m_max_z;
42         CString                 m_min_x;
43         CString                 m_min_y;
44         CString                 m_min_z;
45         BOOL                            m_enable_inner_bounds;
46         field_type              m_field_type;           // active or passive
47         debris_genre    m_debris_genre;         // ship or asteroid
48         int                             m_field_debris_type[3]; // species and size of ship debris
49         CString                 m_box_max_x;
50         CString                 m_box_max_y;
51         CString                 m_box_max_z;
52         CString                 m_box_min_x;
53         CString                 m_box_min_y;
54         CString                 m_box_min_z;
55         //}}AFX_DATA
56
57         int cur_field, last_field;
58         asteroid_field a_field[1 /*MAX_ASTEROID_FIELDS*/];
59
60 // Overrides
61         // ClassWizard generated virtual function overrides
62         //{{AFX_VIRTUAL(asteroid_editor)
63         protected:
64         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
65         virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
66         //}}AFX_VIRTUAL
67
68 // Implementation
69 protected:
70
71         // Generated message map functions
72         //{{AFX_MSG(asteroid_editor)
73         virtual BOOL OnInitDialog();
74         afx_msg void OnInitMenu(CMenu* pMenu);
75         afx_msg void OnEnableAsteroids();
76         afx_msg void OnClose();
77         afx_msg void OnEnableInnerBox();
78         afx_msg void OnPassiveField();
79         afx_msg void OnFieldShip();
80         afx_msg void OnActiveField();
81         afx_msg void OnFieldAsteroid();
82         //}}AFX_MSG
83         DECLARE_MESSAGE_MAP()
84 };
85