| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 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 |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
#include "object.h" |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
class CPhysicsDlg : public CDialog { |
| 34 |
|
| 35 |
public: |
| 36 |
CPhysicsDlg(physics_info *phys_info, CWnd *pParent = NULL); |
| 37 |
|
| 38 |
|
| 39 |
|
| 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 |
|
| 84 |
|
| 85 |
int m_gravity_flag; |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
protected: |
| 91 |
virtual void DoDataExchange(CDataExchange *pDX); |
| 92 |
|
| 93 |
|
| 94 |
|
| 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 |
|
| 104 |
physics_info *m_phys_info; |
| 105 |
|
| 106 |
|
| 107 |
void GetPhysicsData(physics_info *phys_info); |
| 108 |
|
| 109 |
|
| 110 |
void SetPhysicsData(physics_info *phys_info); |
| 111 |
|
| 112 |
|
| 113 |
|
| 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 |
|
| 130 |
DECLARE_MESSAGE_MAP() |
| 131 |
}; |
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
#endif |