- 博客(5)
- 收藏
- 关注
原创 游戏AI算法:GOAP的简单实现
直接贴代码吧,c#模拟的,新建一个控制台项目,然后全部拷贝进去运行即可。 planner部分应该是从目标到当前状态的倒叙a*搜索比较合适,因为我模拟的比较简单,这部分就直接略过了,也就是说在这个项目中所有原子化的action都能直接实现当前状态到目标。 写的比较快,有些地方命名不严格,有些地方随便写的名字。 using System; using System.Collections.Ge...
2019-07-17 00:09:16 2385
原创 iis下php无法关闭display_errors的疑难杂症
是因为log_error与display_errors冲突,如果关闭log_error或者将log_error设置到其他有权限的目录即可
2019-02-21 19:50:53 207
原创 根据子节点记录法所存储的数据,生成嵌套结构的php对象。
$tree[0]['text']='a'; $tree[0]['son_nor']='b%c'; $tree[1]['text']='b'; $tree[1]['son_nor']='d'; $tree[2]['text']='c'; $tree[2]['son_nor']='-1'; $tree[3]['text']='d'; $tree[3]['son_nor']=...
2018-06-21 21:53:50 133
原创 ajax jquery
<script> window.onload = function() { $(".btn-deladmin").click(function() { var $id = $(this).parent().parent().attr('id'); $id = $id.substr(3, $id.length - 3); var html = $.ajax({ ...
2018-06-20 15:20:32 97
原创 bootstrap table操作
<table id="table"></table>$("#table").bootstrapTable({ url: 'testdata.php', method: 'post', search: true, pagination: true, columns: [{ field: 'name', title: '姓名', event...
2018-06-20 12:20:18 207
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人