Unit.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. FinalSun/FinalAlert 2 Mission Editor
  3. Copyright (C) 1999-2024 Electronic Arts, Inc.
  4. Authored by Matthias Wagner
  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. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <https://www.gnu.org/licenses/>.
  15. */
  16. #if !defined(AFX_UNIT_H__44A11CC3_84B6_11D3_B63B_F881F458F743__INCLUDED_)
  17. #define AFX_UNIT_H__44A11CC3_84B6_11D3_B63B_F881F458F743__INCLUDED_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. // Unit.h : Header-Datei
  22. //
  23. /////////////////////////////////////////////////////////////////////////////
  24. // Dialogfeld CUnit
  25. class CUnit : public CDialog
  26. {
  27. // Konstruktion
  28. public:
  29. void UpdateStrings();
  30. CString m_strength;
  31. void Init(CString house="", CString strength="256", CString direction="64", CString action="Guard", CString tag="None", CString flag1="0", CString flag2="0", CString flag3="0", CString flag4="0", CString flag5="0", CString flag6="0");
  32. CUnit(CWnd* pParent = NULL); // Standardkonstruktor
  33. // Dialogfelddaten
  34. //{{AFX_DATA(CUnit)
  35. enum { IDD = IDD_UNIT };
  36. CSliderCtrl m_strength_ctrl;
  37. CString m_direction;
  38. CString m_flag1;
  39. CString m_flag2;
  40. CString m_house;
  41. CString m_flag3;
  42. CString m_flag4;
  43. CString m_flag5;
  44. CString m_flag6;
  45. CString m_action;
  46. CString m_tag;
  47. //}}AFX_DATA
  48. // Überschreibungen
  49. // Vom Klassen-Assistenten generierte virtuelle Funktionsüberschreibungen
  50. //{{AFX_VIRTUAL(CUnit)
  51. protected:
  52. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV-Unterstützung
  53. //}}AFX_VIRTUAL
  54. // Implementierung
  55. protected:
  56. // Generierte Nachrichtenzuordnungsfunktionen
  57. //{{AFX_MSG(CUnit)
  58. virtual BOOL OnInitDialog();
  59. virtual void OnOK();
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. };
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ fügt unmittelbar vor der vorhergehenden Zeile zusätzliche Deklarationen ein.
  65. #endif // AFX_UNIT_H__44A11CC3_84B6_11D3_B63B_F881F458F743__INCLUDED_