Files
Parabot-317-API-Minified/src/org/rev317/min/debug/DMap.java
T
2014-04-10 18:50:44 +02:00

32 lines
714 B
Java

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;
}
}