- 博客(2)
- 资源 (2)
- 收藏
- 关注
原创 堆 在游戏中的运用
* 定时器的应用与原理:游戏中,活动的状态、游戏数据的保存与加载、BOSS刷新时间等等,都可能会用到定时器。而堆对于定时器的实现有着至关重要的作用。定时器的工作原理其实不难,就是内部保存多个时间及其回调函数,当系统时间达到我们保存的时间值时,就执行回调函数;从而达到定时工作的效果。同时,判断是否达到指定时间时,只需要判断最早的时间(最早的时间没有达到,更晚的时间肯定不会达到),因此需要对时
2015-07-09 00:04:11 2016
原创 redis client protocol 实现
在官网中http://redis.io/clients有许多已经实现好的redis client;有需要可以参考一下。其实前一篇http://blog.csdn.net/yitouhan/article/details/46612925 redis client protocol 解析,我已经对RESP做主要的解析。下面是解析RESP的所有函数,其中对外函数是RedisProtoc
2015-07-01 13:25:16 1653
寻路算法演示程序(A*,BFS,Dijkstra )
2015-06-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人