File: asteroideditordlg.h

package info (click to toggle)
freespace2 3.7.4%2Brepack-1
  • links: PTS, VCS
  • area: non-free
  • in suites: buster
  • size: 22,236 kB
  • sloc: cpp: 393,535; ansic: 4,106; makefile: 1,091; xml: 181; sh: 137
file content (85 lines) | stat: -rw-r--r-- 2,140 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
 * Copyright (C) Volition, Inc. 1999.  All rights reserved.
 *
 * All source code herein is the property of Volition, Inc. You may not sell 
 * or otherwise commercially exploit the source or things you created based on the 
 * source.
 *
*/

// AsteroidEditorDlg.h : header file
//

#include "starfield/starfield.h"
#include "asteroid/asteroid.h"


/////////////////////////////////////////////////////////////////////////////
// asteroid_editor dialog

class asteroid_editor : public CDialog
{
// Construction
public:
	void update_init();
	int query_modified();
	void OnCancel();
	void OnOK();
	void OnEnableField();
	int validate_data();

	asteroid_editor(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(asteroid_editor)
	enum { IDD = IDD_ASTEROID_EDITOR };
	CSpinButtonCtrl	m_density_spin;
	int				m_avg_speed;
	int				m_density;
	BOOL				m_enable_asteroids;
	CString			m_max_x;
	CString			m_max_y;
	CString			m_max_z;
	CString			m_min_x;
	CString			m_min_y;
	CString			m_min_z;
	BOOL				m_enable_inner_bounds;
	field_type_t	m_field_type;		// active or passive
	debris_genre_t	m_debris_genre;		// ship or asteroid
	int				m_field_debris_type[3];	// species and size of ship debris
	CString			m_box_max_x;
	CString			m_box_max_y;
	CString			m_box_max_z;
	CString			m_box_min_x;
	CString			m_box_min_y;
	CString			m_box_min_z;
	//}}AFX_DATA

	int cur_field, last_field;
	asteroid_field a_field[1 /*MAX_ASTEROID_FIELDS*/];

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(asteroid_editor)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(asteroid_editor)
	virtual BOOL OnInitDialog();
	afx_msg void OnInitMenu(CMenu* pMenu);
	afx_msg void OnEnableAsteroids();
	afx_msg void OnClose();
	afx_msg void OnEnableInnerBox();
	afx_msg void OnPassiveField();
	afx_msg void OnFieldShip();
	afx_msg void OnActiveField();
	afx_msg void OnFieldAsteroid();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};