下载 >  开发技术 >  C++ > 《游戏编程精粹》光盘源代码

《游戏编程精粹》光盘源代码

2004-06-25 上传大小:6.83MB
《游戏编程精粹》光盘源代码Author: Steve Rabin
E-mail: stevera@noa.nintendo.com
Last revised: 5-20-00

This MS Visual C++ project is the AI engine described in the book Game 
Programming Gems within the article "Designing a General Robust AI Engine". 
Please refer to the book for a full explanation of the implementation. 
Comments within the code also provide additional information.

The state machine language uses a few custom keywords that should be 
highlighted by Visual C++ in order to make the state machine more 
rea
                            dable. You can get Visual C++ to highlight these words by placing the 
file "usertype.dat" (included in this directory) into the same directory 
as Msdev.exe (C:Program FilesMicrosoft Visual StudioCommonMSDev98Bin). 
The file "usertype.dat" is simply a text file listing the state machine 
keywords.

Here is a brief overview of the state machine structure.

Each game object can point to a state machine. When that game object 
receives a message, it gets routed to it s state machine. The state machine 
can execute any code on behalf of the game object and can send additional 
messages, delayed messages (timers), can change state, or can destroy 
itself. Actually, each state machine can execute any code within your 
game. It is completely general.

The state machine language was designed to provide a simple, consistent, 
robust, and general implementation of a state machine to every game 
object. The language itself consists solely of macros that have been 
carefully crafted to fit together like puzzle pieces. You can see an 
example in the file "fsm_drone.cpp". The macro language can be found in 
the file "fsmmacros.h".

The AI engine provided was ported from C++ to C in order to show that it 
doesn t rely on any object-oriented techniques and that its generally 
applicable (also for legal reasons). I would highly advise porting it back 
to C++ so that it can take advantage of object-oriented techniques (even 
though it doesn t require them).

Good Luck!                        
...展开收缩
综合评分:4
开通VIP 立即下载

评论共有12条

zf0815zj0 2017-06-22 19:40:04
不错,慢些消化哈,太多了
guocheng78 2016-08-10 10:25:34
代码好像不全,不管怎么样
kmpop2000 2015-03-11 17:22:24
是个好东西,多谢分享
 
游戏编程精粹6--随书光盘源代码 立即下载
积分/C币:3
《游戏编程精粹1》光盘源代码 立即下载
积分/C币:3
《游戏编程精粹》合集1-7 清晰扫描版 PDF Part 8 立即下载
积分/C币:5
《设计模式》DELPHI版 立即下载
积分/C币:3
游戏编程精粹6 立即下载
积分/C币:3
C语言实例解析精粹源代码 立即下载
积分/C币:3
游戏编程精粹5的全部光盘代码 立即下载
积分/C币:3
Excel2010实战技巧精粹光盘内容 立即下载
积分/C币:5
Windows游戏编程大师技巧(第二版)下载光盘源码(全) 立即下载
积分/C币:5
游戏编程精粹1 立即下载
积分/C币:3

热点文章

VIP会员动态

0 1 2
关闭
img

spring mvc+mybatis+mysql+maven+bootstrap 整合实现增删查改简单实例.zip

资源所需积分/C币 当前拥有积分 当前拥有C币
5 0 0
点击完成任务获取下载码
输入下载码
为了良好体验,不建议使用迅雷下载
img

《游戏编程精粹》光盘源代码

会员到期时间: 剩余下载个数: 剩余C币: 剩余积分:0
为了良好体验,不建议使用迅雷下载
VIP下载
您今日下载次数已达上限(为了良好下载体验及使用,每位用户24小时之内最多可下载20个资源)

积分不足!

资源所需积分/C币 当前拥有积分
您可以选择
开通VIP
4000万
程序员的必选
600万
绿色安全资源
现在开通
立省522元
或者
购买C币兑换积分 C币抽奖
img

资源所需积分/C币 当前拥有积分 当前拥有C币
5 4 45
为了良好体验,不建议使用迅雷下载
确认下载
img

资源所需积分/C币 当前拥有积分 当前拥有C币
5 0 0
为了良好体验,不建议使用迅雷下载
开通VIP
img

资源所需积分/C币 当前拥有积分 当前拥有C币
5 4 45
您的积分不足,将扣除 10 C币
为了良好体验,不建议使用迅雷下载
确认下载
下载
无法举报自己的资源

兑换成功

你当前的下载分为234开始下载资源
你还不是VIP会员
开通VIP会员权限,免积分下载
立即开通

你下载资源过于频繁,请输入验证码

您因违反CSDN下载频道规则而被锁定帐户,如有疑问,请联络:webmaster@csdn.net!

举报

若举报审核通过,可返还被扣除的积分

  • 举报人:
  • 被举报人:
  • 举报的资源分:
  • *类型:
  • *详细原因: