Package org.groovymud.object

Examples of org.groovymud.object.MockMudObject


    engine.setExecutor(Executors.newCachedThreadPool());
    engine.setRunning(true);
    engine.start();
    Thread.sleep(1000);
    for (int x = 0; x < 10000000; x++) {
      MockMudObject obj = new MockMudObject() {

        @Override
        public void heartBeat() {
          if ("wombat0".equals(getName())) {
            logging = true;
          }
          super.heartBeat();
        }
      };
      obj.setName("wombat" + x);

      if (reg.getMudObjects().size() % 1000 == 0) {
        System.out.println("objects.size: " + reg.getMudObjects().size());
      }
      reg.addMudObject(obj);
View Full Code Here

TOP

Related Classes of org.groovymud.object.MockMudObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.