public class PickedObject
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static PickedObject |
fromRenderable(int identifier,
Renderable renderable,
Layer layer) |
static PickedObject |
fromTerrain(int identifier,
Position position) |
int |
getIdentifier() |
Layer |
getLayer() |
Position |
getTerrainPosition() |
java.lang.Object |
getUserObject() |
static Color |
identifierToUniqueColor(int identifier,
Color result) |
boolean |
isOnTop() |
boolean |
isTerrain() |
java.lang.String |
toString() |
static int |
uniqueColorToIdentifier(Color color) |
public static PickedObject fromRenderable(int identifier, Renderable renderable, Layer layer)
public static PickedObject fromTerrain(int identifier, Position position)
public static int uniqueColorToIdentifier(Color color)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isOnTop()
public int getIdentifier()
public java.lang.Object getUserObject()
public Layer getLayer()
public boolean isTerrain()
public Position getTerrainPosition()