state.h
来自「人工智能里的A-star算法,用于机器人的路径规划和寻优.」· C头文件 代码 · 共 36 行
H
36 行
// 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 + =
减小字号Ctrl + -
显示快捷键?