Package org.rsbot.script.wrappers

Examples of org.rsbot.script.wrappers.RSModel


  public void onRepaint(final Graphics render) {
    drawRect(render);
    if (enabled[0]) {
      for (final org.rsbot.script.wrappers.RSObject o : ctx.objects.getAll()) {
        final RSModel model = o.getModel();
        if (model != null) {
          render.setColor(color_map.get(o.getType()));
          model.drawWireFrame(render);
          render.setColor(Color.GREEN);
          final Point p = model.getPoint();
          render.fillOval(p.x - 1, p.y - 1, 2, 2);
        }
      }
    }
    if (enabled[1]) {
      for (final org.rsbot.script.wrappers.RSCharacter c : ctx.players.getAll()) {
        final RSModel model = c.getModel();
        if (model != null) {
          render.setColor(Color.RED);
          model.drawWireFrame(render);
        }
      }
    }
    if (enabled[2]) {
      for (final org.rsbot.script.wrappers.RSCharacter c : ctx.npcs.getAll()) {
        final RSModel model = c.getModel();
        if (model != null) {
          render.setColor(Color.MAGENTA);
          model.drawWireFrame(render);
        }
      }
    }
    if (enabled[3]) {
      for (final RSGroundItem item : ctx.groundItems.getAll()) {
        final RSModel model = item.getModel();
        if (model != null) {
          render.setColor(Color.CYAN);
          model.drawWireFrame(render);
        }
      }
    }
  }
View Full Code Here


    final int tHeight = metrics.getHeight();
    for (int x = locX - 25; x < locX + 25; x++) {
      for (int y = locY - 25; y < locY + 25; y++) {
        final RSGroundItem[] items = ctx.groundItems.getAllAt(x, y);
        if (items.length > 0) {
          final RSModel model = items[0].getModel();
          if (model != null) {
            render.setColor(Color.BLUE);
            model.drawWireFrame(render);
          }
        }
        for (int i = 0; i < items.length; i++) {
          final Point screen = ctx.calc.tileToScreen(new RSTile(x, y), items[i].getHeight());
          if (!ctx.calc.pointOnScreen(screen)) {
View Full Code Here

TOP

Related Classes of org.rsbot.script.wrappers.RSModel

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.