惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
有赞技术团队
有赞技术团队
V
Visual Studio Blog
T
The Blog of Author Tim Ferriss
爱范儿
爱范儿
Vercel News
Vercel News
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Y
Y Combinator Blog
Blog — PlanetScale
Blog — PlanetScale
D
DataBreaches.Net
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
GbyAI
GbyAI
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
The Cloudflare Blog
宝玉的分享
宝玉的分享
V
V2EX
Microsoft Azure Blog
Microsoft Azure Blog

博客园 - appleseed

搭建一个typescript下的webgl写代码环境。 Unity3d 小游戏从入门到??? Unity3d 小游戏详解 linux随笔 使用public/private key让putty(ssh)自动登录(以及linux上使用密钥做ssh自动登陆) texturetool 3d专业术语 Molehill 转 降频的时候处理方法 [转] 使用Duff's Device算法优化for循环 转 [教程] [Lii]最小帧速下的强制渲染——自制图像引擎的同学看过来 - appleseed as3对象池研究 启动GPU加速的方法 恋爱秘籍 .... ..... AS3位运算
AI笔记
appleseed · 2010-02-04 · via 博客园 - appleseed

1、AIEngine为AI级别的父类,初始化放入AI_MODEL,同时初始化命令列表list(array),方法nextAction从list中取出AIAction ,执行AIAction中的execute方法执行命令。

2、AIAction为所有AI行为的父类,同上,execute中包含AI_MODEL.nextAction()。

3、HighAI继承AIEngine,放入AI_MODEL,初始化所有的行为,函数think放入需要执行的方法,nextAction()。

非即时返回Action的处理,继承AIAction,实现接口IFrame,放入FrameTimer.add中处理。结束的时候就FrameTimer.remove,FrameTimer有list,timer,

for each(var frame:IFrame in _list) {
                frame.action();
            }