TeamBehavior.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. ** Command & Conquer Generals(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. #if !defined(AFX_TEAMBEHAVIOR_H__40A707E0_08CB_4544_9FF1_AF0DACAB02A6__INCLUDED_)
  19. #define AFX_TEAMBEHAVIOR_H__40A707E0_08CB_4544_9FF1_AF0DACAB02A6__INCLUDED_
  20. #if _MSC_VER > 1000
  21. #pragma once
  22. #endif // _MSC_VER > 1000
  23. // TeamBehavior.h : header file
  24. //
  25. /////////////////////////////////////////////////////////////////////////////
  26. // TeamBehavior dialog
  27. class TeamBehavior : public CPropertyPage
  28. {
  29. // Construction
  30. public:
  31. TeamBehavior(); // standard constructor
  32. // Dialog Data
  33. //{{AFX_DATA(TeamBehavior)
  34. enum { IDD = IDD_TeamBehavior };
  35. // NOTE: the ClassWizard will add data members here
  36. //}}AFX_DATA
  37. // Overrides
  38. // ClassWizard generated virtual function overrides
  39. //{{AFX_VIRTUAL(TeamBehavior)
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. Dict *m_teamDict;
  46. protected:
  47. void setupScript(NameKeyType keyScript, int idcScript);
  48. void updateScript(NameKeyType keyScript, int idcScript);
  49. public:
  50. void setTeamDict(Dict *pDict) {m_teamDict = pDict;};
  51. protected:
  52. // Generated message map functions
  53. //{{AFX_MSG(TeamBehavior)
  54. afx_msg void OnSelchangeOnCreateScript();
  55. virtual BOOL OnInitDialog();
  56. afx_msg void OnTransportsReturn();
  57. afx_msg void OnAvoidThreats();
  58. afx_msg void OnSelchangeOnEnemySighted();
  59. afx_msg void OnSelchangeOnDestroyed();
  60. afx_msg void OnSelchangeOnUnitDestroyed();
  61. afx_msg void OnPerimeterDefense();
  62. afx_msg void OnBaseDefense();
  63. afx_msg void OnChangePercentDestroyed();
  64. afx_msg void OnSelchangeEnemyInteractions();
  65. afx_msg void OnSelchangeOnAllClear();
  66. afx_msg void OnSelchangeOnIdleScript();
  67. afx_msg void OnAttackCommonTarget();
  68. //}}AFX_MSG
  69. DECLARE_MESSAGE_MAP()
  70. };
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_TEAMBEHAVIOR_H__40A707E0_08CB_4544_9FF1_AF0DACAB02A6__INCLUDED_)