public abstract class VirtualMisoSceneModel extends MisoSceneModel
Streamable.Closure| Constructor and Description |
|---|
VirtualMisoSceneModel() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addObject(ObjectInfo info)
Adds an object to this scene.
|
boolean |
removeObject(ObjectInfo info)
Removes the specified object from the scene.
|
boolean |
setBaseTile(int fqTileId,
int x,
int y)
Updates the tile at the specified location in the base layer.
|
void |
updateObject(ObjectInfo info)
Updates an object in this scene.
|
clone, getBaseTileId, getDefaultBaseTileSet, getObjects, setDefaultBaseTileSettoStringpublic boolean setBaseTile(int fqTileId,
int x,
int y)
MisoSceneModelNote that if there are fringe tiles associated with this scene, calling this method may result in the surrounding fringe tiles being cleared and subsequently recalculated. This should not be called on a displaying scene unless you know what you are doing.
setBaseTile in class MisoSceneModelfqTileId - the fully-qualified tile id (@see
TileUtil#getFQTileId}) of the tile to set.x - the x-coordinate of the tile to set.y - the y-coordinate of the tile to set.public boolean addObject(ObjectInfo info)
MisoSceneModeladdObject in class MisoSceneModelpublic void updateObject(ObjectInfo info)
MisoSceneModelupdateObject in class MisoSceneModelpublic boolean removeObject(ObjectInfo info)
MisoSceneModelremoveObject in class MisoSceneModelCopyright © 2015. All rights reserved.