public class MultiPositionEntry
extends java.lang.Object
Constructor and Description |
---|
MultiPositionEntry(@NotNull IsoMapSquareInfo isoMapSquareInfo,
@NotNull java.awt.Dimension size)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Returns the total height of a multi-square image.
|
int |
getWidth()
Returns the total width of a multi-square image.
|
int |
getXOffset(int positionID)
Returns the x offset from the left-most pixel of the multi-square image
and the default x position.
|
int |
getYOffset(int positionID)
Returns the y offset from the left-most pixel of the multi-square image
and the default y position.
|
public MultiPositionEntry(@NotNull @NotNull IsoMapSquareInfo isoMapSquareInfo, @NotNull @NotNull java.awt.Dimension size)
isoMapSquareInfo
- the iso information to usesize
- the size of the entry in map squarespublic int getXOffset(int positionID)
positionID
- the square number in the multi-squarepublic int getYOffset(int positionID)
positionID
- the square number in the multi-squarepublic int getWidth()
public int getHeight()