Building.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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_BUILDING_H__44A11CC0_84B6_11D3_B63B_F881F458F743__INCLUDED_)
  17. #define AFX_BUILDING_H__44A11CC0_84B6_11D3_B63B_F881F458F743__INCLUDED_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. // Building.h : Header-Datei
  22. //
  23. /////////////////////////////////////////////////////////////////////////////
  24. // Dialogfeld CBuilding
  25. class CBuilding : public CDialog
  26. {
  27. // Konstruktion
  28. public:
  29. void UpdateStrings();
  30. CString m_type;
  31. CString m_strength;
  32. void Init(CString house="", CString strength="256", CString direction="0", CString tag="None", CString flag1="0", CString flag2="0", CString energy="1", CString upgradecount="0", CString spotlight="0", CString upgrade1="None", CString upgrade2="None", CString upgrade3="None", CString flag3="0", CString flag4="0");
  33. CBuilding(CWnd* pParent = NULL); // Standardkonstruktor
  34. // Dialogfelddaten
  35. //{{AFX_DATA(CBuilding)
  36. enum { IDD = IDD_BUILDING };
  37. CSliderCtrl m_strength_ctrl;
  38. CString m_direction;
  39. CString m_house;
  40. CString m_flag1;
  41. CString m_flag2;
  42. CString m_energy;
  43. CString m_upgradecount;
  44. CString m_spotlight;
  45. CString m_upgrade1;
  46. CString m_upgrade2;
  47. CString m_upgrade3;
  48. CString m_flag3;
  49. CString m_flag4;
  50. CString m_tag;
  51. //}}AFX_DATA
  52. // Überschreibungen
  53. // Vom Klassen-Assistenten generierte virtuelle Funktionsüberschreibungen
  54. //{{AFX_VIRTUAL(CBuilding)
  55. protected:
  56. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV-Unterstützung
  57. //}}AFX_VIRTUAL
  58. // Implementierung
  59. protected:
  60. // Generierte Nachrichtenzuordnungsfunktionen
  61. //{{AFX_MSG(CBuilding)
  62. virtual void OnOK();
  63. virtual BOOL OnInitDialog();
  64. //}}AFX_MSG
  65. DECLARE_MESSAGE_MAP()
  66. };
  67. //{{AFX_INSERT_LOCATION}}
  68. // Microsoft Visual C++ fügt unmittelbar vor der vorhergehenden Zeile zusätzliche Deklarationen ein.
  69. #endif // AFX_BUILDING_H__44A11CC0_84B6_11D3_B63B_F881F458F743__INCLUDED_