⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 state.h

📁 人工智能里的A-star算法,用于机器人的路径规划和寻优.
💻 H
字号:
// State.h: interface for the CState class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_STATE_H__8A0578DB_E358_452C_AE89_A309A6341E91__INCLUDED_)
#define AFX_STATE_H__8A0578DB_E358_452C_AE89_A309A6341E91__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CState  
{
public:
	CPoint* m_pLastPt;
	double m_dWillCost;
	double m_dCost;
	double m_dCosted;
	CPoint m_CurPt;

public:
	CState();
	CState( CPoint pt );
	CState( CPoint pt,double iCosted, double iWillCost, double Cost, CPoint& ptBack );
	CState operator = ( const CState& cs );
	BOOL operator == ( const CState& cs );
	virtual ~CState();

public:
	SetCost( int iMode, double willcost );
	SetForPt( CPoint& pt1 );
	SetCurPt( CPoint pt );
};

#endif // !defined(AFX_STATE_H__8A0578DB_E358_452C_AE89_A309A6341E91__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -