1package com.runehive.content.combat.cannon;
3import com.runehive.content.combat.cannon.CannonManager.Rotation;
4import com.runehive.game.task.Task;
5import com.runehive.game.world.World;
6import com.runehive.game.world.entity.combat.hit.Hit;
7import com.runehive.game.world.entity.combat.hit.HitIcon;
8import com.runehive.game.world.entity.mob.npc.Npc;
9import com.runehive.game.world.entity.mob.player.Player;
10import com.runehive.net.packet.out.SendMessage;
24 if (
cannon.getAmmunition() <= 0) {
31 switch (
cannon.getRotation()) {
65 int lockon = i.getIndex() + 1;
66 byte offsetX = (byte) ((i.getPosition().getY() - i.getPosition().getY()) * -1);
67 byte offsetY = (byte) ((i.getPosition().getX() - i.getPosition().getX()) * -1);
CannonFireAction(Player player, Cannon cannon)
void execute()
A function representing the unit of work that will be carried out.
Handles the dwarf cannon.
static Projectile getCannonFire()
static Npc[] getNpc(Cannon cannon)
static void rotate(Cannon cannon)
synchronized final void cancel()
Cancels all subsequent executions.
Task(boolean instant, int delay)
Creates a new Task.
Represents the game world.
static void sendProjectile(Projectile projectile, Position position, int instance, int lock, byte offsetX, byte offsetY)
Sends a world projectile.
A Hit object holds the damage amount and hitsplat data.
Represents a non-player character in the in-game world.
This class represents a character controlled by a player.
The OutgoingPacket that sends a message to a Players chatbox in the client.
The enumerated type whose elements represent the hit icon of a Hit.
CANON
Represents the canon hit icon.