org.micropsi.comp.console.worldconsole
Interface IRenderInfo
- All Known Implementing Classes:
- WorldRenderer
- public interface IRenderInfo
getScreenX
public int getScreenX(Position pos)
getScreenX
public int getScreenX(double x)
getScreenY
public int getScreenY(Position pos)
getScreenY
public int getScreenY(double y)
getWorldPosition
public Position getWorldPosition(int screenX,
int screenY)
getObjectBounds
public Rectangle getObjectBounds(WorldObject obj)
- Returns a rectangle describing the image extends of the given object in screen coordinates.
May return null.
- Parameters:
obj - - the object
- Returns:
- - rectangle of object icon, null if object doesnot exist.
getSizeRenderedWorld
public Point getSizeRenderedWorld()
getWorldHighestCoords
public Position getWorldHighestCoords()
- Returns:
- Returns the worldHighestCoords.
getWorldLowestCoords
public Position getWorldLowestCoords()
- Returns:
- Returns the worldLowestCoords.
getScaleX
public double getScaleX()
- Returns:
- Returns the scaleX.
getScaleY
public double getScaleY()
- Returns:
- Returns the scaleY.
.