Package org.groovymud.object.registry

Examples of org.groovymud.object.registry.InventoryHandler


    }
  }

  public void writeLookBody(Alive looker, MudObject target) {
    ContentsHelper contentHelper = createContentsHelper();
    InventoryHandler handler = ((Container) target).getInventoryHandler();
    Map<String, Set<MudObject>> dead = new HashMap<String, Set<MudObject>>(handler.getMudObjectsMap(false));

    String deadContents = contentHelper.getContentsDescription(dead, looker, false);
    if (dead.size() > 0) {
      try {
        looker.getTerminalOutput().write(deadContents);
View Full Code Here


import org.groovymud.object.registry.Registry;

public class EngineLoadTest extends TestCase {

  public void testLoad() throws InterruptedException {
    InventoryHandler handler = new InventoryHandler();
    final Registry reg = new Registry(handler) {

    };

    final JMudEngine engine = new JMudEngine() {
View Full Code Here

    }
  }

  public void writeLookBody(Alive looker, MudObject target) {
    ContentsHelper contentHelper = createContentsHelper();
    InventoryHandler handler = ((Container) target).getInventoryHandler();
    Map<String, Set<MudObject>> dead = new HashMap<String, Set<MudObject>>(handler.getMudObjectsMap(false));

    String deadContents = contentHelper.getContentsDescription(dead, looker, false);
    if (dead.size() > 0) {
      try {
        looker.getTerminalOutput().write(deadContents);
View Full Code Here

TOP

Related Classes of org.groovymud.object.registry.InventoryHandler

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.