mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-06 00:37:57 +00:00
Changed package
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package org.rev317.min.debug;
|
||||
|
||||
import java.awt.Graphics;
|
||||
|
||||
import org.parabot.core.paint.AbstractDebugger;
|
||||
|
||||
public class DActions extends AbstractDebugger {
|
||||
private static boolean enabled;
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toggle() {
|
||||
enabled = !enabled;
|
||||
}
|
||||
|
||||
public static boolean debugActions() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package org.rev317.min.debug;
|
||||
|
||||
import java.awt.Graphics;
|
||||
|
||||
import org.parabot.core.Context;
|
||||
import org.parabot.core.paint.AbstractDebugger;
|
||||
import org.rev317.min.api.methods.Players;
|
||||
|
||||
public class DAnimation extends AbstractDebugger {
|
||||
private boolean enabled;
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
Context.getInstance().getPaintDebugger().addLine("Animation: " + Players.getMyPlayer().getAnimation());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toggle() {
|
||||
enabled = !enabled;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package org.rev317.min.debug;
|
||||
|
||||
import java.awt.Graphics;
|
||||
|
||||
import org.parabot.core.Context;
|
||||
import org.parabot.core.paint.AbstractDebugger;
|
||||
import org.parabot.core.paint.PaintDebugger;
|
||||
import org.rev317.min.api.methods.Game;
|
||||
import org.rev317.min.api.methods.Players;
|
||||
import org.rev317.min.api.wrappers.Tile;
|
||||
|
||||
public class DCollisionFlags extends AbstractDebugger {
|
||||
private boolean enabled;
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
PaintDebugger p = Context.getInstance().getPaintDebugger();
|
||||
Tile location = Players.getMyPlayer().getLocation();
|
||||
Tile north = new Tile(location.getX(), location.getY() + 1);
|
||||
Tile south = new Tile(location.getX(), location.getY() - 1);
|
||||
Tile west = new Tile(location.getX() - 1, location.getY());
|
||||
Tile east = new Tile(location.getX() + 1, location.getY());
|
||||
int flag = Game.getCollisionFlags()[location.getRegionX()][location.getRegionY()];
|
||||
p.addLine("Collision flag: 0x" + String.format("%X", flag));
|
||||
p.addLine("Reachable: [ cur: " + location.isReachable() + ", north: " + north.isReachable() + ", south: " + south.isReachable() + ", east: " + east.isReachable() + ", west: " + west.isReachable() + " ]");
|
||||
p.addLine("Walkable: [ cur: " + location.isWalkable() + ", north: " + north.isWalkable() + ", south: " + south.isWalkable() + ", east: " + east.isWalkable() + ", west: " + west.isWalkable() + " ]");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toggle() {
|
||||
enabled = !enabled;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package org.rev317.min.debug;
|
||||
|
||||
import java.awt.Graphics;
|
||||
|
||||
import org.parabot.core.paint.AbstractDebugger;
|
||||
import org.rev317.min.api.methods.GroundItems;
|
||||
import org.rev317.min.api.wrappers.GroundItem;
|
||||
|
||||
public class DGroundItems extends AbstractDebugger {
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toggle() {
|
||||
GroundItem[] items = GroundItems.getNearest();
|
||||
if(items == null || items.length == 0) {
|
||||
return;
|
||||
}
|
||||
for(GroundItem item : items) {
|
||||
System.out.println("ID: " + item.getId() + " Location: " + item.getLocation());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package org.rev317.min.debug;
|
||||
|
||||
import java.awt.Graphics;
|
||||
|
||||
import org.parabot.core.Context;
|
||||
import org.parabot.core.paint.AbstractDebugger;
|
||||
import org.parabot.core.paint.PaintDebugger;
|
||||
import org.rev317.min.api.methods.Game;
|
||||
|
||||
public class DInterfaces extends AbstractDebugger {
|
||||
private boolean enabled;
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
PaintDebugger p = Context.getInstance().getPaintDebugger();
|
||||
p.addLine("Open interface: " + Game.getOpenInterfaceId());
|
||||
p.addLine("Open back dialog: " + Game.getOpenBackDialogId());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toggle() {
|
||||
enabled = !enabled;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package org.rev317.min.debug;
|
||||
|
||||
import java.awt.Graphics;
|
||||
|
||||
import org.parabot.core.Context;
|
||||
import org.parabot.core.paint.AbstractDebugger;
|
||||
import org.parabot.core.paint.PaintDebugger;
|
||||
import org.rev317.min.api.methods.Game;
|
||||
import org.rev317.min.api.methods.Players;
|
||||
|
||||
public class DMap extends AbstractDebugger {
|
||||
private boolean enabled;
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
PaintDebugger p = Context.getInstance().getPaintDebugger();
|
||||
p.addLine("Location: " + Players.getMyPlayer().getLocation());
|
||||
p.addLine("Plane: " + Game.getPlane());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return enabled;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toggle() {
|
||||
enabled = !enabled;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package org.rev317.min.debug;
|
||||
|
||||
import java.awt.Graphics;
|
||||
|
||||
import org.parabot.core.paint.AbstractDebugger;
|
||||
import org.rev317.min.api.methods.Npcs;
|
||||
import org.rev317.min.api.wrappers.Npc;
|
||||
|
||||
public class DNpcs extends AbstractDebugger {
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toggle() {
|
||||
for(Npc n : Npcs.getNearest()) {
|
||||
System.out.println("ID: " + n.getDef().getId() + " Distance: " + n.distanceTo() + " Location: " + n.getLocation().toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package org.rev317.min.debug;
|
||||
|
||||
import java.awt.Graphics;
|
||||
|
||||
import org.parabot.core.paint.AbstractDebugger;
|
||||
import org.rev317.min.api.methods.SceneObjects;
|
||||
import org.rev317.min.api.wrappers.SceneObject;
|
||||
|
||||
public class DSceneObjects extends AbstractDebugger {
|
||||
|
||||
@Override
|
||||
public void paint(Graphics g) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void toggle() {
|
||||
SceneObject[] objects = SceneObjects.getNearest();
|
||||
for(SceneObject object : objects) {
|
||||
System.out.println("ID: " + object.getId() + " UID: " + object.getHash() + " Location: " + object.getLocation() + " Distance: " + object.distanceTo());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user