PhysTestDoc.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  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. // PhysTestDoc.h : interface of the CPhysTestDoc class
  19. //
  20. /////////////////////////////////////////////////////////////////////////////
  21. #if !defined(AFX_PHYSTESTDOC_H__616293EA_E4F0_11D2_802E_0040056350C8__INCLUDED_)
  22. #define AFX_PHYSTESTDOC_H__616293EA_E4F0_11D2_802E_0040056350C8__INCLUDED_
  23. #if _MSC_VER > 1000
  24. #pragma once
  25. #endif // _MSC_VER > 1000
  26. class CGraphicView;
  27. class CDataView;
  28. class PhysicsSceneClass;
  29. class LightClass;
  30. class RenderObjClass;
  31. class PhysClass;
  32. class CPhysTestDoc : public CDocument
  33. {
  34. protected: // create from serialization only
  35. CPhysTestDoc();
  36. DECLARE_DYNCREATE(CPhysTestDoc)
  37. // Attributes
  38. public:
  39. // Operations
  40. public:
  41. // Overrides
  42. // ClassWizard generated virtual function overrides
  43. //{{AFX_VIRTUAL(CPhysTestDoc)
  44. public:
  45. virtual BOOL OnNewDocument();
  46. virtual void Serialize(CArchive& ar);
  47. virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
  48. virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
  49. //}}AFX_VIRTUAL
  50. // Implementation
  51. public:
  52. virtual ~CPhysTestDoc(void);
  53. void Init_Scene(void);
  54. void Load_LEV_File(LPCTSTR lpszPathName);
  55. void Load_W3D_File(LPCTSTR lpszPathName);
  56. void Load_PHY_File(LPCTSTR lpszPathName);
  57. void Save_PHY_File(LPCTSTR lpszPathName);
  58. CGraphicView * Get_Graphic_View(void);
  59. CDataView * Get_Data_View(void);
  60. void Add_Physics_Object(PhysClass * obj);
  61. int Get_Physics_Object_Count(void);
  62. #ifdef _DEBUG
  63. virtual void AssertValid(void) const;
  64. virtual void Dump(CDumpContext& dc) const;
  65. #endif
  66. PhysicsSceneClass * Scene;
  67. LightClass * Light;
  68. RenderObjClass * Origin;
  69. DWORD LastTime;
  70. protected:
  71. // Generated message map functions
  72. protected:
  73. //{{AFX_MSG(CPhysTestDoc)
  74. // NOTE - the ClassWizard will add and remove member functions here.
  75. // DO NOT EDIT what you see in these blocks of generated code !
  76. //}}AFX_MSG
  77. DECLARE_MESSAGE_MAP()
  78. };
  79. /////////////////////////////////////////////////////////////////////////////
  80. //{{AFX_INSERT_LOCATION}}
  81. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  82. #endif // !defined(AFX_PHYSTESTDOC_H__616293EA_E4F0_11D2_802E_0040056350C8__INCLUDED_)