Package com.epicbot.api.shared.model
Class Tile
java.lang.Object
com.epicbot.api.shared.model.Tile
- All Implemented Interfaces:
Actionable,Clickable,Interactable,Locatable,Renderable,Validatable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclick(boolean rightClick) Click on the entity.booleanDetermines if this entity contains the given point.booleanGets the available actions.Gets the central point within the entity calculated using only visible model points.Gets the tile that this entity is located on in the world.intgetPlane()Gets the z-coordinate, also known as the floor or level.getPoint(double x, double y, int plane) Get a random point within the entity.Gets the central point within the entity calculated using visible and non-visible model points.Gets the scene offset for this entity.intgetX()Gets the x-coordinate.intgetY()Gets the y-coordinate.booleanDetermines if this entity has one of the given actions.inthashCode()booleanhover()Hover on the entity.booleanInteracts with the entity.booleanInteracts with the entity.static booleanisBlocked(int flag) booleanisValid()Verifies whether this entity is valid and still exists.booleanGets if this entity is visible on screen.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.epicbot.api.shared.entity.details.Actionable
hasActionMatchMethods inherited from interface com.epicbot.api.shared.entity.details.Interactable
interact, interact, interactMatchMethods inherited from interface com.epicbot.api.shared.entity.details.Locatable
canReach, canReach, canReach, derive, derive, distanceTo, distanceTo, getArea, getArea, getMapPoint, isOnMap, randomize, randomize, randomize, tileDistanceTo, tileDistanceToMethods inherited from interface com.epicbot.api.shared.entity.details.Renderable
draw, draw, draw
-
Field Details
-
OPEN
public static final int OPEN- See Also:
-
CLOSED
public static final int CLOSED- See Also:
-
WALL_NORTHWEST
public static final int WALL_NORTHWEST- See Also:
-
WALL_NORTH
public static final int WALL_NORTH- See Also:
-
WALL_NORTHEAST
public static final int WALL_NORTHEAST- See Also:
-
WALL_EAST
public static final int WALL_EAST- See Also:
-
WALL_SOUTHEAST
public static final int WALL_SOUTHEAST- See Also:
-
WALL_SOUTH
public static final int WALL_SOUTH- See Also:
-
WALL_SOUTHWEST
public static final int WALL_SOUTHWEST- See Also:
-
WALL_WEST
public static final int WALL_WEST- See Also:
-
WALL_BLOCK_NORTHWEST
public static final int WALL_BLOCK_NORTHWEST- See Also:
-
WALL_BLOCK_NORTH
public static final int WALL_BLOCK_NORTH- See Also:
-
WALL_BLOCK_NORTHEAST
public static final int WALL_BLOCK_NORTHEAST- See Also:
-
WALL_BLOCK_EAST
public static final int WALL_BLOCK_EAST- See Also:
-
WALL_BLOCK_SOUTHEAST
public static final int WALL_BLOCK_SOUTHEAST- See Also:
-
WALL_BLOCK_SOUTH
public static final int WALL_BLOCK_SOUTH- See Also:
-
WALL_BLOCK_SOUTHWEST
public static final int WALL_BLOCK_SOUTHWEST- See Also:
-
WALL_BLOCK_WEST
public static final int WALL_BLOCK_WEST- See Also:
-
WALL_ALLOW_RANGE_NORTHWEST
public static final int WALL_ALLOW_RANGE_NORTHWEST- See Also:
-
WALL_ALLOW_RANGE_NORTH
public static final int WALL_ALLOW_RANGE_NORTH- See Also:
-
WALL_ALLOW_RANGE_NORTHEAST
public static final int WALL_ALLOW_RANGE_NORTHEAST- See Also:
-
WALL_ALLOW_RANGE_EAST
public static final int WALL_ALLOW_RANGE_EAST- See Also:
-
WALL_ALLOW_RANGE_SOUTHEAST
public static final int WALL_ALLOW_RANGE_SOUTHEAST- See Also:
-
WALL_ALLOW_RANGE_SOUTH
public static final int WALL_ALLOW_RANGE_SOUTH- See Also:
-
WALL_ALLOW_RANGE_SOUTHWEST
public static final int WALL_ALLOW_RANGE_SOUTHWEST- See Also:
-
WALL_ALLOW_RANGE_WEST
public static final int WALL_ALLOW_RANGE_WEST- See Also:
-
OBJECT_ALLOW_RANGE
public static final int OBJECT_ALLOW_RANGE- See Also:
-
BLOCKED_OBJECT
public static final int BLOCKED_OBJECT- See Also:
-
BLOCKED_FLOOR_DECORATION
public static final int BLOCKED_FLOOR_DECORATION- See Also:
-
BLOCKED_FLOOR
public static final int BLOCKED_FLOOR- See Also:
-
BLOCKED
public static final int BLOCKED- See Also:
-
BLOCKED_LINE_OF_SIGHT_NORTH
public static final int BLOCKED_LINE_OF_SIGHT_NORTH- See Also:
-
BLOCKED_LINE_OF_SIGHT_EAST
public static final int BLOCKED_LINE_OF_SIGHT_EAST- See Also:
-
BLOCKED_LINE_OF_SIGHT_SOUTH
public static final int BLOCKED_LINE_OF_SIGHT_SOUTH- See Also:
-
BLOCKED_LINE_OF_SIGHT_WEST
public static final int BLOCKED_LINE_OF_SIGHT_WEST- See Also:
-
BLOCKED_LINE_OF_SIGHT
public static final int BLOCKED_LINE_OF_SIGHT- See Also:
-
-
Constructor Details
-
Tile
public Tile(int x, int y) -
Tile
public Tile(int x, int y, int plane)
-
-
Method Details
-
isBlocked
public static boolean isBlocked(int flag) -
isValid
public boolean isValid()Description copied from interface:ValidatableVerifies whether this entity is valid and still exists.- Specified by:
isValidin interfaceValidatable- Returns:
- true if it's still valid, false otherwise
-
getX
public int getX()Description copied from interface:LocatableGets the x-coordinate. -
getY
public int getY()Description copied from interface:LocatableGets the y-coordinate. -
getPlane
public int getPlane()Description copied from interface:LocatableGets the z-coordinate, also known as the floor or level. -
getLocation
Description copied from interface:LocatableGets the tile that this entity is located on in the world.- Specified by:
getLocationin interfaceLocatable- Returns:
Tile
-
getSceneOffset
Description copied from interface:LocatableGets the scene offset for this entity.- Specified by:
getSceneOffsetin interfaceLocatable- Returns:
SceneOffset
-
isVisible
public boolean isVisible()Description copied from interface:RenderableGets if this entity is visible on screen.- Specified by:
isVisiblein interfaceRenderable- Returns:
- true if visible, false otherwise
-
click
public boolean click(boolean rightClick) Description copied from interface:ClickableClick on the entity. -
interact
Description copied from interface:InteractableInteracts with the entity.- Specified by:
interactin interfaceInteractable- Parameters:
action- the action to select- Returns:
- true if the interaction succeeded, false otherwise
-
interact
Description copied from interface:InteractableInteracts with the entity.- Specified by:
interactin interfaceInteractable- Parameters:
action- the action to select (e.g. Bank)option- the option to select (e.g. Bank booth)- Returns:
- true if the interaction succeeded, false otherwise
-
hover
public boolean hover()Description copied from interface:ClickableHover on the entity. -
getCentralPoint
Description copied from interface:RenderableGets the central point within the entity calculated using only visible model points.- Specified by:
getCentralPointin interfaceRenderable- Returns:
Point- See Also:
-
getRealCentralPoint
Description copied from interface:RenderableGets the central point within the entity calculated using visible and non-visible model points.- Specified by:
getRealCentralPointin interfaceRenderable- Returns:
Point- See Also:
-
getRandomPoint
Description copied from interface:RenderableGet a random point within the entity.- Specified by:
getRandomPointin interfaceRenderable- Returns:
Point
-
getPoint
-
getClickBounds
-
getBounds
-
contains
Description copied from interface:RenderableDetermines if this entity contains the given point.- Specified by:
containsin interfaceRenderable- Parameters:
point- the point- Returns:
- true if this entity contains the point, false otherwise
-
equals
-
hashCode
public int hashCode() -
toString
-
getActions
Description copied from interface:ActionableGets the available actions.- Specified by:
getActionsin interfaceActionable- Returns:
- list of actions
-
hasAction
Description copied from interface:ActionableDetermines if this entity has one of the given actions.- Specified by:
hasActionin interfaceActionable- Parameters:
actions- one or multiple actions- Returns:
- true if it has one of the given actions, false otherwise
-