|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alienfactory.javamappy.viewer.TiledLayerWrapper
public class TiledLayerWrapper
This class creates and wraps a J2ME MIDP 2.0 TiledLayer
representing a given Layer
. This class effectively bridges the gap
between the MIDP 2.0 and JavaMappy APIs.
Constructor Summary | |
---|---|
TiledLayerWrapper(Layer layer,
int imageLayer,
javax.microedition.lcdui.Image tileSheetImage,
boolean block0included)
Creates a TiledLayer to display the given Layer |
Method Summary | |
---|---|
void |
animateLayer()
Applies the current state of the AnimBlocks to the TiledLayer. |
Layer |
getLayer()
Returns the Layer associated with this Viewer. |
javax.microedition.lcdui.game.TiledLayer |
getTiledLayer()
Returns the TiledLayer the class wraps. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TiledLayerWrapper(Layer layer, int imageLayer, javax.microedition.lcdui.Image tileSheetImage, boolean block0included)
TiledLayer
to display the given Layer
layer
- the JavaMappy Layer the TiledLayer
will displayimageLayer
- the imageLayer of the Layer to display - see Block.getImageIndex(int)
tileSheetImage
- the tile sheet image to create the TiledLayer
withblock0included
- set to true
if the tile sheet image includes the blank block 0Method Detail |
---|
public Layer getLayer()
Layer
associated with this Viewer.
public javax.microedition.lcdui.game.TiledLayer getTiledLayer()
TiledLayer
the class wraps.
public void animateLayer()
Applies the current state of the AnimBlocks to the TiledLayer. Typically this would be called after updating the AnimBlocks. For example:
mapViewer.updateAnimBlocks(); tiledLayerWrapper.animateLayer();
MapViewer.updateAnimBlocks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |