Uses of Enum Class
games.stendhal.common.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
Modifier and TypeMethodDescriptionboolean
StendhalClient.addDirection(Direction dir, boolean face)
Add an active player movement direction.void
StendhalClient.removeDirection(Direction dir, boolean face)
Remove a player movement direction. -
Uses of Direction in games.stendhal.client.entity
Modifier and TypeMethodDescriptionvoid
User.predictMovement(Direction direction, boolean facing)
Start movement towards a direction. -
Uses of Direction in games.stendhal.client.gui
Modifier 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
Modifier and TypeMethodDescriptionvoid
AttackPainter.draw(Graphics2D g2d, Direction direction, int x, int y, int width, int height)
Draw a melee attack.void
Prepare for an attack to a given direction. -
Uses of Direction in games.stendhal.common
Modifier and TypeMethodDescriptionstatic Direction
Direction.build(int val)
converts an integer to a Directionstatic Direction
Direction.getAreaDirectionTowardsArea(Rectangle2D area1, Rectangle2D area2)
Compares two area and return the direction of area2 towards area1.abstract Direction
Direction.nextDirection()
gets the next direction clockwiseabstract Direction
Direction.oppositeDirection()
gets the opposite directionstatic Direction
Direction.rand()
gets a random directionstatic Direction
Returns 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
Modifier and TypeFieldDescriptionFixedPath.suspensions
Positions in the entity's path where it will suspend for a determined amount of turns.Modifier and TypeMethodDescriptionFixedPath.getSuspendDirection(int pos)
Retrieves the direction the entity should face while suspended.Modifier and TypeMethodDescriptionvoid
FixedPath.addSuspend(int duration, Direction dir, int... pos)
Add a suspension to the entity's path. -
Uses of Direction in games.stendhal.server.entity
Modifier and TypeMethodDescriptionActiveEntity.getDirection()
Get the current facing direction.protected Direction
GuidedEntity.getDirectionFromOrigin()
ActiveEntity.getDirectionToward(Entity entity)
Get the direction toward an entity.ActiveEntity.getDirectionToward(Rectangle2D area)
Modifier and TypeMethodDescriptionvoid
GuidedEntity.addSuspend(int duration, Direction dir, int... pos)
Add a suspension to the entity's path.void
ActiveEntity.setDirection(Direction dir)
Set the facing direction. -
Uses of Direction in games.stendhal.server.entity.mapstuff.block
Modifier and TypeMethodDescriptionint
Block.getXAfterPush(Direction d)
int
Block.getYAfterPush(Direction d)
void
Push this Block into a given direction -
Uses of Direction in games.stendhal.server.entity.mapstuff.portal
Modifier and TypeMethodDescriptionPortal.getFaceDirection()
Get the direction player should face when portal is used as a destination.Modifier and TypeMethodDescriptionvoid
Portal.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
Modifier and TypeMethodDescriptionprotected Direction
SpeakerNPCFactory.getDirection(ConfigurableFactoryContext ctx)
Extract the direction in which the NPC faces from a context.Modifier and TypeMethodDescriptionvoid
SpeakerNPC.setIdleDirection(Direction dir)
Sets the direction the entity should face while idle (not moving & not attending).void
NPC.setPathCompletedPause(int pause, Direction dir)
-
Uses of Direction in games.stendhal.server.entity.npc.action
ModifierConstructorDescriptionNPCSetDirection(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
Modifier and TypeMethodDescriptionvoid
Player.addClientDirection(Direction direction)
Add an active client direction.void
Player.removeClientDirection(Direction direction)
Remove an active client direction.boolean
Player.teleport(StendhalRPZone zone, int x, int y, Direction dir, Player teleporter)
Teleports this player to the given destination.boolean
Teleports player to given destination using zoneid string. -
Uses of Direction in games.stendhal.server.maps.nalwor.forest
ModifierConstructorDescriptionTrainingArea(String slot, StendhalRPZone zone, int x, int y, int width, int height, TrainingArea.TrainerNPC trainer, Point endPos, Point gatePos, Direction entersFrom)
TrainingArea(String slot, StendhalRPZone zone, Rectangle shape, TrainingArea.TrainerNPC trainer, Point endPos, Point gatePos, Direction entersFrom)