Giter VIP home page Giter VIP logo

herbert-utils's People

herbert-utils's Issues

shutdown work



在程序中中增加一个hook,jvm退出时会执行hook中的代码 
Runtime.getRuntime().addShutdownHook(Thread); 
kill -15 (SIGTERM)能够执行hook中代码 
kill -9   (SIGKILL) 不能够执行hook中代码

sample:
Runtime.getRuntime().addShutdownHook(new Thread() {
            public void run() {
                _server.stop();
                System.exit(0);
            }
        });


Original issue reported on code.google.com by [email protected] on 11 Apr 2012 at 2:33

Attachments:

游戏服务器todo

需要添加的模块有:
背包,装备,商城,排行,邮件,好友,公会

Original issue reported on code.google.com by [email protected] on 1 Apr 2012 at 3:27

怪物轮训

在白蛇的项目,所有场景地图下的怪物轮询,往往要花很久��
�时间,这个地方可以做一下优化,可以讲尚未激活的怪物,�
��于游走状态的怪物,独立出来,不放在场景轮询里,这样可
以让这批怪物占用比较少的CPU时间。
    具体方法是,单独的一个线程来处理这些怪物,更新他们的状态,包括停止,巡逻等,怪物刚创建的时候,由这个线程来管理,1s一次更新怪物的状态,如果有移动的话,广播位置信息。然后怪物AI的激活,由玩家进行,玩家的AOI中出现怪物,因为某种原因,例如靠近主动怪,则激活这些怪物的AI,将其中单独线程中移除,加入场景轮训中来。即怪物AI的触发由玩家来进行。

Original issue reported on code.google.com by [email protected] on 2 Aug 2012 at 3:11

flash客户端doto

1.聊天客户端

2.A*寻路算法

3.UI框架集成

4.RPG地图的算法,四叉树等

Original issue reported on code.google.com by [email protected] on 1 Apr 2012 at 3:28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.