Search in sources :

Example 1 with Projectile

use of org.powerbot.script.rt6.Projectile in project powerbot by powerbot.

the class DrawProjectiles method repaint.

@Override
public void repaint(final Graphics render) {
    if (!ctx.game.loggedIn()) {
        return;
    }
    for (final Projectile projectile : ctx.projectiles.select()) {
        final Tile t = projectile.tile();
        final TileMatrix m = new TileMatrix(ctx, t);
        if (!m.valid()) {
            continue;
        }
        m.bounds(new int[] { -128, 128, -256, 0, -128, 128 });
        m.draw(render, 255);
    }
}
Also used : Tile(org.powerbot.script.Tile) TileMatrix(org.powerbot.script.rt6.TileMatrix) Projectile(org.powerbot.script.rt6.Projectile)

Aggregations

Tile (org.powerbot.script.Tile)1 Projectile (org.powerbot.script.rt6.Projectile)1 TileMatrix (org.powerbot.script.rt6.TileMatrix)1