public class ObjectTileSet extends SwissArmyTileSet implements RecolorableTileSet, BaseSizableTileSet
ObjectTile,
Serialized FormTileSet.Colorizer| Modifier and Type | Field and Description |
|---|---|
static String |
ATTACH
A constraint prefix indicating that the object must be attached to a
wall facing the suffixed direction (N, E, S, or W).
|
static String |
LOW
The low suffix for walls and attachments.
|
static String |
ON_SURFACE
A constraint indicating that the object must be placed on a surface.
|
static String |
ON_WALL
A constraint prefix indicating that the object must be placed on a
wall facing the suffixed direction (N, E, S, or W).
|
static String |
SPACE
A constraint prefix indicating that the object must have empty space in
the suffixed direction (N, E, S, or W).
|
static String |
SURFACE
A constraint indicating that the object is a surface (e.g., table).
|
static String |
WALL
A constraint prefix indicating that the object is a wall facing the
suffixed direction (N, E, S, or W).
|
| Constructor and Description |
|---|
ObjectTileSet() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBaseHeight(int tileIdx)
Returns the base height for the specified object index.
|
int |
getBaseWidth(int tileIdx)
Returns the base width for the specified object index.
|
String[] |
getColorizations()
Returns the colorization classes that should be used to recolor
objects in this tileset.
|
String[] |
getConstraints(int tileIdx)
Returns the list of constraints associated with the specified tile index, or
null if the index has no constraints. |
int |
getSpotOrient(int tileIdx)
Returns the orientation of the spot associated with the specified tile index.
|
int |
getXSpot(int tileIdx)
Returns the x coordinate of the spot associated with the specified tile index.
|
int |
getYSpot(int tileIdx)
Returns the y coordinate of the spot associated with the specified tile index.
|
boolean |
hasConstraint(int tileIdx,
String constraint)
Checks whether the tile at the specified index has the given constraint.
|
void |
setColorizations(String[] zations)
Provides a set of colorization classes that apply to objects in this tileset.
|
void |
setConstraints(String[][] constraints)
Sets the lists of constraints associated with our object tiles.
|
void |
setObjectHeights(int[] objectHeights)
Sets the heights (in unit tile count) of the objects in this tileset.
|
void |
setObjectWidths(int[] objectWidths)
Sets the widths (in unit tile count) of the objects in this tileset.
|
void |
setPriorities(byte[] priorities)
Sets the default render priorities for our object tiles.
|
void |
setSpotOrients(byte[] sorients)
Sets the orientation of the "spots" associated with our object
tiles.
|
void |
setXOrigins(int[] xorigins)
Sets the x offset in pixels to the image origin.
|
void |
setXSpots(short[] xspots)
Sets the x offset to the "spots" associated with our object tiles.
|
void |
setYOrigins(int[] yorigins)
Sets the y offset in pixels to the image origin.
|
void |
setYSpots(short[] yspots)
Sets the y offset to the "spots" associated with our object tiles.
|
computeTileBounds, getHeights, getTileCount, getTileCounts, getWidths, setGapSize, setHeights, setOffsetPos, setTileCounts, setWidthsclone, clone, getImagePath, getName, getRawTileImage, getRawTileSetImage, getTile, getTile, getTile, getTileMirage, getTileMirage, getTileMirages, setImagePath, setImageProvider, setName, toStringpublic static final String SPACE
public static final String SURFACE
public static final String ON_SURFACE
public static final String WALL
public static final String ON_WALL
public static final String ATTACH
public static final String LOW
public void setObjectWidths(int[] objectWidths)
setObjectHeights(int[]).public void setObjectHeights(int[] objectHeights)
setObjectWidths(int[]).public void setXOrigins(int[] xorigins)
public void setYOrigins(int[] yorigins)
public void setPriorities(byte[] priorities)
public void setColorizations(String[] zations)
public void setXSpots(short[] xspots)
public void setYSpots(short[] yspots)
public void setSpotOrients(byte[] sorients)
public void setConstraints(String[][] constraints)
public int getXSpot(int tileIdx)
public int getYSpot(int tileIdx)
public int getSpotOrient(int tileIdx)
public String[] getConstraints(int tileIdx)
null if the index has no constraints.public boolean hasConstraint(int tileIdx,
String constraint)
public String[] getColorizations()
RecolorableTileSetgetColorizations in interface RecolorableTileSetpublic int getBaseWidth(int tileIdx)
BaseSizableTileSetgetBaseWidth in interface BaseSizableTileSetpublic int getBaseHeight(int tileIdx)
BaseSizableTileSetgetBaseHeight in interface BaseSizableTileSetCopyright © 2015. All rights reserved.