Examples of IHostManager


Examples of net.sf.robocode.host.IHostManager

  }

  protected void validateType(boolean resolve) {
    populate();

    final IHostManager hostManager = Container.getComponent(IHostManager.class);

    robotType = hostManager.getRobotType(this, resolve, classURL != null);
    if (!robotType.isValid()) {
      isValid = false;
    }
  }
View Full Code Here

Examples of net.sf.robocode.host.IHostManager

    // Store .team file into jar file
    addToJar(target, jarEntries, FileUtil.getRobotsDir().getPath(), robotPathWithoutFileExt, ".team");
  }

  private static void addRobotFilesToJar(JarOutputStream target, Set<String> jarEntries, IRobotItem robotItem, RobotProperties props) throws IOException {
    IHostManager host = Container.getComponent(IHostManager.class);
    for (String className : host.getReferencedClasses(robotItem)) {
      if (!className.startsWith("java") && !className.startsWith("robocode")) {
        String robotPath = className.replace('.', '/');
        addRobotFilesToJar(target, jarEntries, robotPath, robotItem, props);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.