Uses of Enum Class
games.stendhal.common.Direction
Packages that use Direction
Package
Description
the Stendhal Client.
entities are all the interactive objects of the gaming world
(including players, NPCs, creatures, items, signs, chests, portals, ...)
the user interface including all dialogs, the main game window and
views for the game entities.
common classes for both server and client.
Entities are all the interactive objects of the gaming world
(including players, NPCs, creatures, items, signs, chests, portals, ...)
-
Uses of Direction in games.stendhal.client
Methods in games.stendhal.client with parameters of type DirectionModifier and TypeMethodDescriptionbooleanStendhalClient.addDirection(Direction dir, boolean face) Add an active player movement direction.voidStendhalClient.removeDirection(Direction dir, boolean face) Remove a player movement direction. -
Uses of Direction in games.stendhal.client.entity
Methods in games.stendhal.client.entity that return DirectionMethods in games.stendhal.client.entity with parameters of type DirectionModifier and TypeMethodDescriptionvoidUser.predictMovement(Direction direction, boolean facing) Start movement towards a direction. -
Uses of Direction in games.stendhal.client.gui
Methods in games.stendhal.client.gui that return DirectionModifier and TypeMethodDescriptionGroundContainer.calculateZoneChangeDirection(Point2D point) Calculates whether the click was close enough to a zone border to trigger a zone change. -
Uses of Direction in games.stendhal.client.gui.j2d.entity.helpers
Methods in games.stendhal.client.gui.j2d.entity.helpers with parameters of type DirectionModifier and TypeMethodDescriptionvoidAttackPainter.draw(Graphics2D g2d, Direction direction, int x, int y, int width, int height) Draw a melee attack.voidPrepare for an attack to a given direction. -
Uses of Direction in games.stendhal.common
Methods in games.stendhal.common that return DirectionModifier and TypeMethodDescriptionstatic DirectionDirection.build(int val) converts an integer to a Directionstatic DirectionDirection.getAreaDirectionTowardsArea(Rectangle2D area1, Rectangle2D area2) Compares two area and return the direction of area2 towards area1.abstract DirectionDirection.nextDirection()gets the next direction clockwiseabstract DirectionDirection.oppositeDirection()gets the opposite directionstatic DirectionDirection.rand()gets a random directionstatic DirectionReturns the enum constant of this class with the specified name.static Direction[]Direction.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of Direction in games.stendhal.server.core.pathfinder
Fields in games.stendhal.server.core.pathfinder with type parameters of type DirectionModifier and TypeFieldDescriptionFixedPath.suspensionsPositions in the entity's path where it will suspend for a determined amount of turns.Methods in games.stendhal.server.core.pathfinder that return DirectionModifier and TypeMethodDescriptionFixedPath.getSuspendDirection(int pos) Retrieves the direction the entity should face while suspended.Methods in games.stendhal.server.core.pathfinder with parameters of type DirectionModifier and TypeMethodDescriptionvoidFixedPath.addSuspend(int duration, Direction dir, int... pos) Add a suspension to the entity's path. -
Uses of Direction in games.stendhal.server.entity
Methods in games.stendhal.server.entity that return DirectionModifier and TypeMethodDescriptionActiveEntity.getDirection()Get the current facing direction.protected final DirectionGuidedEntity.getDirectionFromOrigin()final DirectionActiveEntity.getDirectionToward(Entity entity) Get the direction toward an entity.final DirectionActiveEntity.getDirectionToward(Rectangle2D area) Methods in games.stendhal.server.entity with parameters of type DirectionModifier and TypeMethodDescriptionvoidGuidedEntity.addSuspend(int duration, Direction dir, int... pos) Add a suspension to the entity's path.voidActiveEntity.setDirection(Direction dir) Set the facing direction. -
Uses of Direction in games.stendhal.server.entity.mapstuff.block
Methods in games.stendhal.server.entity.mapstuff.block with parameters of type DirectionModifier and TypeMethodDescriptionintBlock.getXAfterPush(Direction d) intBlock.getYAfterPush(Direction d) voidPush this Block into a given direction -
Uses of Direction in games.stendhal.server.entity.mapstuff.portal
Methods in games.stendhal.server.entity.mapstuff.portal that return DirectionModifier and TypeMethodDescriptionfinal DirectionPortal.getFaceDirection()Get the direction player should face when portal is used as a destination.Methods in games.stendhal.server.entity.mapstuff.portal with parameters of type DirectionModifier and TypeMethodDescriptionfinal voidPortal.setFaceDirection(Direction dir) Sets the direction attribute for the portal which determines the direction the player should face when this portal is used as a destination. -
Uses of Direction in games.stendhal.server.entity.npc
Fields in games.stendhal.server.entity.npc declared as DirectionMethods in games.stendhal.server.entity.npc that return DirectionModifier and TypeMethodDescriptionprotected DirectionSpeakerNPCFactory.getDirection(ConfigurableFactoryContext ctx) Extract the direction in which the NPC faces from a context.Methods in games.stendhal.server.entity.npc with parameters of type DirectionModifier and TypeMethodDescriptionvoidSpeakerNPC.setIdleDirection(Direction dir) Sets the direction the entity should face while idle (not moving & not attending).voidNPC.setPathCompletedPause(int pause, Direction dir) -
Uses of Direction in games.stendhal.server.entity.npc.action
Constructors in games.stendhal.server.entity.npc.action with parameters of type DirectionModifierConstructorDescriptionNPCSetDirection(Direction direction) sets the direction of an NPCTeleportAction(String zonename, int x, int y, Direction direction) Creates a new TeleportAction. -
Uses of Direction in games.stendhal.server.entity.player
Methods in games.stendhal.server.entity.player with parameters of type DirectionModifier and TypeMethodDescriptionvoidPlayer.addClientDirection(Direction direction) Add an active client direction.voidPlayer.removeClientDirection(Direction direction) Remove an active client direction.booleanPlayer.teleport(StendhalRPZone zone, int x, int y, Direction dir, Player teleporter) Teleports this player to the given destination.booleanTeleports player to given destination using zoneid string. -
Uses of Direction in games.stendhal.server.maps.nalwor.forest
Constructors in games.stendhal.server.maps.nalwor.forest with parameters of type DirectionModifierConstructorDescriptionTrainingArea(String slot, StendhalRPZone zone, int x, int y, int width, int height, TrainingArea.TrainerNPC trainer, Point endPos, Point gatePos, Direction entersFrom) Creates a restricted area for training.TrainingArea(String slot, StendhalRPZone zone, Rectangle shape, TrainingArea.TrainerNPC trainer, Point endPos, Point gatePos, Direction entersFrom) Creates a restricted area for training.