Debian Codegraph @

editor/ObjectPropertiesDialog.h

raw symbols SCIP
1 /*
2 * Descent 3
3 * Copyright (C) 2024 Parallax Software
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #if !defined(AFX_OBJECTPROPERTIESDIALOG_H__B4ABFD41_F15C_11D0_8901_0020A90CB6F2__INCLUDED_)
20 #define AFX_OBJECTPROPERTIESDIALOG_H__B4ABFD41_F15C_11D0_8901_0020A90CB6F2__INCLUDED_
21
22 #if _MSC_VER >= 1000
23 #pragma once
24 #endif // _MSC_VER >= 1000
25 // ObjectPropertiesDialog.h : header file
26 //
27
28 #ifndef _OBJ_PROP_DLG_H_
29 #define _OBJ_PROP_DLG_H_
30
31 #include "objscript.h"
32
33 class CPropertyAIDlg;
34 class CPropertyPhysicsDlg;
35
36 #define TAB_PHYSICS 0
37 #define TAB_AI 1
38
39 /////////////////////////////////////////////////////////////////////////////
40 // CObjectPropertiesDialog dialog
41
42 class CObjectPropertiesDialog : public CDialog {
43 // Construction
44 public:
45 CObjectPropertiesDialog(CWnd *pParent = NULL); // standard constructor
46
47 BOOL m_bBounce;
48 float m_fDrag;
49 float m_fFullRotThrust;
50 float m_fFullThrust;
51 BOOL m_bGravity;
52 BOOL m_bLevelling;
53 BOOL m_bMagnetism;
54 float m_fMass;
55 float m_fMaxTurnrollrate;
56 int m_iNumBounces;
57 BOOL m_bPersistent;
58 float m_fRotDrag;
59 float m_fRotThrustX;
60 float m_fRotThrustY;
61 float m_fRotThrustZ;
62 float m_fRotVelX;
63 float m_fRotVelY;
64 float m_fRotVelZ;
65 BOOL m_bSticks;
66 float m_fThrustX;
67 float m_fThrustY;
68 float m_fThrustZ;
69 BOOL m_bTurnroll;
70 float m_fTurnrollRatio;
71 int16_t m_sTurnrollAngle;
72 BOOL m_bUsesThrust;
73 float m_fVelocityX;
74 float m_fVelocityY;
75 float m_fVelocityZ;
76 BOOL m_bWiggle;
77 float m_fWiggleAmplitude;
78 float m_fWigglesPerSecond;
79 BOOL m_bWind;
80 BOOL m_bUnlimitedBounce;
81
82 CString m_ScriptName;
83 int m_NumParms;
84
85 // Dialog Data
86 //{{AFX_DATA(CObjectPropertiesDialog)
87 enum { IDD = IDD_OBJECTPROPERTIES };
88 // NOTE: the ClassWizard will add data members here
89 //}}AFX_DATA
90
91 // Overrides
92 // ClassWizard generated virtual function overrides
93 //{{AFX_VIRTUAL(CObjectPropertiesDialog)
94 public:
95 virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT &rect, CWnd *pParentWnd,
96 UINT nID, CCreateContext *pContext = NULL);
97
98 protected:
99 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
100 virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT *pResult);
101 //}}AFX_VIRTUAL
102
103 // Implementation
104 private:
105 int m_current_tab;
106 CWnd *m_Parent; // parent window to this dialog
107 BOOL m_Initializing; // Are we done initializing?
108 float m_keypad_w, m_keypad_h, m_keypad_x, m_keypad_y;
109
110 public:
111 void RunKeypadFunction(int code);
112 void Deactivate(); // deactivates current tab
113 void Activate(); // activates current tab.
114 CPropertyAIDlg *m_PropAIDlg;
115 CPropertyPhysicsDlg *m_PropPhysicsDlg;
116 CKeypadDialog *m_KeypadTabDialog;
117
118 private:
119 void DoKeypadTabNotify(NMHDR *); // take care of tab control notifications
120
121 protected:
122 // Generated message map functions
123 //{{AFX_MSG(CObjectPropertiesDialog)
124 virtual BOOL OnInitDialog();
125 afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
126 afx_msg void OnSize(UINT nType, int cx, int cy);
127 afx_msg void OnMove(int x, int y);
128 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
129 virtual void OnOK();
130 virtual void OnCancel();
131 //}}AFX_MSG
132 DECLARE_MESSAGE_MAP()
133 };
134
135 #endif
136 //{{AFX_INSERT_LOCATION}}
137 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
138
139 #endif // !defined(AFX_OBJECTPROPERTIESDIALOG_H__B4ABFD41_F15C_11D0_8901_0020A90CB6F2__INCLUDED_)