資源簡(jiǎn)介
大師寫就,堪稱經(jīng)典的A*算法。并且開源,易于移植。用MFC寫的框架,沒(méi)有多余部分,多重顯示方式,地圖編輯功能。

代碼片段和文件信息
//?ase.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ase.h“
#include?“MainFrm.h“
#include?“aseDoc.h“
#include?“NodeView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAseApp
BEGIN_MESSAGE_MAP(CAseApp?CWinApp)
//{{AFX_MSG_MAP(CAseApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CAseApp?construction
CAseApp::CAseApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CAseApp?object
CAseApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CAseApp?initialization
BOOL?CAseApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
SetRegistryKey(_T(“Generation5?Software“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CAseDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CNodeView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CAboutDlg?dialog?used?for?App?About
class?CAboutDlg?:?public?CDialog
{
public:
CAboutDlg();
//{{AFX_DATA(CAboutDlg)
enum?{?IDD?=?IDD_ABOUTBOX?};
//}}AFX_DATA
//{{AFX_VIRTUAL(CAboutDlg)
protected:
virtual?void?DoDataExchange(CDataExchange
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????76824??2001-06-25?16:45??經(jīng)典A星算法\ase\aiwisdom.ase
?????文件???????3739??2001-06-30?22:13??經(jīng)典A星算法\ase\ase.cpp
?????文件???????4888??2001-07-06?21:35??經(jīng)典A星算法\ase\ase.dsp
?????文件????????531??2001-06-21?16:17??經(jīng)典A星算法\ase\ase.dsw
?????文件??????49152??2001-09-01?18:21??經(jīng)典A星算法\ase\ase.exe
?????文件????????491??2001-06-30?22:13??經(jīng)典A星算法\ase\ase.h
?????文件??????17381??2001-09-01?18:19??經(jīng)典A星算法\ase\ase.rc
?????文件??????11306??2001-07-06?21:34??經(jīng)典A星算法\ase\aseDoc.cpp
?????文件???????2811??2001-07-06?18:26??經(jīng)典A星算法\ase\aseDoc.h
?????文件???????8056??2001-07-05?03:18??經(jīng)典A星算法\ase\aseView.cpp
?????文件???????1635??2001-07-04?02:46??經(jīng)典A星算法\ase\aseView.h
?????文件???????1314??2001-07-06?18:31??經(jīng)典A星算法\ase\asincludes.h
?????文件??????76824??2001-07-19?16:21??經(jīng)典A星算法\ase\complex.ase
?????文件???????3619??2001-07-02?21:37??經(jīng)典A星算法\ase\MainFrm.cpp
?????文件???????1054??2001-07-02?21:37??經(jīng)典A星算法\ase\MainFrm.h
?????文件???????5519??2001-07-04?02:55??經(jīng)典A星算法\ase\NodeView.cpp
?????文件???????1561??2001-06-30?22:11??經(jīng)典A星算法\ase\NodeView.h
?????文件???????6200??2001-06-30?21:29??經(jīng)典A星算法\ase\PathFinder.cpp
?????文件???????1907??2001-07-04?02:28??經(jīng)典A星算法\ase\PathFinder.h
?????文件???????1508??2001-09-01?18:18??經(jīng)典A星算法\ase\ReadMe.txt
?????文件??????76824??2001-07-06?21:08??經(jīng)典A星算法\ase\relative_cost.ase
?????文件???????1078??2001-06-22?00:54??經(jīng)典A星算法\ase\res\ase.ico
?????文件????????395??2001-06-21?16:17??經(jīng)典A星算法\ase\res\ase.rc2
?????文件???????1078??2001-06-21?16:17??經(jīng)典A星算法\ase\res\aseDoc.ico
?????文件???????1270??2001-06-26?19:30??經(jīng)典A星算法\ase\res\bitmap1.bmp
?????文件???????1678??2001-06-27?02:43??經(jīng)典A星算法\ase\res\Toolbar.bmp
?????文件???????1713??2001-07-06?18:26??經(jīng)典A星算法\ase\resource.h
?????文件????????205??2001-06-21?16:17??經(jīng)典A星算法\ase\StdAfx.cpp
?????文件???????1077??2001-06-21?16:17??經(jīng)典A星算法\ase\StdAfx.h
?????文件??????76824??2001-06-27?16:34??經(jīng)典A星算法\ase\very_simple.ase
............此處省略15個(gè)文件信息
評(píng)論
共有 條評(píng)論