Locatable
Something that stands on a tile.
InterfaceRLPlugins API
public interface LocatableImplemented by Entity
Type only. Every Entity implements it. Use the class's getWorldPoint().
Members
Methods
- intdistanceTo(Locatable)
Calculates the distance to another locatable.
- intdistanceTo(Tile)
Distance to.
- intdistanceTo(WorldPoint)
Distance to.
- intdistanceTo(int, int, int)
Distance to.
- WorldPointgetInteractionPoint()
Gets the interaction point of this locatable.
- LocalPointgetLocalPoint()
Gets the local point of this locatable.
- ShapegetShape()
The shape.
- TilegetTile()
Gets the tile of this locatable.
- WorldAreagetWorldArea()
Gets the world area of this locatable.
- WorldPointgetWorldPoint()
Gets the world point of this locatable.
- WorldViewgetWorldView()
The world view.
- intgetWorldViewId()
The world view id.
distanceTo(Locatable)
public int distanceTo(Locatable other)Calculates the distance to another locatable.
Parameters
other- The other locatable.
Returns
The distance.
distanceTo(Tile)
public int distanceTo(Tile tile)Distance to.
Parameters
tile- Tile.
distanceTo(WorldPoint)
public int distanceTo(WorldPoint other)Distance to.
Parameters
other- Other.
distanceTo(int, int, int)
public int distanceTo(int x, int y, int z)Distance to.
Parameters
x- X.
y- Y.
z- Z.
getInteractionPoint()
public WorldPoint getInteractionPoint()Gets the interaction point of this locatable.
By default, this is the same as the world point.
Returns
The interaction point.
getLocalPoint()
public LocalPoint getLocalPoint()Gets the local point of this locatable.
Returns
The local point.
getShape()
public Shape getShape()The shape.
getTile()
public Tile getTile()Gets the tile of this locatable.
Returns
The tile.
getWorldArea()
public WorldArea getWorldArea()Gets the world area of this locatable.
Returns
The world area.
getWorldPoint()
public WorldPoint getWorldPoint()Gets the world point of this locatable.
Returns
The world point.
getWorldView()
public WorldView getWorldView()The world view.
getWorldViewId()
public int getWorldViewId()The world view id.
Also allowed
Every class has these, as in plain Java.
equals, toString