Debian Codegraph @

editor/PhysicsDlg.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_PHYSICSDLG_H__A0BC9221_0DA6_11D1_86CC_004033312F7C__INCLUDED_)
20 #define AFX_PHYSICSDLG_H__A0BC9221_0DA6_11D1_86CC_004033312F7C__INCLUDED_
21
22 #if _MSC_VER >= 1000
23 #pragma once
24 #endif // _MSC_VER >= 1000
25 // PhysicsDlg.h : header file
26 //
27
28 #include "object.h"
29
30 /////////////////////////////////////////////////////////////////////////////
31 // CPhysicsDlg dialog
32
33 class CPhysicsDlg : public CDialog {
34 // Construction
35 public:
36 CPhysicsDlg(physics_info *phys_info, CWnd *pParent = NULL); // standard constructor
37
38 // Dialog Data
39 //{{AFX_DATA(CPhysicsDlg)
40 enum { IDD = IDD_PHYSICS };
41 float m_mass;
42 float m_drag;
43 BOOL m_magnetism;
44 float m_max_thrust;
45 float m_max_turnroll_rate;
46 float m_rot_drag;
47 float m_rot_thrust;
48 float m_turnroll_ratio;
49 BOOL m_wind;
50 float m_wiggle_frequency;
51 float m_wiggle_size;
52 BOOL m_wiggle;
53 BOOL m_bouncy_check;
54 BOOL m_fixed_rotate_check;
55 BOOL m_fixed_velocity_check;
56 float m_init_rot_velocity_x;
57 float m_init_rot_velocity_y;
58 float m_init_rot_velocity_z;
59 float m_init_velocity;
60 int m_max_bounces;
61 float m_percent_loss;
62 BOOL m_sticky_check;
63 BOOL m_thrusts_check;
64 BOOL m_turn_roll_check;
65 BOOL m_auto_leveling;
66 BOOL m_no_collide_check;
67 BOOL m_point_collide_walls;
68 BOOL m_ignore_robot_collisions;
69 CString m_terminal_rot_vel_text;
70 CString m_terminal_velocity_text;
71 BOOL m_ignore_concussive_forces_check;
72 float m_hit_die_angle;
73 BOOL m_persistent;
74 BOOL m_l_b;
75 BOOL m_l_h;
76 BOOL m_l_p;
77 BOOL m_l_x;
78 BOOL m_l_y;
79 BOOL m_l_z;
80 BOOL m_big_sphere;
81 BOOL m_ignore_same;
82 BOOL m_ignore_doors;
83 //}}AFX_DATA
84
85 int m_gravity_flag;
86
87 // Overrides
88 // ClassWizard generated virtual function overrides
89 //{{AFX_VIRTUAL(CPhysicsDlg)
90 protected:
91 virtual void DoDataExchange(CDataExchange *pDX); // DDX/DDV support
92 //}}AFX_VIRTUAL
93
94 // Implementation
95 protected:
96 void EnableDisableFullPhysics();
97 void EnableDisableWiggle();
98 void EnableDisableBounce();
99 void EnableDisableTurnRoll();
100 void EnableDisableThrust();
101 void UpdateTerminalText(bool f_refresh);
102
103 // The data we're editing
104 physics_info *m_phys_info;
105
106 // Copy data from class to physics_info struct
107 void GetPhysicsData(physics_info *phys_info);
108
109 // Copy data from physics_info struct to class
110 void SetPhysicsData(physics_info *phys_info);
111
112 // Generated message map functions
113 //{{AFX_MSG(CPhysicsDlg)
114 virtual BOOL OnInitDialog();
115 afx_msg void OnPhysicsWiggleCheck();
116 afx_msg void OnPhysicsGravityRadio();
117 afx_msg void OnPhysicsNoGravityRadio();
118 afx_msg void OnPhysicsReverseGravityRadio();
119 afx_msg void OnTurnRollCheck();
120 afx_msg void OnPhysicsBouncyCheck();
121 afx_msg void OnPhysicsThrustsCheck();
122 virtual void OnOK();
123 afx_msg void OnKillfocusPhysicsDragEdit();
124 afx_msg void OnKillfocusPhysicsRotdragEdit();
125 afx_msg void OnKillfocusPhysicsMaxthrustEdit();
126 afx_msg void OnKillfocusPhysicsRotthrustEdit();
127 afx_msg void OnPhysicsCopy();
128 afx_msg void OnPhysicsPaste();
129 //}}AFX_MSG
130 DECLARE_MESSAGE_MAP()
131 };
132
133 //{{AFX_INSERT_LOCATION}}
134 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
135
136 #endif // !defined(AFX_PHYSICSDLG_H__A0BC9221_0DA6_11D1_86CC_004033312F7C__INCLUDED_)