Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
124 lines
3.5 KiB
C++
124 lines
3.5 KiB
C++
#if !defined(AFX_DLGEDITTERRAIN_H__D46BB131_88A5_4AD4_A686_8140310030CB__INCLUDED_)
|
|
#define AFX_DLGEDITTERRAIN_H__D46BB131_88A5_4AD4_A686_8140310030CB__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
// DlgEditTerrain.h : header file
|
|
//
|
|
|
|
#include <SectorScene.h>
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDlgEditTerrain dialog
|
|
|
|
class CDlgEditTerrain : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
void ShowWalkPossible();
|
|
void InitSmoothBuffer();
|
|
void MouseEditSmooth(vector3 vecStart,vector3 vecDir);
|
|
void SelectMustDivideVertex(vector3 vecStart,vector3 vecDir);
|
|
void RecurFindVertex(List<int> &DivideList,int vx,int vy,int leftX,int leftY,int rightX,int rightY,int apexX,int apexY,int node);
|
|
void SetMustDivideVertex(int vx,int vy);
|
|
void MakeRoad(vector3 vecStart,vector3 vecDir);
|
|
void SetMakeRoadStartVertex(vector3 vecStart,vector3 vecDir);
|
|
void MouseEdit(vector3 vecStart,vector3 vecDir);
|
|
void SectorEdgeAttach();
|
|
void EndAndSave();
|
|
void MouseEdit(float fPx,float fPy,float fPz);
|
|
void InitForEditTerrrain();
|
|
CDlgEditTerrain(CWnd* pParent = NULL); // standard constructor
|
|
CSectorScene *m_SelectSectorScene;
|
|
|
|
CSectorScene *m_SelectNeighborScene[8];
|
|
BOOL m_isSelectSceneEdit;
|
|
BOOL m_isSelectNeighborEdit[8];
|
|
float m_fAddHeight;
|
|
float m_fRange;
|
|
|
|
float m_fSmoothHeight[((SECTORSX*3)-2)*((SECTORSY*3)-2)];
|
|
|
|
vector3 m_vecMakeRoadStart;
|
|
int *m_CurrentVariance;
|
|
List<int> m_LeftDivideList,m_RightDivideList;
|
|
// Dialog Data
|
|
//{{AFX_DATA(CDlgEditTerrain)
|
|
enum { IDD = IDD_DIALOG_EDITTERRAIN };
|
|
float m_fHeight;
|
|
float m_fMaxHeight;
|
|
float m_fMinHeight;
|
|
BOOL m_isAddHeight;
|
|
BOOL m_isSubHeight;
|
|
BOOL m_isAdd1;
|
|
BOOL m_isAdd2;
|
|
BOOL m_isRange1;
|
|
BOOL m_isRange2;
|
|
BOOL m_isRange3;
|
|
BOOL m_isRange4;
|
|
float m_fSelectedHeigth;
|
|
BOOL m_isSmallSmooth;
|
|
float m_fEndHeight;
|
|
float m_fStartHeight;
|
|
BOOL m_isMakeRoad;
|
|
float m_fRoadWidth;
|
|
BOOL m_isMustDivide;
|
|
BOOL m_isRange5;
|
|
BOOL m_isRange6;
|
|
float m_fAllAddHeight;
|
|
//}}AFX_DATA
|
|
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CDlgEditTerrain)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
|
|
public:
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CDlgEditTerrain)
|
|
afx_msg void OnCheckAddheight();
|
|
afx_msg void OnCheckSubheight();
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnButtonTerrainfastup();
|
|
afx_msg void OnButtonHeightslowup();
|
|
afx_msg void OnButtonHeightfastdown();
|
|
afx_msg void OnButtonHeightslowdown();
|
|
afx_msg void OnChangeEditMaxheight();
|
|
afx_msg void OnChangeEditMinheight();
|
|
afx_msg void OnButtonTerrainadjust();
|
|
afx_msg void OnCheckAddheightvalue1();
|
|
afx_msg void OnCheckAddheightvalue2();
|
|
afx_msg void OnCheckEditrange1();
|
|
afx_msg void OnCheckEditrange2();
|
|
afx_msg void OnCheckEditrange3();
|
|
afx_msg void OnCheckEditrange4();
|
|
afx_msg void OnButtonTerrainsmooth();
|
|
afx_msg void OnButtonSectoredgeattach();
|
|
afx_msg void OnCheckSmallsmooth();
|
|
afx_msg void OnUpdateEditStartheight();
|
|
afx_msg void OnUpdateEditEndheight();
|
|
afx_msg void OnCheckMakeroad();
|
|
afx_msg void OnUpdateEditRoadwidth();
|
|
afx_msg void OnCheckMustdivide();
|
|
afx_msg void OnCheckEditrange5();
|
|
afx_msg void OnCheckEditrange6();
|
|
afx_msg void OnButtonAllheightfix();
|
|
afx_msg void OnButtonHeightfix();
|
|
protected:
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_DLGEDITTERRAIN_H__D46BB131_88A5_4AD4_A686_8140310030CB__INCLUDED_)
|