Uses of Interface
dev.twilite.game.trait.Unit
Packages that use Unit
Package
Description
-
Uses of Unit in dev.twilite.game.common
Methods in dev.twilite.game.common with parameters of type UnitModifier and TypeMethodDescriptionbooleanReturns whether this area contains any tile occupied by a unit.Coord.directPathTo(Unit unit) Returns the direct greedy/dumb walk path from this coordinate to a unit in the currently loaded world.Rect.directPathTo(Unit unit) Returns the direct greedy/dumb walk path from this area to a unit in the currently loaded world.intCoord.distanceTo(Unit unit) Returns Chebyshev tile distance to a unit's occupied area.intRect.distanceTo(Unit unit) Returns Chebyshev tile distance from this area to a unit's occupied area.booleanCoord.lineOfSightTo(Unit unit) Returns whether line of sight is clear from this coordinate to a unit in the currently loaded world.booleanRect.lineOfSightTo(Unit unit) Returns whether line of sight is clear from this area to a unit in the currently loaded world.booleanCoord.lineOfWalkTo(Unit unit) Returns whether a direct line of walk is clear from this coordinate to a unit in the currently loaded world.booleanRect.lineOfWalkTo(Unit unit) Returns whether a direct line of walk is clear from this area to a unit in the currently loaded world.intCoord.manhattanDistanceTo(Unit unit) Returns Manhattan/taxicab tile distance to a unit's occupied area.intRect.manhattanDistanceTo(Unit unit) Returns Manhattan/taxicab tile distance from this area to a unit's occupied area. -
Uses of Unit in dev.twilite.game.facade
Methods in dev.twilite.game.facade that return types with arguments of type UnitModifier and TypeMethodDescriptionAvatar.faceUnit()Returns the unit currently faced by the local player, when available.Methods in dev.twilite.game.facade with parameters of type UnitModifier and TypeMethodDescriptionstatic intAvatar.distanceTo(Unit unit) Returns Chebyshev distance from the local player to a unit, orInteger.MAX_VALUEwhen unavailable.static booleanAvatar.facingUnit(Unit other) Returns whether the local player is facing the supplied unit.static booleanAvatar.lineOfSightTo(Unit unit) Returns whether the local player has line of sight to a unit.static booleanAvatar.lineOfWalkTo(Unit unit) Returns whether the local player has line of walk to a unit.static intAvatar.manhattanDistanceTo(Unit unit) Returns Manhattan distance from the local player to a unit, orInteger.MAX_VALUEwhen unavailable.static Optional<BankLocation> Returns the nearest unlocked withdrawable bank location by flat x/y tile distance.static intHud.wildernessLevel(Unit unit) Returns the Wilderness level at a unit's coordinate, or0outside the Wilderness. -
Uses of Unit in dev.twilite.game.stream
Classes in dev.twilite.game.stream with type parameters of type UnitModifier and TypeClassDescriptionclassView specialization for positioned game units.Methods in dev.twilite.game.stream with parameters of type Unit -
Uses of Unit in dev.twilite.game.trait
Subinterfaces of Unit in dev.twilite.game.traitModifier and TypeInterfaceDescriptioninterfaceA positioned unit that also exposes menu interactions.Methods in dev.twilite.game.trait with parameters of type UnitModifier and TypeMethodDescriptionUnit.directPathTo(Unit unit) Returns the direct greedy/dumb walk path from this unit to another unit in the currently loaded world.default intUnit.distanceTo(Unit unit) Returns Chebyshev tile distance between this unit and another unit.default booleanUnit.lineOfSightTo(Unit unit) Returns whether line of sight is clear from this unit to another unit in the currently loaded world.default booleanUnit.lineOfWalkTo(Unit unit) Returns whether a direct line of walk is clear from this unit to another unit in the currently loaded world.default intUnit.manhattanDistanceTo(Unit unit) Returns Manhattan/taxicab tile distance between this unit and another unit. -
Uses of Unit in dev.twilite.game.wrapper
Classes in dev.twilite.game.wrapper that implement UnitModifier and TypeClassDescriptionclassActor<T extends dev.twilite.game.internal.memory.RSActor>Base wrapper for actor units such as players and NPCs.classSpot animation/effect currently present in the world.classHint arrow marker, optionally targeting a unit.classNPC actor wrapper.classPlayer actor wrapper.classProjectile moving through the world.classScene object wrapper for walls, decorations, and ground objects.classItem stack on a world tile.classTransmitted world entity backed by a child world.Methods in dev.twilite.game.wrapper that return types with arguments of type UnitModifier and TypeMethodDescriptionActor.faceUnit()Resolves the unit this actor is currently facing.HintArrow.target()Resolves the unit targeted by this hint arrow when it targets a unit type.Methods in dev.twilite.game.wrapper with parameters of type UnitModifier and TypeMethodDescriptionbooleanActor.facingUnit(Unit other) Returns whether this actor is facing the specified unit.