TestAStar
所属分类:游戏
开发工具:Visual C++
文件大小:98KB
下载次数:7
上传日期:2014-05-25 17:44:27
上 传 者:
laienzb3
说明: 在即时战略或角色扮演游戏中,经常需要控制角色移动到指定位置,只要存在可行路径,总是会采用最优路径到达目的地。这种能够在角色移动到目的地的方法,通常称为“游戏寻路算法”。
A*是一种启发式搜索算法,其所处理的对象是状态空间,安装预先设定的规则进行有选择有方向的遍历。
(In the real-time strategy or role-playing games, often need to control the character moves to the specified location, as long as the existence of a feasible path, always using the optimal route to your destination. This role can be moved to the destination method, often called a " game pathfinding algorithm." A* is a heuristic search algorithm, it deals with the state of the object space, install pre-set rules have a choice of direction of traversal.)
文件列表:
TestAStar (0, 2010-09-24)
TestAStar\TestAStar (0, 2010-09-24)
TestAStar\TestAStar\AStar.cpp (4590, 2007-12-23)
TestAStar\TestAStar\AStar.h (176, 2007-09-20)
TestAStar\TestAStar\BinaryHeap.h (2963, 2007-12-23)
TestAStar\TestAStar\Resource.h (911, 2007-09-20)
TestAStar\TestAStar\TestAStar.aps (59120, 2008-02-28)
TestAStar\TestAStar\TestAStar.cpp (1688, 2007-09-20)
TestAStar\TestAStar\TestAStar.h (459, 2007-09-20)
TestAStar\TestAStar\TestAStar.rc (5595, 2008-02-28)
TestAStar\TestAStar\TestAStar.vcproj (5677, 2007-09-20)
TestAStar\TestAStar\TestAStar.vcproj.E24BAFE1B11A441.Administrator.user (1427, 2008-02-28)
TestAStar\TestAStar\TestAStar.vcproj.SNDA.zhangjingsheng.user (1423, 2007-09-20)
TestAStar\TestAStar\TestAStar.vcproj.赵博.lenovo.user (1405, 2010-03-30)
TestAStar\TestAStar\TestAStarDlg.cpp (5108, 2007-09-20)
TestAStar\TestAStar\TestAStarDlg.h (857, 2007-09-20)
TestAStar\TestAStar\map.in (160805, 2007-12-23)
TestAStar\TestAStar\map.out (0, 2007-12-23)
TestAStar\TestAStar\res (0, 2010-09-24)
TestAStar\TestAStar\res\TestAStar.ico (21630, 2005-12-08)
TestAStar\TestAStar\res\TestAStar.rc2 (365, 2007-09-20)
TestAStar\TestAStar\stdafx.cpp (140, 2007-09-20)
TestAStar\TestAStar\stdafx.h (2489, 2007-09-20)
TestAStar\TestAStar.sln (892, 2007-09-20)
TestAStar\TestAStar.suo (22528, 2010-03-30)
TestAStar\release (0, 2010-09-24)
TestAStar\release\TestAStar.exe (61440, 2008-02-28)
TestAStar\release\map.in (2604, 2010-03-22)
TestAStar\release\map.out (5100, 2010-03-22)
================================================================================
MICROSOFT 基础类库: TestAStar 项目概述
===============================================================================
应用程序向导已为您创建了这个 TestAStar 应用程序。此应用程序不仅演示 Microsoft 基础类的基本使用方法,还可作为您编写应用程序的起点。
本文件概要介绍组成 TestAStar 应用程序的每个文件的内容。
TestAStar.vcproj
这是使用应用程序向导生成的 VC++ 项目的主项目文件。
它包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。
TestAStar.h
这是应用程序的主要头文件。它包括其他项目特定的头文件(包括 Resource.h),并声明 CTestAStarApp 应用程序类。
TestAStar.cpp
这是包含应用程序类 CTestAStarApp 的主要应用程序源文件。
TestAStar.rc
这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。项目资源位于 2052 中。
res\TestAStar.ico
这是用作应用程序图标的图标文件。此图标包括在主要资源文件 TestAStar.rc 中。
res\TestAStar.rc2
此文件包含不在 Microsoft Visual C++ 中进行编辑的资源。您应该将不可由资源编辑器编辑的所有资源放在此文件中。
/////////////////////////////////////////////////////////////////////////////
应用程序向导创建一个对话框类:
TestAStarDlg.h,TestAStarDlg.cpp - 对话框
这些文件包含 CTestAStarDlg 类。该类定义应用程序主对话框的行为。该对话框的模板位于 TestAStar.rc 中,该文件可以在 Microsoft Visual C++ 中进行编辑。
/////////////////////////////////////////////////////////////////////////////
其他功能:
ActiveX 控件
应用程序包括对使用 ActiveX 控件的支持。
打印及打印预览支持
应用程序向导已通过从 MFC 库调用 CView 类中的成员函数,生成了用于处理打印、打印设置和打印预览命令的代码。
/////////////////////////////////////////////////////////////////////////////
其他标准文件:
StdAfx.h,StdAfx.cpp
这些文件用于生成名为 TestAStar.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。
Resource.h
这是标准头文件,它定义新的资源 ID。
Microsoft Visual C++ 读取并更新此文件。
TestAStar.manifest
应用程序清单文件供 Windows XP 用来描述应用程序
对特定版本并行程序集的依赖性。加载程序使用此
信息从程序集缓存加载适当的程序集或
从应用程序加载私有信息。应用程序清单可能为了重新分发而作为
与应用程序可执行文件安装在相同文件夹中的外部 .manifest 文件包括,
也可能以资源的形式包括在该可执行文件中。
/////////////////////////////////////////////////////////////////////////////
其他注释:
应用程序向导使用“TODO:”指示应添加或自定义的源代码部分。
如果应用程序在共享的 DLL 中使用 MFC,则需要重新发布这些 MFC DLL;如果应用程序所用的语言与操作系统的当前区域设置不同,则还需要重新发布对应的本地化资源 MFC80XXX.DLL。有关这两个主题的更多信息,请参见 MSDN 文档中有关 Redistributing Visual C++ applications (重新发布 Visual C++ 应用程序)的章节。
/////////////////////////////////////////////////////////////////////////////
近期下载者:
相关文件:
收藏者: