摘要
动态性和实时性电脑游戏世界的两个关键特征。Anytime规划是能够产生满足上述两个特征的行为的规划方法。分层任务网络(Hierarchical Task Network,HTN)是表示分层规划的一种形式,它非常适合于表达电脑游戏中非玩家角色(non-player char-acter,NPC)复杂的目标。以著名的第一人称射击(First-Person Shooter,FPS)游戏虚幻竞技场2004(Unreal Tournament 2004)作为游戏平台,为NPC设计实现了一个基于HTN规划的anytime规划器,并使用遗传算法调整规划目标的优先级。该规划器可以根据环境变化随时中断规划并给出可用的规划结果,同时具有一定的适应性。实验表明它能够使NPC的行为更智能。
Dynamic and .real-time are two key features of computer game worlds.Anytime planning is a method of generating behaviors that meets the demands of these two feature.HTN(Hierarehical Task Networks) is a formalism for representing hierarchical plans. It quite fit to express the complex goals of NPC(non-player character) in computer games.Taking Unreal Tournament 2004 which is a famous first-person shooter computer games as platforms,we design and implement an anytime planner based HTN for NPC and use Genetic Algorithm to adjust the priorities of goals.It allows agent to interrupt its planning process at anytime based on the changes of environment meanwhile return an available plan ,it also has some adaptability.The experiments show that it makes the behaviors of NPC more intelligent.
出处
《计算机工程与应用》
CSCD
北大核心
2008年第21期92-95,108,共5页
Computer Engineering and Applications
基金
国家自然科学基金(the National Natural Science Foundation of China under Grant No.60775046)