public class LoaderReturn
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
errorString
If set, some part of the parser is letting us know about an error.
|
Modifier | Constructor and Description |
---|---|
protected |
LoaderReturn() |
Modifier and Type | Method and Description |
---|---|
void |
addComponentObject(ComponentObject compObj)
Add a single component object to the tile
|
void |
addComponentObjects(ComponentObject[] compObjs)
If any component objects are associated with the tile, these are them.
|
void |
addOverlayComponentObjects(ComponentObject[] compObjs)
These component objects are assumed to be overlaid and so only one
set will be displayed at a time.
|
void |
addTileData(byte[] data)
Data returned from a tile request.
|
void |
clearComponentObjects()
Clear out the component objects, presumably to replace them.
|
void |
clearOverlayComponentObjects() |
void |
deleteComponentObjects(RenderController control,
ComponentManager compManage,
ChangeSet changes) |
void |
dispose() |
void |
finalize() |
byte[] |
getFirstData()
Return the first data object.
|
int |
getFrame()
If we're loading multi-frame data, which frame this is.
|
int |
getGeneration()
Return the generation this LoaderReturn has been given.
|
byte[][] |
getTileData()
Return the tile data objects as an array
|
TileID |
getTileID()
Tile this data belongs to.
|
void |
mergeChanges(ChangeSet changes)
Merge in the given changes requests to be handled upstream.
|
void |
setFrame(long frameID,
int frameIndex)
Frames have unique 64 bit IDs as well as their location in the frame array.
|
void |
setGeneration(int generation)
Don't call this yourself.
|
void |
setTileID(int tileX,
int tileY,
int tileLevel)
Set the tile ID at creation.
|
public java.lang.String errorString
public void setTileID(int tileX, int tileY, int tileLevel)
public void setFrame(long frameID, int frameIndex)
public TileID getTileID()
public int getFrame()
public void addTileData(byte[] data)
public byte[][] getTileData()
public byte[] getFirstData()
public void setGeneration(int generation)
public int getGeneration()
public void mergeChanges(ChangeSet changes)
public void addComponentObjects(ComponentObject[] compObjs)
public void clearComponentObjects()
public void addComponentObject(ComponentObject compObj)
public void addOverlayComponentObjects(ComponentObject[] compObjs)
public void clearOverlayComponentObjects()
public void deleteComponentObjects(RenderController control, ComponentManager compManage, ChangeSet changes)
public void finalize()
finalize
in class java.lang.Object
public void dispose()