classafFantomMappy::MapViewer
sys::Obj afFantomMappy::Viewer afFantomMappy::MapViewer
@
Js
Renders a MappyMap onto the screen. A MapViewer
creates a LayerViewer for each of the Layers in the MappyMap.
Updating the coordinates of a MapViewer
also updates the coordinates of all the underlying LayerViewers.
Note that the coordinates of a MapViewer
are held independently of the coordinates held by the underlying LayerViewers. i.e. If you were to change the coordinates of the LayerViewers, the coordinates held by the MapViewer
would remain unchanged.
- coorInBlocks
virtual override Point coorInBlocks
- coorInPixels
virtual override Point coorInPixels
- draw
virtual override Void draw(Obj gfx, BlockLayer[] blockLayers := ...)
- drawPartial
virtual override Void drawPartial(Obj gfx, Rect dirty, BlockLayer[] blockLayers := ...)
- layerViewers
LayerViewer[] layerViewers := LayerViewer[,] { private set }
- make
new make(MappyMap map, Renderer renderer, Rect viewBounds)
Creates a LayerViewer for each of the
Layer
s in the MappyMap and places the viewing area at the given offset.- map
MappyMap map { private set }
- pillarRiserMode
virtual override Bool pillarRiserMode
- translateBlocks
- translatePixels
- updateAnimBlocks
Void updateAnimBlocks()