下载 > 资源分类 >  开发技术 >  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 articl
e "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 
readable. 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.1(118位用户评分)
直接下载 开通VIP会员 免积分下载

评论共有12条

name
u0122348662017-06-22 19:40:04
不错,慢些消化哈,太多了
name
guocheng782016-08-10 10:25:34
代码好像不全,不管怎么样
name
kmpop20002015-03-11 17:22:24
是个好东西,多谢分享
name
chenchao_xjtu2014-12-06 10:11:39
代码不全,光盘堆砌
name
kokobebekoko1232014-10-16 20:48:13
正在搜集这个。。。还不错吧。。。
name
avi443322112013-11-14 21:13:57
好像少了点什么,不过还行,谢谢了。
name
fxgood2013-06-04 11:06:00
好像少了点什么,总是还是很有帮助的
name
azq1112013-03-08 10:11:28
代码好像不全
name
lpfxyww2013-02-26 20:53:47
好东西,正需要这个代码呢
name
anjingdian07072012-11-28 14:55:06
还有光盘,不错

评论资源

您不能发表评论,可能是以下原因:

登录后才能评论

待评论资源
 

热门专辑

开发技术热门标签

VIP会员动态

关闭
img

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

CSDN VIP年卡 4000万程序员的必选现在开通,立省522元
为了良好体验,不建议使用迅雷下载
下载
img

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

会员到期时间: 剩余下载个数: 剩余C币:200 剩余积分:6726
为了良好体验,不建议使用迅雷下载
VIP下载

积分不足!

资源所需积分/C币 当前拥有积分
您可以选择
开通VIP年卡
4000万
程序员的必选
600万
绿色安全资源
现在开通
立省522元
或者
购买C币兑换积分 C币抽奖
img
资源所需积分/C币 当前拥有积分 当前拥有C币
5 4 45
(仅够下载10个资源)
VIP年卡
全站1200个资源免积分下载
为了良好体验,不建议使用迅雷下载
下载
img
资源所需积分/C币 当前拥有积分 当前拥有C币
5 0 0
VIP年卡
全站1200个资源免积分下载
C币充值开通VIP年卡
img
资源所需积分/C币 当前拥有积分 当前拥有C币
5 4 45
您的积分不足,将扣除 10 C币
VIP年卡
全站1200个资源免积分下载
为了良好体验,不建议使用迅雷下载
下载
下载

兑换成功

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

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

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

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

举报

若举报审核通过,可奖励20下载分

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