资源简介
大师写就,堪称经典的A*算法。并且开源,易于移植。用MFC写的框架,没有多余部分,多重显示方式,地图编辑功能。

代码片段和文件信息
// 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 76824 2001-06-25 16:45 经典A星算法\ase\aiwisdom.ase
文件 3739 2001-06-30 22:13 经典A星算法\ase\ase.cpp
文件 4888 2001-07-06 21:35 经典A星算法\ase\ase.dsp
文件 531 2001-06-21 16:17 经典A星算法\ase\ase.dsw
文件 49152 2001-09-01 18:21 经典A星算法\ase\ase.exe
文件 491 2001-06-30 22:13 经典A星算法\ase\ase.h
文件 17381 2001-09-01 18:19 经典A星算法\ase\ase.rc
文件 11306 2001-07-06 21:34 经典A星算法\ase\aseDoc.cpp
文件 2811 2001-07-06 18:26 经典A星算法\ase\aseDoc.h
文件 8056 2001-07-05 03:18 经典A星算法\ase\aseView.cpp
文件 1635 2001-07-04 02:46 经典A星算法\ase\aseView.h
文件 1314 2001-07-06 18:31 经典A星算法\ase\asincludes.h
文件 76824 2001-07-19 16:21 经典A星算法\ase\complex.ase
文件 3619 2001-07-02 21:37 经典A星算法\ase\MainFrm.cpp
文件 1054 2001-07-02 21:37 经典A星算法\ase\MainFrm.h
文件 5519 2001-07-04 02:55 经典A星算法\ase\NodeView.cpp
文件 1561 2001-06-30 22:11 经典A星算法\ase\NodeView.h
文件 6200 2001-06-30 21:29 经典A星算法\ase\PathFinder.cpp
文件 1907 2001-07-04 02:28 经典A星算法\ase\PathFinder.h
文件 1508 2001-09-01 18:18 经典A星算法\ase\ReadMe.txt
文件 76824 2001-07-06 21:08 经典A星算法\ase\relative_cost.ase
文件 1078 2001-06-22 00:54 经典A星算法\ase\res\ase.ico
文件 395 2001-06-21 16:17 经典A星算法\ase\res\ase.rc2
文件 1078 2001-06-21 16:17 经典A星算法\ase\res\aseDoc.ico
文件 1270 2001-06-26 19:30 经典A星算法\ase\res\bitmap1.bmp
文件 1678 2001-06-27 02:43 经典A星算法\ase\res\Toolbar.bmp
文件 1713 2001-07-06 18:26 经典A星算法\ase\resource.h
文件 205 2001-06-21 16:17 经典A星算法\ase\StdAfx.cpp
文件 1077 2001-06-21 16:17 经典A星算法\ase\StdAfx.h
文件 76824 2001-06-27 16:34 经典A星算法\ase\very_simple.ase
............此处省略15个文件信息
- 上一篇:游戏开发 c语言 程序设计 飞机大战
- 下一篇:C++ 游戏疯狂的赛车
相关资源
- CCS FFT c语言算法
- 小波变换算法 c语言版
- 3des加密算法C语言实现
- DES加密算法C语言实现
- 线性回归算法c语言实现
- 基于C语言的模拟退火算法
- C语言实现的DES对称加密算法
- 用VC6.0实现多边形扫描线填充算法
- c语言编写的货郎担算法
- Em算法(使用C++编写)
- STM32烧写算法flash包
- 永磁同步电机的FOC控制算法
- Proteus仿真:PID算法输出.rar
- 一个模糊PID温度控制算法源代码
- 经典滤波算法
- KMP算法C语言程序
- SVM算法实现(源码+文档)
- 算法A律U律实现
- 人工蜂群算法.docx
- BlowFish加密算法
- C语言常用算法源代码
- c++数组快排算法
- 算法表达式求值.cpp
- PID算法.c
- QR二维码C++源码 算法实现
- 基于opencv漫水填充算法综合
- 信息学奥赛一本通——算法部分
- 银行家算法分配资源的模拟实现(m
- C语言程序设计50例.docx
- 常见排序算法比较.cpp
评论
共有 条评论