|
RuneHive-Game
|
Represents a character in the game world, i.e. More...
Public Member Functions | |
| abstract void | addToRegion (Region region) |
| Adds this entity to the specified region. | |
| Entity (Position position) | |
| Entity (Position position, boolean visible) | |
| abstract boolean | equals (Object obj) |
| Position | getCenterPosition () |
| int | getHeight () |
| int | getIndex () |
| abstract String | getName () |
| Gets the name of this entity. | |
| Position | getPosition () |
| Region | getRegion () |
| abstract EntityType | getType () |
Gets the EntityType. | |
| int | getX () |
| int | getY () |
| abstract int | hashCode () |
| boolean | is (EntityType type) |
| final boolean | isCustomObject () |
| Check if an entity is an object. | |
| final boolean | isRegistered () |
| final boolean | isStaticObject () |
| Check if an entity is an object. | |
| boolean | isValid () |
| Validates this npc based on its current region and registered state. | |
| boolean | isVisible () |
| int | length () |
| void | onStep () |
| abstract void | register () |
Registers an entity to the World. | |
| abstract void | removeFromRegion (Region region) |
| Removes this entity from the specified region. | |
| void | setIndex (int index) |
| void | setLength (int length) |
| void | setPosition (Position position) |
| void | setVisible (boolean visible) |
| void | setWidth (int width) |
| void | setX (int x) |
| void | setY (int y) |
| void | setZ (int z) |
| String | toString () |
| abstract void | unregister () |
Unregisters an entity from the World. | |
| int | width () |
Public Attributes | |
| int | instance = DEFAULT_INSTANCE |
Static Public Attributes | |
| static final int | DEFAULT_INSTANCE = 0 |
Protected Member Functions | |
| Entity | destroy () |
| Destroys this entity. | |
| void | setRegistered (boolean registered) |
Private Attributes | |
| Region | currentRegion |
| int | index |
| int | length |
| Position | position |
| boolean | registered |
| boolean | visible |
| int | width |
Additional Inherited Members | |
| Static Public Member Functions inherited from com.runehive.game.world.Interactable | |
| static Interactable | create (Position position) |
Creates a new instance of an Interactable. | |
| static Interactable | create (Position position, int width, int length) |
Creates a new instance of an Interactable. | |
Represents a character in the game world, i.e.
a Player or an NPC.
Definition at line 13 of file Entity.java.
| com.runehive.game.world.entity.Entity.Entity | ( | Position | position | ) |
Definition at line 25 of file Entity.java.
References position.
Referenced by destroy().
| com.runehive.game.world.entity.Entity.Entity | ( | Position | position, |
| boolean | visible ) |
Definition at line 29 of file Entity.java.
References position, setPosition(), setVisible(), and visible.
|
abstract |
Adds this entity to the specified region.
| region | The region. |
Reimplemented in com.runehive.content.combat.cannon.Cannon, com.runehive.game.world.entity.mob.npc.Npc, com.runehive.game.world.entity.mob.player.Player, com.runehive.game.world.items.ground.GroundItem, and com.runehive.game.world.object.CustomGameObject.
Referenced by setPosition().
|
protected |
Destroys this entity.
Definition at line 143 of file Entity.java.
References currentRegion, Entity(), removeFromRegion(), and setRegistered().
Referenced by com.runehive.content.bot.PlayerBot.unregister(), com.runehive.content.combat.cannon.Cannon.unregister(), com.runehive.game.world.entity.mob.npc.Npc.unregister(), com.runehive.game.world.entity.mob.player.Player.unregister(), and com.runehive.game.world.object.CustomGameObject.unregister().
|
abstract |
Reimplemented in com.runehive.content.combat.cannon.Cannon, com.runehive.game.world.entity.mob.npc.Npc, com.runehive.game.world.entity.mob.player.Player, com.runehive.game.world.items.ground.GroundItem, and com.runehive.game.world.object.CustomGameObject.
Referenced by com.runehive.content.activity.impl.duelarena.DuelArenaListener.canAttack(), com.runehive.game.world.entity.combat.CombatUtil.canAttack(), com.runehive.game.world.entity.combat.CombatUtil.canBasicAttack(), com.runehive.content.pet.Pets.dialogue(), com.runehive.game.world.entity.mob.Mob.face(), com.runehive.content.activity.impl.fightcaves.FightCaves.handleDeath(), com.runehive.content.activity.inferno.Inferno.handleDeath(), com.runehive.game.world.entity.combat.magic.MagicImpact.hitEvent(), com.runehive.game.world.entity.combat.ranged.RangedEffects.hitEvent(), com.runehive.game.world.entity.combat.strategy.player.custom.ScytheOfViturStrategy.hitEvent(), com.runehive.game.world.entity.combat.strategy.player.special.melee.DinhsBulwark.hitEvent(), com.runehive.game.world.entity.combat.strategy.player.special.melee.Dragon2h.hitEvent(), com.runehive.game.world.entity.combat.Combat< T extends Mob >.isAttacking(), com.runehive.content.activity.impl.barrows.Barrows.onDeath(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.onDeath(), com.runehive.content.activity.impl.kraken.KrakenActivity.onDeath(), com.runehive.content.activity.impl.zulrah.ZulrahActivity.onDeath(), and com.runehive.game.world.entity.mob.Mob.takeStep().
| Position com.runehive.game.world.entity.Entity.getCenterPosition | ( | ) |
Definition at line 44 of file Entity.java.
References getHeight(), getPosition(), length, position, and width.
| int com.runehive.game.world.entity.Entity.getHeight | ( | ) |
getPosition() Implements com.runehive.game.world.Interactable.
Definition at line 82 of file Entity.java.
References position.
Referenced by com.runehive.content.Obelisks.activate(), com.runehive.game.world.region.Region.addGroundItem(), com.runehive.game.world.region.Region.addNpc(), com.runehive.game.world.region.Region.addPlayer(), com.runehive.content.combat.cannon.Cannon.addToRegion(), com.runehive.game.world.items.ground.GroundItem.addToRegion(), com.runehive.game.world.object.CustomGameObject.addToRegion(), com.runehive.content.skill.impl.hunter.Hunter.clickItem(), com.runehive.game.world.pathfinding.path.impl.AStarPathFinder.find(), com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), com.runehive.game.world.region.RegionManager.forNearbyPlayer(), getCenterPosition(), com.runehive.game.world.region.RegionManager.getLocalNpcs(), com.runehive.game.world.region.RegionManager.getLocalPlayers(), com.runehive.content.activity.impl.fightcaves.FightCaves.handleDeath(), com.runehive.content.activity.inferno.Inferno.handleDeath(), com.runehive.content.activity.infernomobs.JalTokJad.hit(), com.runehive.game.world.position.Boundary.isIn(), com.runehive.game.world.entity.mob.player.Player.loadRegion(), com.runehive.content.skill.impl.agility.obstacle.impl.SeersClimbInteraction.onExecution(), com.runehive.content.combat.cannon.Cannon.register(), com.runehive.game.world.object.CustomGameObject.register(), com.runehive.content.combat.cannon.Cannon.removeFromRegion(), com.runehive.game.world.items.ground.GroundItem.removeFromRegion(), com.runehive.game.world.object.CustomGameObject.removeFromRegion(), com.runehive.game.world.region.Region.removeGroundItem(), com.runehive.game.world.region.Region.removeNpc(), com.runehive.game.world.region.Region.removePlayer(), com.runehive.game.world.region.Region.sendGameObjects(), com.runehive.game.world.region.Region.sendGroundItems(), setPosition(), setX(), setY(), com.runehive.game.world.entity.combat.strategy.npc.boss.StoneGuardian.BoomAttack.start(), com.runehive.net.packet.out.SendPlayerUpdate.updateMovement(), and com.runehive.content.activity.impl.kraken.KrakenActivityListener.withinDistance().
| int com.runehive.game.world.entity.Entity.getIndex | ( | ) |
Definition at line 36 of file Entity.java.
References index.
Referenced by com.runehive.content.gambling.GambleManager.acceptRequest(), com.runehive.net.packet.out.SendNpcUpdate.addNewNpc(), com.runehive.net.packet.out.SendPlayerUpdate.addNewPlayer(), com.runehive.net.packet.out.SendNpcUpdate.appendFaceEntityMask(), com.runehive.net.packet.out.SendPlayerUpdate.appendFaceEntityMask(), com.runehive.net.packet.out.SendPlayerDetails.encode(), com.runehive.game.world.entity.mob.npc.Npc.equals(), com.runehive.game.world.entity.mob.player.Player.equals(), com.runehive.net.packet.out.SendEntityFeed.getOpponent(), com.runehive.game.world.entity.mob.npc.Npc.hashCode(), com.runehive.game.world.entity.mob.player.Player.hashCode(), com.runehive.game.world.items.ground.GroundItem.hashCode(), com.runehive.content.ProfileViewer.open(), com.runehive.game.ProjectileTest.ProjectileTest(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.entity.mob.npc.Npc.toString(), com.runehive.game.world.entity.mob.player.Player.toString(), and com.runehive.game.world.items.ground.GroundItem.toString().
|
abstract |
Gets the name of this entity.
Reimplemented in com.runehive.content.combat.cannon.Cannon, com.runehive.game.world.entity.mob.npc.Npc, com.runehive.game.world.entity.mob.player.Player, com.runehive.game.world.items.ground.GroundItem, and com.runehive.game.world.object.CustomGameObject.
Referenced by com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonScimitar.attack(), com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonWarhammer.attack(), com.runehive.content.activity.impl.duelarena.DuelArenaListener.canAttack(), com.runehive.game.world.entity.combat.CombatUtil.canAttack(), com.runehive.game.world.entity.combat.strategy.player.PlayerMagicStrategy.canAttack(), com.runehive.game.world.entity.combat.strategy.player.PlayerMagicStrategy.getHits(), com.runehive.game.world.entity.combat.attack.listener.item.AhrimListener.hit(), com.runehive.game.world.entity.combat.attack.listener.item.ToragListener.hit(), com.runehive.game.world.entity.combat.attack.listener.item.ImbuedSlayerHelmListener.modifyAttackLevel(), com.runehive.game.world.entity.combat.attack.listener.item.SlayerHelmListener.modifyAttackLevel(), com.runehive.game.world.entity.combat.attack.listener.item.ImbuedSlayerHelmListener.modifyMagicLevel(), com.runehive.game.world.entity.combat.attack.listener.item.ImbuedSlayerHelmListener.modifyRangedLevel(), com.runehive.game.world.entity.combat.attack.listener.item.ImbuedSlayerHelmListener.modifyStrengthLevel(), com.runehive.game.world.entity.combat.attack.listener.item.SlayerHelmListener.modifyStrengthLevel(), and com.runehive.game.world.entity.mob.Mob.pathfinderProjectiles().
| Position com.runehive.game.world.entity.Entity.getPosition | ( | ) |
Implements com.runehive.game.world.Interactable.
Reimplemented in com.runehive.content.combat.cannon.Cannon.
Definition at line 40 of file Entity.java.
References position.
Referenced by com.runehive.content.pet.Pets.abandon(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.VenomSpecial.AcidTask(), com.runehive.content.Obelisks.activate(), com.runehive.game.world.region.RegionBlock.addGroundItem(), com.runehive.net.packet.out.SendNpcUpdate.addNewNpc(), com.runehive.game.world.items.ground.GroundItem.addToRegion(), com.runehive.game.world.object.CustomGameObject.addToRegion(), com.runehive.game.world.pathfinding.path.impl.SimplePathFinder.addWalks(), com.runehive.net.packet.out.SendNpcUpdate.appendFaceCoordinateMask(), com.runehive.net.packet.out.SendPlayerUpdate.appendFaceCoordinteMask(), com.runehive.net.packet.out.SendPlayerUpdate.appendForceMovementMask(), com.runehive.game.world.entity.combat.Combat< T extends Mob >.attack(), com.runehive.content.wintertodt.Wintertodt.attackPyromancers(), com.runehive.game.world.entity.combat.attack.listener.npc.Alkahrid.block(), com.runehive.game.world.entity.mob.player.PlayerDeath.calculateDropItems(), com.runehive.content.activity.infernomobs.Jalimkot.canAttack(), com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonSpear.canAttack(), com.runehive.content.skill.impl.hunter.trap.TrapManager.canLay(), com.runehive.content.skill.impl.firemaking.Firemaking.clickObject(), com.runehive.content.skill.impl.construction.House.construct(), com.runehive.content.wintertodt.Wintertodt.doMagicAttack(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.VenomSpecial.dragonFireTickableTask(), com.runehive.content.combat.cannon.CannonManager.drop(), com.runehive.game.world.entity.mob.npc.drop.NpcDropManager.drop(), com.runehive.net.packet.out.SendCameraMovePosition.encode(), com.runehive.net.packet.out.SendCameraTurnPosition.encode(), com.runehive.net.packet.out.SendMapRegion.encode(), com.runehive.game.world.items.ground.GroundItem.equals(), com.runehive.game.world.object.CustomGameObject.equals(), com.runehive.content.skill.impl.agility.obstacle.ObstacleInteraction.execute(), com.runehive.game.action.impl.RevShortcutAction.execute(), com.runehive.game.world.entity.mob.Mob.face(), com.runehive.game.world.entity.mob.Mob.face(), com.runehive.game.world.pathfinding.path.impl.AStarPathFinder.find(), com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), com.runehive.game.world.pathfinding.path.impl.SimplePathFinder.find(), com.runehive.content.ai.AIDialogueHandler.findNearbyNpc(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vetion.finishIncoming(), com.runehive.content.skill.impl.farming.Farming.firstClickObject(), com.runehive.util.Utility.fixInsidePosition(), com.runehive.game.world.entity.mob.Mob.forceMove(), com.runehive.game.world.entity.combat.strategy.npc.NpcMagicStrategy.getAttackDelay(), getCenterPosition(), com.runehive.game.world.region.RegionManager.getLocalNpcs(), com.runehive.game.world.region.RegionManager.getLocalPlayers(), com.runehive.content.skill.impl.hunter.trap.TrapManager.goodArea(), com.runehive.content.ai.AIDialogueHandler.handleAICommand(), com.runehive.content.lms.LMSGame.handleFogDamage(), com.runehive.content.ai.LazyAIManager.handleGandalfAIClick(), com.runehive.net.packet.in.DropItemPacketListener.handlePacket(), com.runehive.content.skill.impl.hunter.trap.TrapManager.handleRegionChange(), com.runehive.game.world.items.ground.GroundItem.hashCode(), com.runehive.game.world.object.CustomGameObject.hashCode(), com.runehive.content.wintertodt.Wintertodt.healPyromancer(), com.runehive.game.world.entity.combat.strategy.npc.boss.TzTokJad.RangedAttack.hit(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.FireballAttack.hit(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.FrozenSpecial.hit(), com.runehive.game.world.entity.combat.strategy.npc.boss.Zulrah.MeleeAttack.hit(), com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonSpear.hit(), com.runehive.game.world.entity.combat.strategy.player.custom.ScytheOfViturStrategy.hitEvent(), com.runehive.game.world.position.Area.inArmadyl(), com.runehive.game.world.position.Area.inBandos(), com.runehive.game.world.position.Area.inSaradomin(), com.runehive.game.world.position.Area.inZamorak(), com.runehive.game.world.position.Position.isWithinDiagonalDistance(), com.runehive.content.skill.impl.farming.Farming.itemOnObject(), com.runehive.content.lms.lobby.LMSLobby.joinLobby(), com.runehive.game.world.entity.combat.strategy.npc.boss.Cerberus.LavaAttack.lavaTask(), com.runehive.content.lms.lobby.LMSLobby.leaveLobby(), com.runehive.game.world.entity.mob.player.Player.loadRegion(), com.runehive.content.pet.Pets.onDeath(), com.runehive.content.skill.impl.firemaking.FiremakingAction.onDestruct(), com.runehive.content.skill.impl.agility.obstacle.impl.ClimbOverInteraction.onExecution(), com.runehive.content.skill.impl.agility.obstacle.impl.RopeSwingInteraction.onExecution(), com.runehive.content.skill.impl.agility.obstacle.impl.SteppingStonesInteraction.onExecution(), com.runehive.content.skill.impl.agility.obstacle.impl.WildernessDoorInteraction.onExecution(), com.runehive.game.world.entity.mob.player.Player.onStep(), com.runehive.content.ProfileViewer.open(), com.runehive.game.world.entity.combat.strategy.npc.boss.Hydra.poisonAttack(), com.runehive.game.world.entity.combat.strategy.npc.boss.Hydra.poisonTask(), com.runehive.game.ProjectileTest.ProjectileTest(), com.runehive.content.bot.PlayerBot.register(), com.runehive.game.world.entity.mob.npc.Npc.register(), com.runehive.game.world.entity.mob.player.Player.register(), com.runehive.game.world.items.ground.GroundItem.register(), com.runehive.game.world.object.CustomGameObject.register(), com.runehive.game.world.entity.combat.strategy.player.custom.ToxicBlowpipeStrategy.removeAmmunition(), com.runehive.game.world.entity.combat.strategy.player.PlayerRangedStrategy.removeAmmunition(), com.runehive.game.world.items.ground.GroundItem.removeFromRegion(), com.runehive.game.world.object.CustomGameObject.removeFromRegion(), com.runehive.game.world.region.RegionBlock.removeGroundItem(), com.runehive.content.skill.impl.prayer.BoneSacrifice.sacrifice(), com.runehive.content.skill.impl.farming.Farming.secondClickObject(), com.runehive.content.skill.impl.farming.zones.FarmingZone.sendPatchConfigs(), com.runehive.game.world.entity.combat.projectile.CombatProjectile.sendProjectile(), com.runehive.content.skill.impl.hunter.trap.TrapExecution.setTrapProcess(), com.runehive.content.Waypoints.setWaypoint(), com.runehive.game.world.entity.mob.player.camera.DialogueCameraDirector.shoulderShot(), com.runehive.game.world.entity.mob.Viewport.shouldRemove(), com.runehive.content.activity.inferno.Inferno.start(), com.runehive.content.activity.infernomobs.JalTokJad.RangedAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Callisto.Roar.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Cerberus.LavaAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.ChaosFanatic.RainAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.CrazyArchaeologist.RainAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.LizardShaman.JumpAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.LizardShaman.MinionsAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.magearena.Derwen.LightingRain.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.magearena.Justiciar.LightingRain.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.StoneGuardian.BoomAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vetion.Magic.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.FireballAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.VenomSpecial.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Zulrah.MeleeAttack.start(), com.runehive.game.world.entity.combat.strategy.player.PlayerMagicStrategy.start(), com.runehive.game.world.entity.mob.Mob.takeStep(), com.runehive.content.activity.impl.barrows.BarrowsUtility.teleportPlayer(), com.runehive.content.combat.cannon.CannonManager.test(), com.runehive.game.world.entity.mob.player.camera.DialogueCameraDirector.tick(), toString(), com.runehive.game.world.entity.mob.npc.Npc.toString(), com.runehive.game.world.entity.mob.player.Player.toString(), com.runehive.game.world.items.ground.GroundItem.toString(), com.runehive.game.world.object.CustomGameObject.toString(), com.runehive.game.world.object.CustomGameObject.unregister(), and com.runehive.net.packet.out.SendPlayerUpdate.updateMovement().
| Region com.runehive.game.world.entity.Entity.getRegion | ( | ) |
Definition at line 70 of file Entity.java.
References currentRegion.
Referenced by com.runehive.game.world.entity.combat.CombatTarget.checkAggression(), com.runehive.game.world.region.RegionManager.forNearbyPlayer(), com.runehive.content.combat.cannon.Cannon.register(), com.runehive.game.world.object.CustomGameObject.register(), com.runehive.game.world.entity.combat.strategy.npc.boss.StoneGuardian.BoomAttack.start(), com.runehive.game.world.items.ground.GroundItem.unregister(), and com.runehive.game.world.object.CustomGameObject.unregister().
|
abstract |
Gets the EntityType.
EntityType. Reimplemented in com.runehive.content.combat.cannon.Cannon, com.runehive.game.world.entity.mob.npc.Npc, com.runehive.game.world.entity.mob.player.Player, com.runehive.game.world.items.ground.GroundItem, and com.runehive.game.world.object.CustomGameObject.
Referenced by is(), isCustomObject(), com.runehive.game.world.entity.mob.Mob.isNpc(), com.runehive.game.world.entity.mob.Mob.isNpc(), com.runehive.game.world.entity.mob.Mob.isPlayer(), com.runehive.game.world.entity.mob.Mob.isPlayer(), isStaticObject(), com.runehive.game.world.entity.mob.npc.NpcDeath.postDeath(), and toString().
| int com.runehive.game.world.entity.Entity.getX | ( | ) |
getPosition() Implements com.runehive.game.world.Interactable.
Definition at line 74 of file Entity.java.
References position.
Referenced by com.runehive.net.packet.out.SendPlayerUpdate.addNewPlayer(), com.runehive.content.skill.impl.hunter.Hunter.clickItem(), com.runehive.content.activity.impl.fightcaves.FightCaves.handleDeath(), com.runehive.content.activity.inferno.Inferno.handleDeath(), com.runehive.game.world.position.Boundary.isIn(), com.runehive.game.world.entity.mob.player.Player.loadRegion(), com.runehive.content.skill.impl.agility.obstacle.impl.SeersClimbInteraction.onExecution(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), setY(), setZ(), com.runehive.content.skill.impl.agility.obstacle.impl.ArdougneWallClimbInteraction.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Callisto.Roar.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.ChaosFanatic.RainAttack.start(), and com.runehive.game.world.entity.combat.strategy.npc.boss.CrazyArchaeologist.RainAttack.start().
| int com.runehive.game.world.entity.Entity.getY | ( | ) |
getPosition() Implements com.runehive.game.world.Interactable.
Definition at line 78 of file Entity.java.
References position.
Referenced by com.runehive.net.packet.out.SendPlayerUpdate.addNewPlayer(), com.runehive.content.skill.impl.hunter.Hunter.clickItem(), com.runehive.content.wintertodt.Wintertodt.doMagicAttack(), com.runehive.content.activity.impl.fightcaves.FightCaves.handleDeath(), com.runehive.content.activity.inferno.Inferno.handleDeath(), com.runehive.game.world.position.Boundary.isIn(), com.runehive.game.world.entity.mob.player.Player.loadRegion(), com.runehive.content.skill.impl.agility.obstacle.impl.SeersClimbInteraction.onExecution(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), setX(), setZ(), com.runehive.content.skill.impl.agility.obstacle.impl.ArdougneWallClimbInteraction.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Callisto.Roar.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.ChaosFanatic.RainAttack.start(), and com.runehive.game.world.entity.combat.strategy.npc.boss.CrazyArchaeologist.RainAttack.start().
|
abstract |
| boolean com.runehive.game.world.entity.Entity.is | ( | EntityType | type | ) |
Definition at line 134 of file Entity.java.
References getType().
| final boolean com.runehive.game.world.entity.Entity.isCustomObject | ( | ) |
Check if an entity is an object.
Definition at line 214 of file Entity.java.
References com.runehive.game.world.entity.EntityType.CUSTOM_OBJECT, and getType().
| final boolean com.runehive.game.world.entity.Entity.isRegistered | ( | ) |
Definition at line 62 of file Entity.java.
References registered.
Referenced by com.runehive.game.world.object.CustomGameObject.active(), com.runehive.content.activity.Activity.add(), com.runehive.game.task.impl.HunterTask.execute(), com.runehive.game.world.entity.combat.strategy.npc.boss.skotizo.SkotizoEvent.execute(), isValid(), com.runehive.content.ai.AIDialogueHandler.processGandalfAIMessage(), com.runehive.content.bot.PlayerBot.register(), com.runehive.content.combat.cannon.Cannon.register(), com.runehive.game.world.entity.mob.npc.Npc.register(), com.runehive.game.world.entity.mob.player.Player.register(), com.runehive.game.world.items.ground.GroundItem.register(), com.runehive.game.world.object.CustomGameObject.register(), com.runehive.content.ai.LazyAIManager.startInactivityTimer(), toString(), com.runehive.game.world.entity.mob.npc.Npc.toString(), com.runehive.content.bot.PlayerBot.unregister(), com.runehive.content.combat.cannon.Cannon.unregister(), com.runehive.game.world.entity.mob.npc.Npc.unregister(), com.runehive.game.world.entity.mob.player.Player.unregister(), com.runehive.game.world.items.ground.GroundItem.unregister(), and com.runehive.game.world.object.CustomGameObject.unregister().
| final boolean com.runehive.game.world.entity.Entity.isStaticObject | ( | ) |
Check if an entity is an object.
Definition at line 209 of file Entity.java.
References getType(), and com.runehive.game.world.entity.EntityType.STATIC_OBJECT.
| boolean com.runehive.game.world.entity.Entity.isValid | ( | ) |
Validates this npc based on its current region and registered state.
True if this npc is a valid log in the game world. Reimplemented in com.runehive.game.world.entity.mob.player.Player.
Definition at line 154 of file Entity.java.
References currentRegion, and isRegistered().
Referenced by com.runehive.game.world.region.RegionBlock.getCustomObject(), com.runehive.game.world.region.RegionBlock.sendGameObjects(), and com.runehive.game.world.entity.mob.Viewport.shouldRemove().
| boolean com.runehive.game.world.entity.Entity.isVisible | ( | ) |
Definition at line 66 of file Entity.java.
References visible.
Referenced by com.runehive.game.world.entity.combat.CombatTarget.checkAggression(), com.runehive.content.skill.impl.hunter.Hunter.clickNpc(), com.runehive.content.skill.impl.hunter.trap.TrapExecution.setTrapProcess(), com.runehive.game.world.entity.mob.Viewport.shouldRemove(), toString(), and com.runehive.content.activity.randomevent.RandomEventHandler.trigger().
| int com.runehive.game.world.entity.Entity.length | ( | ) |
Implements com.runehive.game.world.Interactable.
Reimplemented in com.runehive.game.world.object.CustomGameObject.
Definition at line 58 of file Entity.java.
References length.
| void com.runehive.game.world.entity.Entity.onStep | ( | ) |
Reimplemented in com.runehive.game.world.entity.mob.npc.Npc, and com.runehive.game.world.entity.mob.player.Player.
Definition at line 179 of file Entity.java.
Referenced by com.runehive.game.world.entity.mob.Mob.move().
|
abstract |
Registers an entity to the World.
Reimplemented in com.runehive.content.bot.PlayerBot, com.runehive.content.combat.cannon.Cannon, com.runehive.game.world.entity.mob.npc.Npc, com.runehive.game.world.entity.mob.player.Player, com.runehive.game.world.items.ground.GroundItem, and com.runehive.game.world.object.CustomGameObject.
Referenced by com.runehive.content.activity.Activity.add().
|
abstract |
Removes this entity from the specified region.
| region | The region. |
Reimplemented in com.runehive.content.combat.cannon.Cannon, com.runehive.game.world.entity.mob.npc.Npc, com.runehive.game.world.entity.mob.player.Player, com.runehive.game.world.items.ground.GroundItem, and com.runehive.game.world.object.CustomGameObject.
Referenced by destroy(), and setPosition().
| void com.runehive.game.world.entity.Entity.setIndex | ( | int | index | ) |
Definition at line 86 of file Entity.java.
References index.
Referenced by com.runehive.game.world.region.RegionBlock.addGroundItem().
| void com.runehive.game.world.entity.Entity.setLength | ( | int | length | ) |
Definition at line 94 of file Entity.java.
References length.
Referenced by com.runehive.game.world.entity.mob.Mob.transform().
| void com.runehive.game.world.entity.Entity.setPosition | ( | Position | position | ) |
Definition at line 106 of file Entity.java.
References addToRegion(), currentRegion, getHeight(), position, registered, and removeFromRegion().
Referenced by Entity(), com.runehive.game.world.entity.mob.Mob.move(), com.runehive.game.world.entity.mob.player.Player.Player(), com.runehive.content.bot.PlayerBot.register(), com.runehive.content.combat.cannon.Cannon.register(), com.runehive.game.world.entity.mob.npc.Npc.register(), com.runehive.game.world.entity.mob.player.Player.register(), com.runehive.game.world.items.ground.GroundItem.register(), com.runehive.game.world.object.CustomGameObject.register(), and com.runehive.game.world.entity.combat.strategy.npc.boss.Cerberus.GhostAttack.start().
|
protected |
Definition at line 98 of file Entity.java.
References registered.
Referenced by destroy(), com.runehive.content.bot.PlayerBot.register(), com.runehive.content.combat.cannon.Cannon.register(), com.runehive.game.world.entity.mob.npc.Npc.register(), com.runehive.game.world.entity.mob.player.Player.register(), com.runehive.game.world.items.ground.GroundItem.register(), com.runehive.game.world.object.CustomGameObject.register(), and com.runehive.game.world.items.ground.GroundItem.unregister().
| void com.runehive.game.world.entity.Entity.setVisible | ( | boolean | visible | ) |
Definition at line 102 of file Entity.java.
References visible.
Referenced by com.runehive.content.skill.impl.hunter.trap.TrapManager.catchNPC(), Entity(), com.runehive.game.world.entity.mob.player.Player.logout(), com.runehive.content.bot.PlayerBot.PlayerBot(), and com.runehive.game.world.entity.combat.strategy.npc.boss.LizardShaman.JumpAttack.start().
| void com.runehive.game.world.entity.Entity.setWidth | ( | int | width | ) |
Definition at line 90 of file Entity.java.
References width.
Referenced by com.runehive.game.world.entity.mob.Mob.transform().
| void com.runehive.game.world.entity.Entity.setX | ( | int | x | ) |
Definition at line 122 of file Entity.java.
References getHeight(), getY(), and position.
| void com.runehive.game.world.entity.Entity.setY | ( | int | y | ) |
Definition at line 126 of file Entity.java.
References getHeight(), getX(), and position.
| void com.runehive.game.world.entity.Entity.setZ | ( | int | z | ) |
Definition at line 130 of file Entity.java.
References getX(), getY(), and position.
| String com.runehive.game.world.entity.Entity.toString | ( | ) |
Reimplemented in com.runehive.game.world.entity.mob.npc.Npc, com.runehive.game.world.entity.mob.player.Player, com.runehive.game.world.items.ground.GroundItem, and com.runehive.game.world.object.CustomGameObject.
Definition at line 204 of file Entity.java.
References getPosition(), getType(), isRegistered(), and isVisible().
|
abstract |
Unregisters an entity from the World.
Reimplemented in com.runehive.content.bot.PlayerBot, com.runehive.content.combat.cannon.Cannon, com.runehive.game.world.entity.mob.npc.Npc, com.runehive.game.world.entity.mob.player.Player, com.runehive.game.world.items.ground.GroundItem, and com.runehive.game.world.object.CustomGameObject.
| int com.runehive.game.world.entity.Entity.width | ( | ) |
Implements com.runehive.game.world.Interactable.
Reimplemented in com.runehive.game.world.object.CustomGameObject.
Definition at line 53 of file Entity.java.
References width.
|
private |
Definition at line 22 of file Entity.java.
Referenced by destroy(), getRegion(), isValid(), and setPosition().
|
static |
Definition at line 14 of file Entity.java.
Referenced by com.runehive.content.activity.impl.barrows.Barrows.Barrows(), com.runehive.game.world.object.CustomGameObject.CustomGameObject(), com.runehive.game.world.object.CustomGameObject.CustomGameObject(), com.runehive.content.activity.impl.duelarena.DuelArenaActivity.DuelArenaActivity(), com.runehive.game.world.entity.combat.strategy.npc.boss.skotizo.SkotizoUtility.generateSpawn(), com.runehive.game.world.object.GameObject.getInstancedHeight(), com.runehive.content.activity.impl.godwars.GodwarsActivity.GodwarsActivity(), com.runehive.game.world.position.Area.inkolodionArena(), com.runehive.content.activity.impl.JailActivity.JailActivity(), com.runehive.game.action.impl.TeleportAction.onCancel(), com.runehive.util.parser.impl.NpcSpawnParser.parse(), com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlGame(), com.runehive.content.activity.impl.pestcontrol.PestControlGame.PestControlNode.PestControlNode(), com.runehive.content.activity.Activity.remove(), com.runehive.content.skill.SkillRepository.spawn(), com.runehive.game.action.impl.TutorialActivity.start(), com.runehive.content.skill.impl.magic.teleport.Teleportation.teleport(), and com.runehive.content.activity.impl.warriorguild.WarriorGuild.WarriorGuild().
|
private |
| int com.runehive.game.world.entity.Entity.instance = DEFAULT_INSTANCE |
Definition at line 23 of file Entity.java.
Referenced by com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.VenomSpecial.AcidTask(), com.runehive.game.world.items.ground.GroundItem.canSee(), com.runehive.game.world.object.CustomGameObject.CustomGameObject(), com.runehive.game.world.object.CustomGameObject.CustomGameObject(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.VenomSpecial.dragonFireTickableTask(), com.runehive.net.packet.out.SendAddObject.encode(), com.runehive.net.packet.out.SendGroundItem.encode(), com.runehive.game.world.object.CustomGameObject.getInstancedHeight(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.FireballAttack.hit(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.FrozenSpecial.hit(), com.runehive.game.world.entity.combat.strategy.npc.boss.Cerberus.LavaAttack.lavaTask(), com.runehive.game.world.entity.mob.npc.Npc.Npc(), com.runehive.game.world.entity.mob.npc.Npc.Npc(), com.runehive.content.pet.Pets.onSpawn(), com.runehive.content.skill.impl.prayer.BoneSacrifice.sacrifice(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.entity.mob.Viewport.shouldRemove(), com.runehive.game.world.entity.combat.strategy.npc.boss.ChaosFanatic.RainAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.CrazyArchaeologist.RainAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.LizardShaman.MinionsAttack.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.skotizo.Skotizo.LightingRain.start(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vetion.Magic.start(), com.runehive.content.skill.impl.magic.teleport.Teleportation.teleport(), com.runehive.game.world.entity.mob.npc.Npc.toString(), com.runehive.game.world.entity.combat.CombatUtil.validate(), and com.runehive.game.world.entity.combat.CombatUtil.validateMobs().
|
private |
Reimplemented in com.runehive.game.world.object.CustomGameObject.
Definition at line 18 of file Entity.java.
Referenced by com.runehive.game.world.pathfinding.path.impl.SimplePathFinder.addWalks(), com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonSpear.canAttack(), com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vetion.finishIncoming(), com.runehive.util.Utility.fixInsidePosition(), getCenterPosition(), com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonHaldberd.getHits(), com.runehive.content.combat.cannon.CannonManager.getNpc(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.FireballAttack.hit(), length(), com.runehive.game.world.entity.mob.npc.Npc.register(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), setLength(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vetion.Magic.start(), and com.runehive.game.world.pathfinding.path.impl.SimplePathFinder.traversable().
|
private |
Definition at line 21 of file Entity.java.
Referenced by com.runehive.game.world.items.ground.GroundItem.create(), com.runehive.game.world.items.ground.GroundItem.createGlobal(), com.runehive.game.world.object.CustomGameObject.CustomGameObject(), com.runehive.game.world.object.CustomGameObject.CustomGameObject(), com.runehive.game.world.object.CustomGameObject.CustomGameObject(), com.runehive.game.world.object.CustomGameObject.CustomGameObject(), Entity(), Entity(), com.runehive.game.world.entity.mob.Mob.face(), com.runehive.game.world.entity.mob.Mob.face(), getCenterPosition(), getHeight(), getPosition(), getX(), getY(), com.runehive.game.world.items.ground.GroundItem.GroundItem(), com.runehive.game.world.entity.mob.Mob.Mob(), com.runehive.game.world.entity.mob.Mob.Mob(), com.runehive.game.world.entity.mob.Mob.move(), com.runehive.game.world.entity.mob.npc.Npc.Npc(), com.runehive.game.world.entity.mob.npc.Npc.Npc(), com.runehive.game.world.entity.mob.npc.Npc.Npc(), com.runehive.game.world.entity.mob.npc.Npc.Npc(), com.runehive.game.world.entity.mob.player.Player.pickup(), com.runehive.game.world.items.ground.GroundItem.pickup(), com.runehive.game.world.entity.mob.player.Player.Player(), com.runehive.content.activity.impl.pestcontrol.PestControlGame.Portal.Portal(), setPosition(), setX(), setY(), setZ(), com.runehive.game.world.entity.mob.Mob.walk(), com.runehive.game.world.entity.mob.Mob.walkExactlyTo(), com.runehive.game.world.entity.mob.Mob.walkExactlyTo(), com.runehive.game.world.entity.mob.Mob.walkTo(), and com.runehive.game.world.entity.mob.Mob.walkTo().
|
private |
Definition at line 19 of file Entity.java.
Referenced by isRegistered(), setPosition(), and setRegistered().
|
private |
Definition at line 20 of file Entity.java.
Referenced by Entity(), isVisible(), com.runehive.game.world.entity.mob.Mob.Mob(), and setVisible().
|
private |
Reimplemented in com.runehive.game.world.object.CustomGameObject.
Definition at line 17 of file Entity.java.
Referenced by com.runehive.game.world.pathfinding.path.impl.SimplePathFinder.addWalks(), com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonSpear.canAttack(), com.runehive.content.gambling.GambleManager.canPlayFlowerPokerAtPositon(), com.runehive.game.world.pathfinding.path.impl.AStarPathFinder.find(), com.runehive.game.world.pathfinding.path.impl.DijkstraPathFinder.find(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vetion.finishIncoming(), com.runehive.util.Utility.fixInsidePosition(), getCenterPosition(), com.runehive.game.world.entity.combat.strategy.player.special.melee.DragonHaldberd.getHits(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vorkath.FireballAttack.hit(), com.runehive.game.world.entity.mob.npc.Npc.register(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), com.runehive.game.world.World.sendProjectile(), setWidth(), com.runehive.game.world.entity.combat.strategy.npc.boss.Vetion.Magic.start(), com.runehive.game.world.entity.mob.Mob.takeStep(), com.runehive.game.world.pathfinding.path.impl.SimplePathFinder.traversable(), and width().