CliffModifier.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. // CliffModifier.h: Schnittstelle für die Klasse CCliffModifier.
  17. //
  18. //////////////////////////////////////////////////////////////////////
  19. #if !defined(AFX_CLIFFMODIFIER_H__3853D323_CD37_11D4_9C87_F2DC6A2E6849__INCLUDED_)
  20. #define AFX_CLIFFMODIFIER_H__3853D323_CD37_11D4_9C87_F2DC6A2E6849__INCLUDED_
  21. #if _MSC_VER > 1000
  22. #pragma once
  23. #endif // _MSC_VER > 1000
  24. #include "TerrainModifier.h"
  25. class CCliffModifier : public CTerrainModifier
  26. {
  27. public:
  28. virtual BOOL PlaceCliff(DWORD dwXFrom, DWORD dwYFrom, DWORD dwXDest, DWORD dwYDest, BOOL bAlternative=FALSE);
  29. CCliffModifier();
  30. virtual ~CCliffModifier();
  31. protected:
  32. virtual CString GetDataSection()=0;
  33. virtual void ModifyCurrentPos(DWORD* dwPos, BOOL bBeforePlacing, BOOL bSmall);
  34. virtual void ModifyStartPos(DWORD* dwStartPos, BOOL bSmall);
  35. enum e_cliffdirections {cd_horiz_left, cd_horiz_right, cd_horizdiag_left,
  36. cd_horizdiag_right, cd_vertic_top, cd_vertic_bottom, cd_verticdiag_top, cd_verticdiag_bottom };
  37. DWORD m_dwTo;
  38. DWORD m_dwFrom;
  39. e_cliffdirections m_direction;
  40. int m_addx;
  41. int m_addy;
  42. BOOL m_bAlternative;
  43. virtual DWORD GetTileToPlace(DWORD dwPos, BOOL* bSmall) ;
  44. };
  45. #endif // !defined(AFX_CLIFFMODIFIER_H__3853D323_CD37_11D4_9C87_F2DC6A2E6849__INCLUDED_)