1package com.runehive.content.combat.cannon;
3import com.runehive.content.combat.cannon.CannonManager.Rotation;
4import com.runehive.content.combat.cannon.CannonManager.Setup;
5import com.runehive.game.world.entity.Entity;
6import com.runehive.game.world.entity.EntityType;
7import com.runehive.game.world.entity.mob.player.Player;
8import com.runehive.game.world.object.CustomGameObject;
9import com.runehive.game.world.position.Position;
10import com.runehive.game.world.region.Region;
11import com.runehive.net.packet.out.SendAddObject;
12import com.runehive.net.packet.out.SendRemoveObject;
100 if (region ==
null) {
127 return "Dwarf cannon";
void setRotation(Rotation rotation)
void setStage(Setup stage)
void setObject(CustomGameObject object)
EntityType getType()
Gets the EntityType.
void register()
Registers an entity to the World.
boolean equals(Object obj)
void setFiring(boolean firing)
CustomGameObject getObject()
void removeFromRegion(Region region)
Removes this entity from the specified region.
void setAmmunition(int ammunition)
String getName()
Gets the name of this entity.
void unregister()
Unregisters an entity from the World.
void addToRegion(Region region)
Adds this entity to the specified region.
Cannon(String owner, Position position)
void setRegistered(boolean registered)
Entity(Position position)
final boolean isRegistered()
Entity destroy()
Destroys this entity.
void setPosition(Position position)
boolean isValid()
Validates this npc based on its current region and registered state.
Represents a static game object loaded from the map fs.
Represents a single tile on the game world.
Represents a single region.
boolean containsObject(int height, GameObject object)
Collection< Player > getPlayers(int height)